我周四将系统从 16.04 LTS 更新到了 18.04 LTS,但升级失败,原因是这个问题中描述的 libmutter-2-0 中的依赖不匹配。它处于仅控制台登录有效的状态。
第二天,libmutter 有更新可用,我安装了它
sudo apt install libmutter-2-0 --reinstall
然后我安装了 ubuntu 桌面
sudo apt install ubuntu-desktop
现在我有一个看似可以正常工作的系统,但它是否已经处于一致状态?或者是否需要采取其他步骤才能使其处于一致状态?
编辑:sudo apt update
和的输出sudo apt upgrade
:
sudo apt update
Hit:1 http://de.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Fetched 83,2 kB in 1s (107 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gimp-gmic
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
答案1
首先清理一切:
sudo apt autoremove && sudo apt autoclean
安装debsums
以便能够为所有不存在任何 MD5 哈希值的包创建 MD5 哈希值,然后生成以下 MD5 哈希值:
sudo apt install debsums
sudo debsums_init
现在检查一下:
sudo debsums --all | grep FAILED
如果你得到如下输出:
/etc/kernel/postinst.d/apt-auto-removal FAILED
/etc/bash.bashrc FAILED
/etc/skel/.bashrc FAILED
/usr/share/bash-completion/bash_completion FAILED
/etc/grub.d/40_custom FAILED
debsums: missing file /etc/init.d/keyboard-setup (from keyboard-configuration package)
debsums: missing file /etc/xdg/autostart/nautilus-autostart.desktop (from nautilus package)
debsums: missing file /usr/share/pkg-config-crosswrapper (from pkg-config package)
debsums: missing file /usr/share/pkg-config-dpkghook (from pkg-config package)
/etc/sysctl.conf FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/__init__.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/config.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/cupshelpers.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/installdriver.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/openprinting.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/ppds.cpython-35.pyc FAILED
/usr/lib/python3/dist-packages/cupshelpers/__pycache__/xmldriverprefs.cpython-35.pyc FAILED
debsums: missing file /usr/lib/rhythmbox/plugins/rbzeitgeist/__pycache__/rbzeitgeist.cpython-35.opt-1.pyc (from rhythmbox-plugin-zeitgeist package)
debsums: missing file /usr/lib/rhythmbox/plugins/rbzeitgeist/__pycache__/rbzeitgeist.cpython-35.pyc (from rhythmbox-plugin-zeitgeist package)
/etc/apt/apt.conf.d/10periodic FAILED
你没事当且仅当:
- 对于每次失败,您都知道您自己已经更改了配置(手动或通过应用程序)
- 他们只是缺少文件
- 它们只是缓存未命中
- 并且您知道为什么
gimp-gmic
在您的特定情况下受到阻碍。