18.04 下载不完整,无法完成

18.04 下载不完整,无法完成

我最近升级到了 18.04 ubuntu,但下载过程不太顺利。下载完成后,我的笔记本电脑显示“已安装”,但出现错误。我在终端中尝试了以下命令,但现在只是在原地打转。我使用 Ubuntu 已经有一段时间了,但我已经力不从心了。

我跑了

sudo apt-get update

然后得到

Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease [69.9 kB]
Fetched 69.9 kB in 1s (56.6 kB/s)                             
Reading package lists... Done

然后什么都没有。我运行:

sudo apt-get dist-upgrade

并得到这个:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gnome-keyring-pkcs11 : Breaks: libp11-kit-gnome-keyring (< 3.27.4-2~) but 3.20.1-1ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我跑了

sudo apt --fix-broken install

然后它说:

dpkg: error processing archive /var/cache/apt/archives/libp11-kit-gnome-keyring_3.28.0.2-1ubuntu1_all.deb (--unpack):
 libp11-kit-gnome-keyring:all 3.28.0.2-1ubuntu1 (Multi-Arch: no) is not co-installable with libp11-kit-gnome-keyring which has multiple installed instances
Errors were encountered while processing:
 /var/cache/apt/archives/libp11-kit-gnome-keyring_3.28.0.2-1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试运行软件更新,它说我运行了太多第三方程序。我进入设置,勾选了前四个,什么都没有。我取消了所有勾选,什么都没有。这就是我花了点时间解决的问题。

答案1

我遇到了同样的问题。我尝试删除 libp11-kit-gnome-keyring,但什么都没安装 (??)。然后我从以下位置手动下载了它:https://packages.ubuntu.com/bionic/i386/libp11-kit-gnome-keyring/download并安装它。之后:

sudo apt --fix-broken install

还是有问题。然后:

sudo apt remove libp11-kit-gnome-keyring
sudo apt --fix-broken install

一切都还好吗?我真的不知道我在做什么,但之后一切都还好。然后只是常规更新 + dist-upgrade。

相关内容