请教:升级出现的错误

重复贴和参考价值不大的帖子,版主维护
回复
bg3721
帖子: 3
注册时间: 2008-10-06 22:06
送出感谢: 0
接收感谢: 0

请教:升级出现的错误

#1

帖子 bg3721 » 2008-10-31 10:03

一次升级时没有完成,下次升级时提示错误:

不能够初始化包信息
初始化包信息时遇到无法解决的问题。
请汇报这个此 'update-manager' 软件包的错误,并且将如下信息包含在报告中:
'E:安装源配置文件“/etc/apt/sources.list”第 9 行有错误 (URI parse), E:无法读取安装源列表。'

E: 安装源配置文件“/etc/apt/sources.list”第 9 行有错误 (URI parse)
E: 所列资源不可读。
情转到软件库对话框修正该问题。
E: _cache->open() failed, please report.

请教各位大侠,我该如何操作才能修正问题呢?以下是sources.list文件中的详细内容:

# deb cdrom:[Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# deb-src 中国 hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb 中国 hardy-updates main restricted
# deb-src 中国 hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb 中国 hardy universe
# deb-src 中国 hardy universe
deb 中国 hardy-updates universe
# deb-src 中国 hardy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb 中国 hardy multiverse
# deb-src 中国 hardy multiverse
deb 中国 hardy-updates multiverse
# deb-src 中国 hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb 中国 hardy-security main restricted
# deb-src 中国 hardy-security main restricted
deb 中国 hardy-security universe
# deb-src 中国 hardy-security universe
deb 中国 hardy-security multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ hardy main universe restricted
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates universe main restricted
# deb-src 中国 hardy-security multiverse
bg3721
帖子: 3
注册时间: 2008-10-06 22:06
送出感谢: 0
接收感谢: 0

Re: 请教:升级出现的错误

#2

帖子 bg3721 » 2008-10-31 10:35

已经解决了,不知道是不是正确的解决方法,请指正:

打开超级用户终端,输入:gedit /etc/apt/sources.list
然后删除 sources.list 文件中的所有内容,保存设置即可。

如果打开用户终端,则输入:sudo gedit /etc/apt/sources.list 因为编辑 sources.list 文件需要超级用户权限。
回复

回到 “归档贴”