我从 11.10 升级到了 12.04,没有发现任何问题。最近尝试通过软件中心安装某些东西,但出现错误。改为尝试,sudo apt-get install
但仍然没有成功。我确实尽我所能来解决这个问题,但我做不到,所以我想在这里问一下。
我已经sudo apt-get update
成功完成但sudo apt-get upgrade
失败了......
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies.
ia32-libs-multiarch:i386 : Depends: libqtcore4:i386 but it is not installed
libqt4-dbus:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-declarative:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-designer:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-network:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-opengl:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-qt3support:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-script:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-scripttools:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-sql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-sql-mysql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-svg:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-test:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-xml:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqt4-xmlpatterns:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqtgui4:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not installed
libqtwebkit4:i386 : Depends: libqtcore4:i386 (>= 4:4.8.0~) but it is not installed
libssl1.0.0 : Breaks: libssl1.0.0:i386 (!= 1.0.1-4ubuntu5.2) but 1.0.0e-2ubuntu4.6 is installed
libssl1.0.0:i386 : Breaks: libssl1.0.0 (!= 1.0.0e-2ubuntu4.6) but 1.0.1-4ubuntu5.2 is installed
E: Unmet dependencies. Try using -f.
使用sudo apt-get -f install
...
The following packages were automatically installed and are no longer required:
libgtkmm-2.4-1c2a libgtkhtml3.14-19 libglade2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libqtcore4:i386 libssl1.0.0:i386
The following NEW packages will be installed
libqtcore4:i386
The following packages will be upgraded:
libssl1.0.0:i386
1 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
20 not fully installed or removed.
Need to get 0 B/3,063 kB of archives.
After this operation, 9,044 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Internal Error, No file name for libssl1.0.0
我sudo apt-get remove libssl1.0.0
试过sudo apt-get remove libssl1.0.0:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ia32-libs-multiarch:i386 : Depends: libqtcore4:i386 but it is not going to be installed
Depends: libssl1.0.0:i386 but it is not going to be installed
libcurl3:i386 : Depends: libssl1.0.0:i386 (>= 1.0.0) but it is not going to be installed
libqt4-dbus:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-declarative:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-designer:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-network:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-opengl:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-qt3support:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-script:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-scripttools:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql-mysql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-svg:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-test:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xml:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xmlpatterns:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtgui4:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtwebkit4:i386 : Depends: libqtcore4:i386 (>= 4:4.8.0~) but it is not going to be installed
libsasl2-modules:i386 : Depends: libssl1.0.0:i386 (>= 1.0.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我也尝试过等等sudo apt-get dist-upgrade
,sudo apt-get autoremove
但是没有任何成功。
我也尝试过下载.deb
并使用dpkg -i
,但是失败了,说实话,我也没有完全理解该方法。
编辑 这是对评论的回应
參考文獻:sudo apt-get install -f 无法修复损坏的软件包。现在呢?
sudo dpkg --configure -a --force-all
dpkg: error processing libssl1.0.0 (--configure):
libssl1.0.0:amd64 1.0.1-4ubuntu5.2 cannot be configured because libssl1.0.0:i386 is in a different version (1.0.0e-2ubuntu4.6)
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: also configuring `libssl1.0.0:i386' (required by `ia32-libs-multiarch:i386')
dpkg: error processing libssl1.0.0:i386 (--configure):
libssl1.0.0:i386 1.0.0e-2ubuntu4.6 cannot be configured because libssl1.0.0:amd64 is in a different version (1.0.1-4ubuntu5.2)
dpkg: too many errors, stopping
Errors were encountered while processing:
libssl1.0.0
libssl1.0.0:i386
...
libssl1.0.0:i386
Processing was halted because there were too many errors.
参考:包管理器不再起作用
移动/var/lib/kpkg/info/libssl..
kieran@kieran-EX58-UD3R:~$ sudo mv /var/lib/dpkg/info/libssl1.0.0:i386.postinst /var/lib/dpkg/info/libssl1.0.0:i386.postinst.bad
kieran@kieran-EX58-UD3R:~$ sudo mv /var/lib/dpkg/info/libssl1.0.0:amd64.postinst /var/lib/dpkg/info/libssl1.0.0:amd64.postinst.bad
kieran@kieran-EX58-UD3R:~$ sudo apt-get --reinstall install libssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl' has no installation candidate
kieran@kieran-EX58-UD3R:~$ sudo apt-get --reinstall install libssl1.0.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ia32-libs-multiarch:i386 : Depends: libqtcore4:i386 but it is not going to be installed
libqt4-dbus:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-declarative:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-designer:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-network:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-opengl:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-qt3support:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-script:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-scripttools:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql-mysql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-svg:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-test:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xml:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xmlpatterns:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtgui4:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtwebkit4:i386 : Depends: libqtcore4:i386 (>= 4:4.8.0~) but it is not going to be installed
libssl1.0.0 : Breaks: libssl1.0.0:i386 (!= 1.0.1-4ubuntu5.2) but 1.0.0e-2ubuntu4.6 is to be installed
libssl1.0.0:i386 : Breaks: libssl1.0.0 (!= 1.0.0e-2ubuntu4.6) but 1.0.1-4ubuntu5.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
kieran@kieran-EX58-UD3R:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libgtkmm-2.4-1c2a libgtkhtml3.14-19 libglade2-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libqtcore4:i386 libssl1.0.0:i386
The following NEW packages will be installed
libqtcore4:i386
The following packages will be upgraded:
libssl1.0.0:i386
1 upgraded, 1 newly installed, 0 to remove and 58 not upgraded.
20 not fully installed or removed.
Need to get 3,063 kB of archives.
After this operation, 9,044 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 i386 1.0.1-4ubuntu5.2 [1,002 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main libqtcore4 i386 4:4.8.1-0ubuntu4.1 [2,061 kB]
Fetched 3,063 kB in 4s (731 kB/s)
E: Internal Error, No file name for libssl1.0.0
參考文獻:libssl 依赖项 删除 libssl1.0.0:i386
kieran@kieran-EX58-UD3R:~$ sudo apt-get remove libssl1.0.0:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ia32-libs-multiarch:i386 : Depends: libqtcore4:i386 but it is not going to be installed
Depends: libssl1.0.0:i386 but it is not going to be installed
libcurl3:i386 : Depends: libssl1.0.0:i386 (>= 1.0.0) but it is not going to be installed
libqt4-dbus:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-declarative:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-designer:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-network:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-opengl:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-qt3support:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-script:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-scripttools:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-sql-mysql:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-svg:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-test:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xml:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqt4-xmlpatterns:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtgui4:i386 : Depends: libqtcore4:i386 (= 4:4.8.1-0ubuntu4.1) but it is not going to be installed
libqtwebkit4:i386 : Depends: libqtcore4:i386 (>= 4:4.8.0~) but it is not going to be installed
libsasl2-modules:i386 : Depends: libssl1.0.0:i386 (>= 1.0.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
我最近在尝试安装ia32-libs
(等)时遇到了类似的情况,我相信您可能遇到了与我类似的问题,即使略有不同。
很久以前,我添加了 Xorg-edgers PPA。其中包含各种软件包的大量前沿垃圾。因此,此时我使用的那些软件包是较新的。
一段时间后,我对每天更新 X 和各种驱动程序感到厌烦。我禁用了 PPA。
甚至后来,我尝试安装
ia32-libs
并发现自己陷入了依赖地狱。
当时的情况是,我拥有 dpkg 期望的某个软件包的较新版本。它并没有降级这几个软件包(它应该会建议这样做),而是建议删除大部分系统,以便保留最新版本的 X 软件包。
在我的情况下修复它其实非常简单:我只需重新添加我已禁用的 PPA。之后我可以安装任何我喜欢的东西。这对你来说可能不完全一样,所以要小心。
我完全是无意中发现了这个修复程序。我忘记了某些软件包可能有较新版本(现在不可用)。如果我提前想到了,我就会想起我之前给出的另一个答案:如何将所有软件包恢复为其官方版本?
这个脚本很慢,但如果不彻底就没什么用。禁用所有 PPA,apt-get update
然后 apt-get dist-upgrade
使用脚本生成与官方版本不同的内容列表。清除/重新安装这些,您就能过上幸福、无依赖的生活。
答案2
我在尝试安装 wine 和 acroread 时遇到了类似的依赖关系中断问题,在从 11.04 升级到 12.04(跳过 11.10)后尝试安装 ia32-libs-multiarch 时也遇到了类似的问题。似乎我在 11.04 中的一些 ppa 在系统中安装了较新版本的应用程序。升级后,这些应用程序的残留似乎对依赖关系造成了一些混乱。
到目前为止,似乎有效的解决方案是在德国 ubuntu 论坛上找到的(http://forum.ubuntuusers.de,来自用户 Lasall 的帖子):
首先需要降级并执行以下操作:创建“首选项”文件:
sudo vi /etc/apt/preferences
并插入以下行:
Package: *
Pin: release a=precise*
Pin-Priority: 2012
Pin-Priority 必须大于 1000。
然后你可以使用以下方法降级有问题的应用程序:
sudo apt-get dist-upgrade
然后,您可以安装抱怨依赖关系的软件包,例如
sudo apt-get install ia32-libs-multiarch
或sudo apt-get install ia32-libs
。
最后,您应该删除刚刚创建的文件:
sudo rm /etc/apt/preferences
因为否则就不会发现新的更新。
希望这也对你有帮助!
答案3
我遇到了类似的错误:
无法配置 libqt4-scripttools:i386 4:4.8.1-0ubuntu4.3,因为 libqt4-scripttools:amd64 属于不同的版本
以下命令修复了错误:
sudo apt-get download libqt4-scripttools:i386
sudo dpkg -i libqt4-scripttools:i386