尝试升级到 libc6 2.34 时 libc6 和 libc6-amd64 出现问题

尝试升级到 libc6 2.34 时 libc6 和 libc6-amd64 出现问题

因此,问题的核心开始于 Ubuntu 提示我升级之后。我使用的是 Ubuntu 18.04.5(Bionic Beaver)。升级后,我尝试启动浏览器,但没有成功。因此,我在终端中导航到二进制文件,运行它,然后出现此错误:

user@computer:~/Files/Apps/Waterfox$ ./waterfox
XPCOMGlueLoad error for file /home/user/Files/Apps/Waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /home/user/Files/Apps/Waterfox/libnspr4.so)
Couldn't load XPCOM.

当然,我尝试将 libc 和 libc-amd64 包升级到最新版本 (2.34),但是当我使用.debdpkg 下载并安装时,我的系统严重混乱,现在每次我重新运行该命令时都会出现这个错误。

user@computer:~/Downloads$ sudo dpkg -i  ./libc6-amd64_2.34-0ubuntu2_i386.deb ./libc6_2.34-0ubuntu2_i386.deb
(Reading database ... 317143 files and directories currently installed.)
Preparing to unpack .../libc6-amd64_2.34-0ubuntu2_i386.deb ...
Unpacking libc6-amd64:i386 (2.34-0ubuntu2) over (2.34-0ubuntu2) ...
Replaced by files in installed package libc6:amd64 (2.27-3ubuntu1) ...
Preparing to unpack ./libc6_2.34-0ubuntu2_i386.deb ...
Unpacking libc6:i386 (2.34-0ubuntu2) over (2.34-0ubuntu2) ...
dpkg: error processing package libc6:i386 (--install):
 package libc6:i386 2.34-0ubuntu2 cannot be configured because libc6:amd64 is at a different version (2.27-3ubuntu1)
dpkg: dependency problems prevent configuration of libc6-amd64:i386:
 libc6-amd64:i386 depends on libc6 (= 2.34-0ubuntu2); however:
  Package libc6:i386 is not configured yet.

dpkg: error processing package libc6-amd64:i386 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6:i386
 libc6-amd64:i386

在此之后,我尝试使用sudo apt upgrade

user@computer:~/Downloads$ sudo apt upgrade
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:
 libc6 : Breaks: libc6:i386 (!= 2.27-3ubuntu1) but 2.34-0ubuntu2 is installed
 libc6:i386 : Depends: libgcc-s1:i386 but it is not installable
              Depends: libcrypt1:i386 (>= 1:4.4.10-10ubuntu4) but it is not installable
              Breaks: locales (< 2.34) but 2.27-3ubuntu1.4 is installed
              Breaks: locales-all (< 2.34)
              Breaks: locales-all:i386 (< 2.34)
              Recommends: libidn2-0:i386 (>= 2.0.5~) but 2.0.4-1.1ubuntu0.2 is installed
              Recommends: libnss-nis:i386 but it is not installable
              Recommends: libnss-nisplus:i386 but it is not installable
              Breaks: libc6 (!= 2.34-0ubuntu2) but 2.27-3ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

因此,它告诉我使用修复损坏的安装命令。使用命令sudo apt --fix-broken install告诉我它将删除 175 个软件包,所以这绝对不行。它要删除的软件包是必不可少的,例如 playonlinux、wine、steam、code 等,基本上是我每天都会用到的东西。

总而言之,我的电脑上几乎所有应用程序都能正常工作,但我无法使用浏览器(目前暂时使用 Chrome),也无法安装新软件包。我不想冒险重启电脑以防出现重大问题,所以我需要在下次重启之前修复这个问题。有什么想法吗?

答案1

我通过检查哪些软件包实际上会被删除来自己解决了这个问题--fix-broken,实际上并没有那么糟糕。运行它并解决了问题,在软件更新程序的帮助下。

我保留这个问题,以防有人想回答在旧版本的 Ubuntu 上使用新版本的 GLib 的理论问题。

(解决方案从 OP 的问题移到这里)

相关内容