每次用apt-get 装软件时, 总报下面的错误, 而且弹出重启电脑窗口,该怎么解决?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
whyUbuntu
帖子: 4
注册时间: 2009-10-27 15:46

每次用apt-get 装软件时, 总报下面的错误, 而且弹出重启电脑窗口,该怎么解决?

#1

帖子 whyUbuntu » 2009-10-27 15:55

Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/nvidia-common
run-parts: /etc/kernel/postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.28-16-generic.postinst line 1002.
dpkg:处理 linux-image-2.6.28-16-generic (--configure)时出错:
子进程 post-installation script 返回了错误号 2
dpkg:依赖关系问题使得 linux-restricted-modules-2.6.28-16-generic 的配置工作不能继续:
linux-restricted-modules-2.6.28-16-generic 依赖于 linux-image-2.6.28-16-generic;然而:
软件包 linux-image-2.6.28-16-generic 还没有被配置。
dpkg:处理 linux-restricted-modules-2.6.28-16-generic (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 linux-image-generic 的配置工作不能继续:
linux-image-generic 依赖于 linux-image-2.6.28-16-generic;然而:
软件包 linux-image-2.6.28-16-generic 还没有被配置。
dpkg:处理 linux-image-generic (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 linux-restricted-modules-generic �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.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
��配置工作不能继续:
linux-restricted-modules-generic 依赖于 linux-restricted-modules-2.6.28-16-generic;然而:
软件包 linux-restricted-modules-2.6.28-16-generic 还没有被配置。
dpkg:处理 linux-restricted-modules-generic (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 linux-generic 的配置工作不能继续:
linux-generic 依赖于 linux-image-generic (= 2.6.28.16.21);然而:
软件包 linux-image-generic 还没有被配置。
linux-generic 依赖于 linux-restricted-modules-generic (= 2.6.28.16.21);然而:
软件包 linux-restricted-modules-generic 还没有被配置。

dpkg:处理 linux-generic (--configure)时出错:
依赖关系问题 - 仍未被配置
正在设置 linux-headers-2.6.28-16-generic (2.6.28-16.55) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 10
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.28-16-generic.postinst line 110.
dpkg:处理 linux-headers-2.6.28-16-generic (--configure)时出错:
子进程 post-installation script 返回了错误号 2
No apport report written because MaxReports is reached already
dpkg:依赖关系问题使得 linux-headers-generic 的配置工作不能继续:
linux-headers-generic 依赖于 linux-headers-2.6.28-16-generic;然而:
软件包 linux-headers-2.6.28-16-generic 还没有被配置。
dpkg:处理 linux-headers-generic (--configure)时出错:
依赖关系问题 - 仍未被配置

......

在处理时有错误发生:
linux-image-2.6.28-16-generic
linux-restricted-modules-2.6.28-16-generic
linux-image-generic
linux-restricted-modules-generic
linux-generic
linux-headers-2.6.28-16-generic
linux-headers-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

我的电脑是x86_64的机子, 是在一次系统自动更新时出了上述问题, 请问各位大侠该怎么解决?
我是个杯具
帖子: 13
注册时间: 2009-10-25 0:22

Re: 每次用apt-get 装软件时, 总报下面的错误, 而且弹出重启电脑窗口,该怎么解决?

#2

帖子 我是个杯具 » 2009-10-28 15:09

sudo apt-get autoremove
sudo apt-get -f install
sudo aptitude purge

你装什么软件?你现看看你当前的内核是什么版本的?看看启动菜单的内核版本。
whyUbuntu
帖子: 4
注册时间: 2009-10-27 15:46

Re: 每次用apt-get 装软件时, 总报下面的错误, 而且弹出重启电脑窗口,该怎么解决?

#3

帖子 whyUbuntu » 2009-11-11 8:44

谢谢你的回复,我的内核现在是linux 2.6.28-15-generic, 就是升级到2.6.28-16-generic 时, 出了上面的问题的。 我把2.6.28-16-generic卸掉, 安装软件就没有上面的问题了。 现在内核一直没有升级, 一升级 就出上面的问题。请问,这是什么原因?
回复