赞
踩
使用apt-get安装任何程序都会出现如下错误,dpkg 产生的
The following partially installed packages will be configured:
gdebi gksu
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
Need to get 0 B/71.8 kB of archives. After unpacking 0 B will be used.
dpkg: error processing package libgksu2-0 (--configure):
package libgksu2-0 is not ready for configuration
cannot configure (current status 'half-installed')
dpkg: dependency problems prevent configuration of gksu:
gksu depends on libgksu2-0 (>= 2.0.8); however:
Package libgksu2-0 is not installed.
dpkg: error processing package gksu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gdebi:
gdebi depends on gksu; however:
Package gksu is not configured yet.
dpkg: error processing package gdebi (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
libgksu2-0
gksu
gdebi
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
dpkg: dependency problems prevent configuration of gdebi:
gdebi depends on gksu; however:
Package gksu is not configured yet.
dpkg: error processing package gdebi (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gdebi
dpkg: error processing package linux-image-generic (–configure): dependency problems - leaving unconfigured
I had this issue just now. What I did was purge the errant package using dpkg in my case then update and force the reinstall:
清除安装失败的包,然后更新
sudo dpkg --purge linux-image-3.13.0-35-generic
sudo apt-get update
sudo apt-get -f install
The installation process may take a bit longer, but it worked in the end.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。