我在运行以下命令时遇到问题:
root@X100e:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
adduser apt apt-utils base-files base-passwd bash bash-completion bsdmainutils bsdutils busybox-initramfs consolekit coreutils
cpio cpp cpp-4.4 dash dbus debconf debconf-i18n debianutils diffutils dpkg e2fslibs e2fsprogs file findutils gawk gcc-4.4-base
gcc-4.5-base gpgv grep gzip hostname ifupdown initramfs-tools initramfs-tools-bin initscripts insserv klibc-utils libacl1
libattr1 libblkid1 libbz2-1.0 libc-bin libc6 libck-connector0 libcomerr2 libdb4.8 libdbus-1-3 libdbus-glib-1-2 libdconf0
libdrm-intel1 libdrm-nouveau1 libdrm-radeon1 libdrm2 libeggdbus-1-0 libexpat1 libgcc1 libgdbm3 libglib2.0-0 libglib2.0-data
libgmp3c2 libgpm2 libklibc liblocale-gettext-perl liblzma2 libmagic1 libmpfr4 libncurses5 libncursesw5 libnih-dbus1 libnih1
libpam-ck-connector libpam-modules libpam-runtime libpam0g libpcre3 libplymouth2 libpng12-0 libpolkit-gobject-1-0 libreadline6
libselinux1 libsepol1 libslang2 libsqlite3-0 libss2 libssl0.9.8 libstdc++6 libtext-charwidth-perl libtext-iconv-perl
libtext-wrapi18n-perl libudev0 libusb-0.1-4 libuuid1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxml2 login lsb-base make
makedev mime-support module-init-tools mount mountall ncurses-base ncurses-bin net-tools netbase passwd perl perl-base
perl-modules plymouth plymouth-theme-ubuntu-text procps psmisc python python-minimal python2.6 python2.6-minimal readline-common
sed sensible-utils sgml-base shared-mime-info sysv-rc sysvinit-utils tar tzdata ubuntu-keyring udev upstart util-linux
uuid-runtime xml-core xz-utils zlib1g
0 upgraded, 141 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/49.7MB of archives.
After this operation, 177MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Could not perform immediate configuration on 'libbz2-1.0'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
不幸的是我不知道问题出在哪里...有什么想法可以解决这个问题吗?
注意:我也想过重新安装 apt。这可能吗?
谢谢,Udo
更新:
跑步
root@X100e:~# aptitude full-upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
导致同样的错误...
跑步
root@X100e:~# aptitude -vv full-upgrade
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Current status: 0 broken [+0], 0 updates [+0], 3390 new [+0].
导致同样的错误...
还尝试了 -vvv 和 -vvvv ->结果相同。
答案1
很可能,你在更新软件包包,就像我一样。转到/var/缓存/apt/档案并非常小心地dpkg-i 命令有问题的包。
我自己今晚就做了这个:
sudo dpkg -i dpkg_1.15.8.4ubuntu3_amd64.deb libbz2-1.0_1.0.5-4ubuntu1_amd64.deb libselinux1_2.0.94-1_amd64.deb coreutils_8.5-1ubuntu3_amd64.deb libacl1_2.2.49-3_amd64.deb libattr1_1%3a2.4.44-2_amd64.deb
当然,您的软件包版本应该不同,否则我们会在 Ubuntu 方面发现一个错误。
然后使用选项 --force-depends 对希望较小的 .debs 集执行相同的命令。
交替使用这两个命令来完成所有内容的安装和配置,然后您就可以开始了。
现在,我在另一个包中遇到了同样的错误,再次执行了同样的操作,现在我的系统可以正常运行。
结论:只需手动管理一些依赖关系即可使其工作。
答案2
我遇到了这个确切的问题并这样解决:
apt-get install -o APT::Immediate-Configure=false -f apt python-minimal
apt-get -f install
dpkg --configure -a
apt-get dist-upgrade
该解决方案来自以下两种解决方案的组合:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740 http://ubuntuforums.org/showthread.php?t=1451594
答案3
我有同样的问题。我通过单独升级 libc6 解决了我的问题:
apt-get install libc6
然后
apt-get dist-upgrade
答案4
在从 squeeze->wheezy 升级时遇到了这个问题,具体如下:
Could not perform immediate configuration on 'mysql-server-5.5
尝试手动升级 libc6 等,但我的最终解决方案是:
apt-get install mysql-server-5.5 libc6-dev
这似乎让我的 dist 升级完成了。