The following packages have unmet dependencies: libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed Depends: libtirpc-dev but it is not going to be installed Depends: libnsl-dev but it is not going to be installed
时间: 2023-12-06 09:44:15 浏览: 114
It looks like you have a dependency issue with the package `libc6-dev`. It requires `libc6` version `2.35-0ubuntu3`, but your system has `2.35-0ubuntu3.1` installed. Additionally, it also depends on `libtirpc-dev` and `libnsl-dev`, but those packages are not going to be installed.
One solution is to try running the following command to update your system's package information and upgrade any outdated packages:
```
sudo apt-get update && sudo apt-get upgrade
```
If that doesn't work, you can try forcing the installation of the required dependencies using the `--force` flag:
```
sudo apt-get install libc6=2.35-0ubuntu3 libtirpc-dev libnsl-dev --force
```
Note that forcing package installations can be risky and may cause other issues down the line, so proceed with caution and make sure to backup any important data before proceeding.
阅读全文