我先是在/lib/modules/ubuntu下删除了linux-ubuntu-modules-2.6.22-14-generic和linux-ubuntu-modules-2.6.22-15-generic。
然后当我安装其他软件或者执行apt-get autoremove的时候发生以下错误:
正在删除 linux-ubuntu-modules-2.6.22-14-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-14-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Cannot find /lib/modules/2.6.22-14-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-14-generic
dpkg:处理 linux-ubuntu-modules-2.6.22-14-generic (--remove)时出错:
子进程 post-removal script 返回了错误号 1
正在删除 linux-ubuntu-modules-2.6.22-15-generic ...
FATAL: Could not open '/boot/System.map-2.6.22-15-generic': No such file or directory
update-initramfs: Generating /boot/initrd.img-2.6.22-15-generic
Cannot find /lib/modules/2.6.22-15-generic
update-initramfs: failed for /boot/initrd.img-2.6.22-15-generic
dpkg:处理 linux-ubuntu-modules-2.6.22-15-generic (--remove)时出错:
子进程 post-removal script 返回了错误号 1
在处理时有错误发生:
linux-ubuntu-modules-2.6.22-14-generic
linux-ubuntu-modules-2.6.22-15-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
就再也走不下去了,请问如何解决。
我觉得相当于在win中直接删除了文件,而没有正常卸载程序造成的一样,但不知道如何解决,请大家帮帮我。
无法再安装软件,求助!
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 74
- 注册时间: 2007-01-28 20:19
- 联系:
-
- 帖子: 74
- 注册时间: 2007-01-28 20:19
- 联系:
Re: 无法再安装软件,求助!
哪位帮忙给个解决的办法。
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
Re: 无法再安装软件,求助!
sudo touch /boot/System.map-2.6.22-15-generic
试试。
试试。