昨天晚上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)
更新软件源也同样如此,请教各位兄弟姐妹帮忙解决下!
ubuntu不能装软件,不能更新
- zhanggg
- 帖子: 85
- 注册时间: 2007-10-25 14:54
- 来自: HeNan & HUST
-
- 帖子: 91
- 注册时间: 2006-07-17 14:36
- 来自: 黑龙江
- zhanggg
- 帖子: 85
- 注册时间: 2007-10-25 14:54
- 来自: HeNan & HUST
Re: 看这个,我发的帖子,问题我已经解决的
我照楼上说的做了,但是问题仍然没有解决。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
-
- 帖子: 1
- 注册时间: 2007-04-19 11:12