无法修复 Ubuntu 上损坏的依赖项:libssl-dev、libssl1.1、libssl3

无法修复 Ubuntu 上损坏的依赖项:libssl-dev、libssl1.1、libssl3

我在修复 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 的版本有关。

相关内容