求救, Ubuntu22.04 apt 报错无法安装、更新和卸载软件包…

1次阅读

共计 711 个字符,预计需要花费 2 分钟才能阅读完成。

一台 Ubuntu Server 22.04.2,就正常 docker 跑几个服务,很久也没管,但是今天在 apt upgrade 的时候,报错如下

ubuntu@ubuntu:~$ sudo apt upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3.1) but 2.35-0ubuntu3.6 is installed
 libssl-dev : Depends: libssl3 (= 3.0.2-0ubuntu1.10) but 3.0.2-0ubuntu1.14 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

搜了下应该是 libc6 版本过高,我记得好像上半年也遇到过有服务器出现这个问题,这个是什么情况呢?本机装的环境组件也很少,除了 docker,就装了个 build-essential,实际上这个也用不到,就 docker 里面跑几个程序。但是现在出现这个 libc6 版本过高的问题?关键是现在用 apt 命令也无法升级、安装、卸载,用它提示的 --fix-broken 选项毛用没有。

有大佬知道为什么会出这个问题,怎么解决吗?

正文完
 0