The following packages have unmet dependencies: nginx : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is to be installed Depends: libssl1.1 (>= 1.1.1) but 1.1.0l-1~deb9u6 is to be installed E: Unable to correct problems, you have held broken packages. root@localhost:~# sudo apt install nginx=1.18.0-1 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.18.0-1' for 'nginx' was not found root@localhost:~#
时间: 2023-06-03 12:06:13 浏览: 355
这个错误提示的意思是,安装nginx时出现了未解决的依赖关系。具体来说是,nginx需要 libc6 2.28及以上版本和 libssl1.1 1.1.1及以上版本,但当前系统安装的版本分别是 libc6 2.24-11 deb9u4和 libssl1.1 1.1.0l-1~deb9u6,不符合要求。由于存在无法解决的问题,因此无法安装nginx,可能是因为存在其他已损坏的软件包。
相关问题
The following information may help to resolve the situation: The following packages have unmet dependencies: nginx : Depends: libc6 (>= 2.28) but 2.24-11+deb9u4 is to be installed Depends: libpcre2-8-0 (>= 10.32) but it is not going to be installed Depends: libssl1.1 (>= 1.1.1) but 1.1.0l-1~deb9u6 is to be installed Conflicts: nginx-common but 1.10.3-1+deb9u7 is to be installed E: Broken packages
这是一个技术问题,可能是由于依赖关系损坏引起的。您可以尝试以下步骤解决此问题:
1.更新软件包列表:sudo apt-get update
2.尝试解决依赖关系:sudo apt-get -f install
3.清除缓存:sudo apt-get clean
4.重新安装受影响的软件包:sudo apt-get install nginx
如果问题仍然存在,请参考相关的技术文档或寻求专业帮助来解决问题。
The following packages have unmet dependencies: libc6-i386 : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed
It seems like you are trying to install the `libc6-i386` package, but there is a dependency issue with the `libc6` package. The version of `libc6-i386` you are trying to install requires version 2.35-0ubuntu3 of `libc6`, but your system has version 2.35-0ubuntu3.1 installed.
You can try to resolve this issue by downgrading the `libc6` package to version 2.35-0ubuntu3 using the following command:
```
sudo apt-get install libc6=2.35-0ubuntu3
```
After downgrading `libc6`, you should be able to install `libc6-i386` without any issues.