我试图安装wavemon,但最终我的 apt-get 被安装了一些 libc 相关的软件包。我的系统不再启动至登录屏幕。
root@pc:~# apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.28) but 2.28-8 is installed
libc-dev-bin : Depends: libc6 (< 2.28) but 2.28-8 is installed
libc6 : Breaks: locales (< 2.28) but 2.27-3ubuntu1 is installed
Breaks: nscd (< 2.28)
Recommends: libidn2-0 (>= 2.0.5~) but 2.0.4-1.1build2 is installed
libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1) but 2.28-8 is installed
libc6-dev : Depends: libc6 (= 2.27-3ubuntu1) but 2.28-8 is installed
libcogl20 : Depends: libgbm1 (>= 8.1~0) but it is not installed
libegl-mesa0 : Depends: libgbm1 (= 18.2.2-0ubuntu1~18.04.2) but it is not installed
libgstreamer-gl1.0-0 : Depends: libgbm1 (>= 8.1~0) but it is not installed
libmutter-2-0 : Depends: libgbm1 (>= 17.1.0~rc2) but it is not installed
libnl-genl-3-200 : Depends: libnl-3-200 (= 3.4.0-1) but 3.2.29-0ubuntu3 is installed
libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not installed
nscd : Depends: libc6 (< 2.28) but 2.28-8 is installed
xserver-xorg-core : Depends: libgbm1 (>= 10.2~0) but it is not installed
xserver-xorg-video-amdgpu : Depends: libgbm1 (>= 8.1~0) but it is not installed
xwayland : Depends: libgbm1 (>= 10.2~0) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pc:~#
编辑1:
答案1
您需要降级libc6
到适合您的发行版的版本:
sudo apt install libc6=2.27-3ubuntu1
由于其他损坏的依赖项,这可能会失败,您也需要删除或降级这些依赖项。
Wavemon 在 Ubuntu 18.04 中可用,您可以安装该版本(0.8.1):
sudo apt install wavemon/bionic
这将避免引入libc6
不适合您的系统的版本。