【已解决】遇到post-installation 错误,烦的我滚来滚去。

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

【已解决】遇到post-installation 错误,烦的我滚来滚去。

#1

帖子 polestar » 2010-10-26 15:34

不论我用软件中心,还是新立得软件,装任何软件都出post-install的问题。
google 来下。按里面的方法,问题依旧。

代码: 全选

duyong@duyong-VGN-TZ13-B:/etc$ sudo apt-get autoclean
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
duyong@duyong-VGN-TZ13-B:/etc$ sudo apt-get clean
duyong@duyong-VGN-TZ13-B:/etc$ sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 4 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0B 的额外空间。
正在设置 linux-image-2.6.35-22-generic (2.6.35-22.35) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-22-generic
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.35-22.33 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.35-22.33 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
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.35-22-generic.postinst line 1010.
dpkg:处理 linux-image-2.6.35-22-generic (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 2
正在设置 linux-headers-2.6.35-22-generic (2.6.35-22.35) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
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.35-22-generic.postinst line 110.
dpkg:处理 linux-headers-2.6.35-22-generic (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 2
dpkg:依赖关系问题使得 linux-headers-generic 的配置工作不能继续:
 linux-headers-generic 依赖于 linux-headers-2.6.35-22-generic;然而:
  软件包 linux-headers-2.6.35-22-generic 尚未配置。
dpkg:处理 linux-headers-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 linux-image-generic 的配置工作不能继续:
 linux-image-generic 依赖于 linux-image-2.6.35-22-generic;然而:
  软件包 linux-image-2.6.35-22-generic 尚未配置。
dpkg:处理 linux-image-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                        在处理时有错误发生:
 linux-image-2.6.35-22-generic
 linux-headers-2.6.35-22-generic
 linux-headers-generic
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
duyong@duyong-VGN-TZ13-B:/etc$ 
上次由 polestar 在 2010-10-26 16:38,总共编辑 1 次。
polestar
帖子: 7
注册时间: 2009-07-07 20:43

Re: 遇到post-installation 错误,烦的我滚来滚去。

#2

帖子 polestar » 2010-10-26 16:00

在新立得里面完全删除
linux-image-2.6.35-22-generic
linux-headers-2.6.35-22-generic
linux-headers-generic
linux-image-generic
linux-generic

再重新安装后,问题依旧
polestar
帖子: 7
注册时间: 2009-07-07 20:43

Re: 遇到post-installation 错误,烦的我滚来滚去。

#3

帖子 polestar » 2010-10-26 16:37

问题已经解决。参照帖子
viewtopic.php?f=77&t=213816

linux-image-2.6.35-22-generic
linux-headers-2.6.35-22-generic
这2个包的状态由
install ok half-configured
改为
install ok installed

然后一切都正常
最后提醒下。干这些事情前,别忘记备份。
回复