无法在 Linux 上删除或重新安装 Virtualbox

无法在 Linux 上删除或重新安装 Virtualbox

我已经尝试过:

apt-get update && apt-get upgrade

apt-get clean 

我仍然得到以下输出:

$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 virtualbox-4.2:i386 : Depends: libdevmapper1.02.1:i386 (>= 2:1.02.20) but it is not     installed
                   Depends: libpython2.7:i386 (>= 2.7) but it is not installed
                   Depends: libqt4-opengl:i386 (>= 4:4.7.2) but it is not installed
                   Depends: libsdl1.2debian:i386 (>= 1.2.10-1) but it is not installed
                   Depends: libxmu6:i386 but it is not installed
                   Depends: psmisc:i386 but it is not installed
                   Recommends: libsdl-ttf2.0-0:i386 but it is not installed
                   Recommends: dkms:i386 but it is not installable
                   Recommends: linux-headers:i386
                   Recommends: gcc:i386 but it is not installed
                   Recommends: make:i386 but it is not installed
                   Recommends: binutils:i386 but it is not installed
                   Recommends: pdf-viewer:i386
                   Recommends: python-central:i386 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

答案1

尝试这个:

sudo apt-get install --fix-broken 

如果这不起作用,请尝试重新安装包头:

sudo apt-get install linux-headers-generic

另外,请查看此处的答案:

我该如何解决未满足的依赖关系?

相关内容