当我运行更新管理器并尝试安装某些东西时,它启动时显示:“正在准备软件包”,但什么也没有发生。
任何想法?
无论我选择什么包都会发生这种情况。
Ubuntu版本:10.04
例如
sudo 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:
linux-headers-2.6.32-37 linux-headers-2.6.32-37-generic linux-image-2.6.32-37-generic
The following packages will be upgraded:
libarchive1 linux-generic linux-headers-generic linux-image-generic linux-libc-dev
5 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
521 not fully installed or removed.
Need to get 0B/43.5MB of archives.
After this operation, 185MB of additional disk space will be used.
Do you want to continue [Y/n]? y`
然后它就挂了...
尝试 sudo apt-get install -f
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnb-platform10-java kdebase-runtime-data-common libnb-java2-java libwxgtk2.6-0 libswt-gtk-3.5-jni libknotificationitem1 liblogkit-java
kde-icons-oxygen libexiv2-5 libkadm5clnt6 liblzma0 libmysqlclient15off libnb-ide11-java kdebase-runtime-bin-kde4 libwxbase2.6-0
tzdata-java python-wxversion libqt4-phonon khelpcenter4 libqt3-mt python-wxgtk2.6 libswt-gtk-3.5-java stardict-plugin-gucharmap
libreadline5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
520 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
它挂了:(
答案1
尝试以下命令序列
sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f