最近我在安装更新时遇到了麻烦。通过软件更新程序进行更新时没有提供软件包列表,但它仍显示必须下载约 100MB 的更新。更新失败,因为我可能损坏了软件包或未满足依赖关系。
我尝试在 Synaptic 中搜索损坏的软件包,但一无所获。我手动更新了所有可以更新的软件包(仍然通过 Synaptic),并将范围缩小到 4 个似乎导致一些问题的软件包(见下文)。现在,软件更新程序在检查更新时崩溃(甚至在给我任何更新列表之前)。
以下是 apt-get update && apt-get upgrade 的结果:
The following packages have been kept back:
gcc-4.9-base gcc-4.9-base:i386 libgcc1 libgcc1:i386
0 to upgrade, 0 to newly install, 0 to remove and 4 not to upgrade.
当我尝试手动删除它们时,我得到了一长串需要卸载的软件包列表(基本上是全部)。
举个例子,
apt-get remove gcc-4.9-base
给出(没有完整的软件包列表):
The following NEW packages will be installed
multiarch-support:i386
The following packages will be upgraded:
gcc-4.9-base:i386 libgcc1:i386
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
libstdc++6 (due to apt) gnupg (due to apt) base-files base-passwd
libdebconfclient0 (due to base-passwd) bash debianutils (due to bash) dash
(due to bash) libtinfo5 (due to bash) bsdutils coreutils libacl1 (due to
coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dpkg
(due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs)
libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due to
e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs)
findutils grep install-info (due to grep) libpcre3 (due to grep) gzip
hostname libc-bin libcap2 (due to libc-bin) login libpam0g (due to login)
libpam-runtime (due to login) libpam-modules (due to login) mount libmount1
(due to mount) ncurses-bin perl-base sed tzdata (due to util-linux) debconf
(due to util-linux) sysv-rc (due to util-linux) libncurses5 (due to
util-linux) libslang2 (due to util-linux)
2 to upgrade, 1 to newly install, 2477 to remove and 0 not to upgrade.
Need to get 67,6 kB of archives.
After this operation, 10,3 GB disk space will be freed.
You are about to do something potentially harmful
To continue type in the phrase ‘Yes, do as I say!’
对此我显然回应道:噢天哪请不要这样做!
我找到了一个主题(这里) 有人报告了类似的问题,但建议的解决方案不起作用。
欢迎提出任何关于如何解决这个问题的想法,如果您需要更多信息/终端结果来更好地评估情况,我随时可以提供帮助。提前谢谢!