当软件包系统损坏时,如何更新 Ubuntu?

当软件包系统损坏时,如何更新 Ubuntu?

我一直在尝试更新 Gallium OS(基于 Ubuntu),但是,我不断收到错误消息。任何帮助,将不胜感激。请查看下面的错误消息的屏幕截图:

错误信息。

sudo apt-get -f install在终端运行并收到以下消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libssl1.0.0:i386
The following packages will be upgraded:
  libssl1.0.0:i386
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1,106 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 193560 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb ...
Unpacking libssl1.0.0:i386 (1.0.2d-0ubuntu1.5-galliumos0) over (1.0.2d-0ubuntu1.4-galliumos0) ...
dpkg: error processing archive /var/cache/apt/archives/libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libssl1.0.0/changelog.Debian.gz', which is different from other instances of package libssl1.0.0:i386
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libssl1.0.0_1.0.2d-0ubuntu1.5-galliumos0_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

可能的解决方法是重命名该目录,并像这样强制安装,

sudo mv /usr/share/doc/libssl1.0.0 /usr/share/doc/libssl1.0.0.backup
sudo apt-get -f install

或者这也可能解决你的问题,

apt-get install libssl1.0.0 libssl1.0.0:i386

相关内容