菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

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

菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#1

帖子 cdl1111 » 2008-09-23 12:19

今天更新管理器,安装更新时,突然提示:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.
然后我在终端输入 sudo dpkg --configure -a
然后就显示
正在设置 initramfs-tools (0.85eubuntu39.2) ...
update-initramfs: deferring update (trigger activated)

正在设置 linux-image-2.6.24-19-generic (2.6.24-19.41) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
Failed to symbolic-link boot/initrd.img-2.6.24-19-generic to initrd.img.
dpkg:处理 linux-image-2.6.24-19-generic (--configure)时出错:
子进程 post-installation script 返回了错误号 17
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-bootinitrd.img-2.6.15-29-686
Cannot find /lib/modules/bootinitrd.img-2.6.15-29-686
update-initramfs: failed for /boot/initrd.img-bootinitrd.img-2.6.15-29-686
dpkg: 子进程 post-installation script 返回了错误号 1

我上网查了一下,好像是说/boot空间不够
接着@ubuntu8:~$ uname -a
Linux ubuntu8 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
@ubuntu8:~$ dpkg --get-selections | grep linux
libselinux1 install
linux-generic install
linux-headers-2.6.24-16 install
linux-headers-2.6.24-16-generic install
linux-headers-2.6.24-18 install
linux-headers-2.6.24-18-generic install
linux-headers-2.6.24-19 install
linux-headers-2.6.24-19-generic install
linux-headers-generic install
linux-image-2.6.15-29-686 install
linux-image-2.6.24-16-generic install
linux-image-2.6.24-18-generic install
linux-image-2.6.24-19-generic install
linux-image-generic install
linux-libc-dev install
linux-restricted-modules-2.6.24-16-generic install
linux-restricted-modules-2.6.24-18-generic install
linux-restricted-modules-2.6.24-19-generic install
linux-restricted-modules-common install
linux-restricted-modules-generic install
linux-sound-base install
linux-ubuntu-modules-2.6.24-16-generic install
linux-ubuntu-modules-2.6.24-18-generic install
linux-ubuntu-modules-2.6.24-19-generic install
util-linux install
util-linux-locales

我该怎么做???本人菜鸟一个,麻烦各位大虾说的详细一些,不胜感激!!
头像
yiding_he
帖子: 2677
注册时间: 2006-10-25 18:10
来自: 长沙
联系:

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#2

帖子 yiding_he » 2008-09-23 12:27

我给你翻译一下:

dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
dpkg 软件包被损坏,你必须在手动执行“dpkg --configure -a”来修复这个问题。

现在楼主知道该怎么办了。
你是自由的。别人也是。
cdl1111
帖子: 3
注册时间: 2008-09-23 11:50

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#3

帖子 cdl1111 » 2008-09-23 12:47

是不是在终端输入 sudo dpkg --configure -a
开始显示
正在设置 initramfs-tools (0.85eubuntu39.2) ...
update-initramfs: deferring update (trigger activated)

正在设置 linux-image-2.6.24-19-generic (2.6.24-19.41) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-19-generic
Failed to symbolic-link boot/initrd.img-2.6.24-19-generic to initrd.img.
dpkg:处理 linux-image-2.6.24-19-generic (--configure)时出错:
子进程 post-installation script 返回了错误号 17
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-bootinitrd.img-2.6.15-29-686
Cannot find /lib/modules/bootinitrd.img-2.6.15-29-686
update-initramfs: failed for /boot/initrd.img-bootinitrd.img-2.6.15-29-686
dpkg: 子进程 post-installation script 返回了错误号 1

这是什么意思??
头像
yiding_he
帖子: 2677
注册时间: 2006-10-25 18:10
来自: 长沙
联系:

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#4

帖子 yiding_he » 2008-09-23 13:50

我找到这么一句:
Try And Go Ointo Synaptic And Under "Repositories" On The Toolbar Check All The Boxes In All The Tabs.....
打开软件源,选中所有标签页下面的所有的库。
你是自由的。别人也是。
cdl1111
帖子: 3
注册时间: 2008-09-23 11:50

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#5

帖子 cdl1111 » 2008-09-26 9:31

打开“软件源”可依然不是
先是更新,然后又提示
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

哎……真是不明白了
头像
qweone
帖子: 3
注册时间: 2009-03-15 20:37

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#6

帖子 qweone » 2009-04-11 10:17

我也是有这个问题。
不过我在终端下输入 sudo dpkg --configure -a 就行了
:em01
qq1627211
帖子: 8
注册时间: 2006-12-06 5:23

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#7

帖子 qq1627211 » 2009-04-27 0:23

我也用了6楼的方法,很好用,3q
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#8

帖子 wangdu2002 » 2009-04-27 0:42

操作步骤,打开终端,执行命令:
1、sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
---删除旧内核,复制、粘贴一键搞定,可以简化菜单,节约空间,方便操作
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
haodxue3888
帖子: 10
注册时间: 2008-11-05 18:23

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#9

帖子 haodxue3888 » 2009-04-29 21:09

qweone 写了:我也是有这个问题。
不过我在终端下输入 sudo dpkg --configure -a 就行了
:em01
Right,thanks!!
xcqkenl
帖子: 17
注册时间: 2009-05-08 1:23

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#10

帖子 xcqkenl » 2009-05-08 1:30

为什么我输入sudo dpkg --configure -a 后 提示
dpkg: 语法分析错误,在“/var/lib/dpkg/updates/0098”文件的第“5”行附近 软件包“scim-tables-zh”:
在字段“Maintainer”的值中间发现了 EOF 字符(缺少最后结尾的换行符)
xcqkenl@ubuntu:~$ sudo dpkg --configure -a
dpkg: 语法分析错误,在“/var/lib/dpkg/updates/0098”文件的第“5”行附近 软件包“scim-tables-zh”:
在字段“Maintainer”的值中间发现了 EOF 字符(缺少最后结尾的换行符)
请问如何处理阿
xcqkenl
帖子: 17
注册时间: 2009-05-08 1:23

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#11

帖子 xcqkenl » 2009-05-08 1:31

希望高手给解答下 我是新手
头像
regding
帖子: 16
注册时间: 2009-04-09 21:25

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#12

帖子 regding » 2009-06-27 19:33

我的也是这个问题,但是在终端输入 sudo dpkg --configure -a 就解决了
xayu
帖子: 14
注册时间: 2009-05-31 10:31

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#13

帖子 xayu » 2009-09-10 8:47

make
tianyajian1982
帖子: 43
注册时间: 2009-08-29 11:13

Re: 菜鸟求教 E: dpkg was interrupted, you must manually run 'dpkg --

#14

帖子 tianyajian1982 » 2009-09-13 14:24

我的还没有解决,气人啊
回复