ubuntu不能装软件,不能更新

系统错误报告和讨论
回复
头像
zhanggg
帖子: 85
注册时间: 2007-10-25 14:54
来自: HeNan & HUST
送出感谢: 0
接收感谢: 0
联系:

ubuntu不能装软件,不能更新

#1

帖子 zhanggg » 2007-11-25 21:20

昨天晚上apt-get install eclipse时已下载完毕,安装时突然停电。今早安装avg时突然发生错误,提示说"只能同时运行一个软件管理工具",但我没开其他的啊。我又启动新立得,出现如下错误:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

于是我dpkg --configure -a
系统提示:
dpkg: parse error, in file `/var/lib/dpkg/updates/0001' near line 1:
newline in field name `padding'

我又 fc-cache
结果同样

后来我又倒腾了半天,把/var/lib/dpkg/updates下的文件全删除了。装软件还是不能装,后来系统提示有更新,我运行更新管理器后, 收到提示:

有错误
细节信息如下:
E: /var/cache/apt/archives/ant_1.7.0-3_all.deb: files list file for package `ant' is missing final newline

然后就装不了软件。

我又在终端下安装软件,同样收到以下提示:

(正在读取数据库 ... dpkg:处理 /var/cache/apt/archives/ant_1.7.0-3_all.deb (--unpack)时出错:
files list file for package `ant' is missing final newline
在处理时有错误发生:
/var/cache/apt/archives/ant_1.7.0-3_all.deb
由于出现了太多错误,处理过程被终止了。
E: Sub-process /usr/bin/dpkg returned an error code (1)

更新软件源也同样如此,请教各位兄弟姐妹帮忙解决下!
附件
Screenshot.png
头像
wangboe
帖子: 596
注册时间: 2007-10-23 22:47
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 wangboe » 2007-11-25 21:38

帮不了你,帮你顶顶
捉泥鳅,捉泥鳅
大哥哥带你去捉泥鳅
tanyongliang
帖子: 91
注册时间: 2006-07-17 14:36
来自: 黑龙江
送出感谢: 0
接收感谢: 0
联系:

看这个,我发的帖子,问题我已经解决的

#3

帖子 tanyongliang » 2007-11-30 13:48

头像
zhanggg
帖子: 85
注册时间: 2007-10-25 14:54
来自: HeNan & HUST
送出感谢: 0
接收感谢: 0
联系:

Re: 看这个,我发的帖子,问题我已经解决的

#4

帖子 zhanggg » 2007-11-30 16:32

tanyongliang 写了:viewtopic.php?t=90310&highlight=
我照楼上说的做了,但是问题仍然没有解决。

root@zhanggg-desktop:/var/lib/dpkg/info# rm tzdata.postinst
root@zhanggg-desktop:/var/lib/dpkg/info# apt-get update
Get:1 http://tw.archive.ubuntu.com gutsy Release.gpg [191B]
Get:2 http://security.ubuntu.com gutsy-security Release.gpg [191B]
Get:3 http://tw.archive.ubuntu.com gutsy-updates Release.gpg [191B]
Hit http://security.ubuntu.com gutsy-security Release
Get:4 http://tw.archive.ubuntu.com gutsy-security Release.gpg [191B]
Hit http://tw.archive.ubuntu.com gutsy Release
Hit http://tw.archive.ubuntu.com gutsy-updates Release
Hit http://tw.archive.ubuntu.com gutsy-security Release
Hit http://tw.archive.ubuntu.com gutsy/restricted Packages
Hit http://tw.archive.ubuntu.com gutsy/universe Packages
Hit http://tw.archive.ubuntu.com gutsy/main Packages
Hit http://tw.archive.ubuntu.com gutsy/multiverse Packages
Hit http://tw.archive.ubuntu.com gutsy-security/restricted Packages
Hit http://tw.archive.ubuntu.com gutsy-security/universe Packages
Hit http://tw.archive.ubuntu.com gutsy-security/main Packages
Hit http://tw.archive.ubuntu.com gutsy-security/multiverse Packages
Hit http://tw.archive.ubuntu.com gutsy-security/restricted Sources
Hit http://tw.archive.ubuntu.com gutsy-security/universe Sources
Hit http://tw.archive.ubuntu.com gutsy-security/main Sources
Hit http://tw.archive.ubuntu.com gutsy-security/multiverse Sources
Fetched 4B in 7s (1B/s)
Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dists/gutsy/Release Unable to find expected entry gutsy-backports/source/Sources in Meta-index file (malformed Release file?)
Failed to fetch http://security.ubuntu.com/ubuntu/dists ... ty/Release Unable to find expected entry gutsy-proposed/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dis ... es/Release Unable to find expected entry gutsy-backports/binary-i386/Packages in Meta-index file (malformed Release file?)
Failed to fetch http://tw.archive.ubuntu.com/ubuntu/dis ... ty/Release Unable to find expected entry gutsy-proposed/source/Sources in Meta-index file (malformed Release file?)
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
root@zhanggg-desktop:/var/lib/dpkg/info# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
ant firefox firefox-gnome-support gaim libapache2-mod-php5 libpcre3
libpcrecpp0 libpurple0 mplayer php5-common php5-mysql pidgin pidgin-data
xpdf-common
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B/21.2MB of archives.
After unpacking 1516kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... dpkg: error processing /var/cache/apt/archives/ant_1.7.0-3_all.deb (--unpack):
files list file for package `ant' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/ant_1.7.0-3_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@zhanggg-desktop:/var/lib/dpkg/info# rm tzdata.postinst
rm: cannot remove `tzdata.postinst': No such file or directory
root@zhanggg-desktop:/var/lib/dpkg/info#

再次请教如何解决。
头像
lh5201414
帖子: 22
注册时间: 2007-12-06 16:01
送出感谢: 0
接收感谢: 0

#5

帖子 lh5201414 » 2007-12-10 22:59

2 解决方法
高人给的方法
sudo fc-cache -fv 2>&1 | grep failed | cut -f1 -d":" | xargs -i sudo touch {} && sudo fc-cache -fv
Dust
帖子: 1
注册时间: 2007-04-19 11:12
送出感谢: 0
接收感谢: 0

#6

帖子 Dust » 2008-04-30 16:04

我也遇到这样的问题了,
我把'dpkg --configure -a' 检测到的`/var/lib/dpkg/updates/00**'这些文件全部删掉了,再重新校验,搞定了。楼主要是没解决参考下,就是不知道会有什么后果,自负啊!
头像
zhanggg
帖子: 85
注册时间: 2007-10-25 14:54
来自: HeNan & HUST
送出感谢: 0
接收感谢: 0
联系:

#7

帖子 zhanggg » 2008-04-30 16:34

Dust 写了:我也遇到这样的问题了,
我把'dpkg --configure -a' 检测到的`/var/lib/dpkg/updates/00**'这些文件全部删掉了,再重新校验,搞定了。楼主要是没解决参考下,就是不知道会有什么后果,自负啊!
呵呵,已经解决了,现在又重装8.04了。
回复

回到 “Ubuntu错误报告”