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