我的大多数 apt-get 都失败了,Ubuntu 建议我运行“sudo apt-get -f install”,结果如下:
dpkg: error processing ubuntu-standard (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of grub-pc:
grub-pc depends on grub2-common (= 1.99-21ubuntu3); however:
Version of grub2-common on system is 1.99-21ubuntu3.1.
grub-pc depends on grub-pc-bin (= 1.99-21ubuntu3); however:
Version of grub-pc-bin on system is 1.99-21ubuntu3.1.
dpkg: error processing grub-pc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.2.0-24-generic; however:
Package linux-image-3.2.0-24-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure): dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.24.26); however:
Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.0.0-19-generic
linux-image-3.2.0-24-generic
friendly-recovery
memtest86+
ubuntu-standard
grub-pc
linux-image-generic
linux-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
我现在应该做什么。
答案1
确保您已激活“推荐更新(精确更新)”作为软件源:
然后运行
sudo apt-get update
sudo apt-get upgrade
答案2
No apport report written because MaxReports is reached already
意味着 apport 中充满了旧的错误日志,因此您必须清除它,以便Apport
可以重新启动其错误记录。
要清除它,请清除以下两个路径:崩溃文件收集在:/var/crash
在会话中,如果 apport 收集信息,apport 文件也会收集在:/tmp/apport.appname...
现在再试一次,这次 Apport 至少应该为您的问题生成一个很好的错误日志,您可以使用它来报告/解决错误(或问题)。