升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

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

升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#1

帖子 snjesus » 2008-10-03 22:21

sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包将被【卸载】:
linux-ubuntu-modules-2.6.24-16-generic
下列的软件包的版本将保持不变:
gstreamer0.10-plugins-ugly-multiverse mplayer
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 2 个软件未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后将会空出 15.8MB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 111487 个文件和目录。)
正在删除 linux-ubuntu-modules-2.6.24-16-generic ...
FATAL: Could not open '/boot/System.map-2.6.24-16-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.24-16-generic
Cannot find /lib/modules/2.6.24-16-generic
update-initramfs: failed for /boot/initrd.img-2.6.24-16-generic
dpkg:处理 linux-ubuntu-modules-2.6.24-16-generic (--remove)时出错:
子进程 post-removal script 返回了错误号 1
在处理时有错误发生:
linux-ubuntu-modules-2.6.24-16-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
snjesus
帖子: 13
注册时间: 2005-08-30 22:58

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#2

帖子 snjesus » 2008-10-03 22:33

:em20 现在是什么软件也装不上了。
sudo apt-get -f install和用新立得也解决不了。也删除不掉这个内核。
alteeno
帖子: 254
注册时间: 2006-01-18 18:11

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#3

帖子 alteeno » 2008-10-04 0:01

直接用dpkg试试。
sudo dpkg -r --force-all 软件包名
snjesus
帖子: 13
注册时间: 2005-08-30 22:58

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#4

帖子 snjesus » 2008-10-04 9:06

还是不行

sudo dpkg -r --force-all linux-ubuntu-modules-2.6.24-16-generic

(正在读取数据库 ... 系统当前总共安装有 111487 个文件和目录。)
正在删除 linux-ubuntu-modules-2.6.24-16-generic ...
FATAL: Could not open '/boot/System.map-2.6.24-16-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.24-16-generic
Cannot find /lib/modules/2.6.24-16-generic
update-initramfs: failed for /boot/initrd.img-2.6.24-16-generic
dpkg:处理 linux-ubuntu-modules-2.6.24-16-generic (--remove)时出错:
子进程 post-removal script 返回了错误号 1
在处理时有错误发生:
linux-ubuntu-modules-2.6.24-16-generic
rainofchaos
帖子: 140
注册时间: 2006-10-15 12:59
联系:

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#5

帖子 rainofchaos » 2008-10-09 15:04

用 locate 搜索内核版本,大概在 /var 下面有一个 文件,删掉就行了
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#6

帖子 想入非非 » 2008-10-14 0:18

今天升级好像已经没有这个问题了 :em04
Ubuntu User
cloudsforest
帖子: 1
注册时间: 2008-11-04 9:40

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#7

帖子 cloudsforest » 2008-11-04 9:43

今天升级的时候也出现同样的问题,查了一下,发现下面的方法可行。

http://www.uluga.ubuntuforums.org/showt ... p?t=818397
You can work around this problem by removing the postrm scripts that
fail and prevent apt from removing these packags. If you're really not
going to use 2.6.24-16 and 2.6.24-17 kernels on this system (without
completely reinstalling them), that should be safe to do:

sudo rm /var/lib/dpkg/info/linux-backports-modules-2.6.24-16-generic.postrm
sudo rm /var/lib/dpkg/info/linux-backports-modules-2.6.24-17-generic.postrm
sudo rm /var/lib/dpkg/info/linux-ubuntu-modules-2.6.24-16-generic.postrm
sudo rm /var/lib/dpkg/info/linux-ubuntu-modules-2.6.24-17-generic.postrm
sudo apt-get remove linux-ubuntu-modules-2.6.24-16-generic \
linux-ubuntu-modules-2.6.24-17-generic \
linux-backports-modules-2.6.24-16-generic \
linux-backports-modules-2.6.24-17-generic
头像
jordan0102
帖子: 25
注册时间: 2007-12-16 0:45

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#8

帖子 jordan0102 » 2008-11-08 12:17

支持7楼,我也是参考这个方法解决804升级810后新立得无法更新的问题(虽然不太明白是什么意思)。
jun2ran
帖子: 39
注册时间: 2008-11-15 16:14

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#9

帖子 jun2ran » 2008-11-23 9:54

我也照7楼那么解决的@谢谢搂住了!哈哈~~~
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

Re: 升级8.10后出现的问题。大侠帮帮忙吧!该怎么解决?

#10

帖子 mickeywaley » 2009-03-25 15:26

我也是这样,安7楼的也去研究下看看,还是没搞定,郁闷哦。。。
回复