[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 装内核,包出问题了怎么解决?



2008/9/28 li xin <xinligg@gmail.com>:
> i# apt-get install linux-image-2.6.26-1-686
> 正在读取软件包列表... 完成
> 正在分析软件包的依赖关系树
> 正在读取状态信息... 完成
> linux-image-2.6.26-1-686 已经是最新的版本了。
> linux-image-2.6.26-1-686 被设置为手动安装。
> 共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 378 个软件未被升级。
> 有 1 个软件包没有被完全安装或卸载。
> 解压缩后会消耗掉 0B 的额外空间。
> 正在设置 linux-image-2.6.26-1-686 (2.6.26-6) ...
> Running depmod.
> Running mkinitramfs-kpkg.
> Not updating initrd symbolic links since we are being updated/reinstalled
> (2.6.26-2 was configured last, according to dpkg)
> Not updating image symbolic links since we are being updated/reinstalled
> (2.6.26-2 was configured last, according to dpkg)
> Running postinst hook script update-grub.
> Searching for GRUB installation directory ... found: /boot/grub
> User postinst hook script [update-grub] exited with value 1
> dpkg:处理 linux-image-2.6.26-1-686 (--configure)时出错:
>  子进程 post-installation script 返回了错误号 1
> 在处理时有错误发生:
>  linux-image-2.6.26-1-686
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> 然后我用-f也不行。
>
> # apt-get install -f
> 正在读取软件包列表... 完成
> 正在分析软件包的依赖关系树
> 正在读取状态信息... 完成
> 共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 378 个软件未被升级。
> 有 1 个软件包没有被完全安装或卸载。
> 解压缩后会消耗掉 0B 的额外空间。
> 正在设置 linux-image-2.6.26-1-686 (2.6.26-6) ...
> Running depmod.
> Running mkinitramfs-kpkg.
> Not updating initrd symbolic links since we are being updated/reinstalled
> (2.6.26-2 was configured last, according to dpkg)
> Not updating image symbolic links since we are being updated/reinstalled
> (2.6.26-2 was configured last, according to dpkg)
> Running postinst hook script update-grub.
> Searching for GRUB installation directory ... found: /boot/grub
> User postinst hook script [update-grub] exited with value 1
> dpkg:处理 linux-image-2.6.26-1-686 (--configure)时出错:
>  子进程 post-installation script 返回了错误号 1
> 在处理时有错误发生:
>  linux-image-2.6.26-1-686
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>

先删除你刚才装的那个 2.6.26-1.686 的包。

然后做完以下这些,再升级内核吧。
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

升级你的内核吧。这样应该没错误了。
以后在升级东西前,先看一下,系统中是否有需要升级的包。

-- 
Regards,

G

Reply to: