![无法修复 Ubuntu 上损坏的依赖项:libssl-dev、libssl1.1、libssl3](https://linux22.com/image/792245/%E6%97%A0%E6%B3%95%E4%BF%AE%E5%A4%8D%20Ubuntu%20%E4%B8%8A%E6%8D%9F%E5%9D%8F%E7%9A%84%E4%BE%9D%E8%B5%96%E9%A1%B9%EF%BC%9Alibssl-dev%E3%80%81libssl1.1%E3%80%81libssl3.png)
我在修复 Ubuntu 系统上损坏的依赖项时遇到了问题。当我运行命令 sudo apt --fix-broken install 时,遇到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libssl-dev : Depends: libssl1.1 (= 1.1.1f-1ubuntu2.20) but 1.1.1l-1ubuntu1.2 is installed
libssl1.1 : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.14 is installed
libssl3 : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.14 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
我尝试了各种解决方案,包括更新、升级和使用 apt-get,但问题仍然存在。这似乎与 libssl1.1 和 libc6 的版本有关。