apt-get
当我尝试升级 Python 时我注意到了这个问题,但这似乎是所有命令的问题。
当我这样做时uname -a
我得到
Linux sarah-ThinkPad-X220 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
但是当我尝试运行任何apt-get
命令时,我收到与 linux-image-3.13.0-63-generic 相关的错误。
以下是我执行此操作时收到的所有错误消息sudo apt-get upgrade python
:
Setting up linux-image-3.13.0-63-generic (3.13.0-63.103) ... Internal
Error: Could not find image (/boot/vmlinuz-3.13.0-63-generic) dpkg:
error processing package linux-image-3.13.0-63-generic (--configure):
subprocess installed post-installation script returned error exit
status 2 dpkg: dependency problems prevent configuration of
linux-image-extra-3.13.0-63-generic:
linux-image-extra-3.13.0-63-generic depends on
linux-image-3.13.0-63-generic; however: Package
linux-image-3.13.0-63-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.13.0-63-generic
(--configure): dependency problems - leaving unconfigured dpkg:
dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-63-generic; however:
Package linux-image-3.13.0-63-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-63-generic;
however: Package linux-image-extra-3.13.0-63-generic is not
configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured dpkg: dependency problemsNo
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.
No apport report written because MaxReports is reached already
prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.63.71); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured Errors were encountered
while processing: linux-image-3.13.0-63-generic
linux-image-extra-3.13.0-63-generic linux-image-generic
linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)
我使用任何命令都会遇到类似的错误apt-get
。任何帮助都将不胜感激。如果您需要更多信息,请告诉我。~
答案1
尝试运行以下命令:
cd ~/
mkdir aptget;cd aptget
wget http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-3.13.0-63-generic_3.13.0-63.103_amd64.deb
sudo dpkg -i linux-image-3.13.0-63-generic_3.13.0-63.103_amd64.deb
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
cd ..
rm -R aptget
如果仍然抱怨,请运行以下命令:
sudo apt-get -f install