紧急求助,软件更新数据包无法初始化……

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

紧急求助,软件更新数据包无法初始化……

#1

帖子 wwwj010 » 2008-07-17 18:22

软件更新过程中无故中断,再次运行时提示软件包初始化失败具体报错如下:



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




求大虾指点解决办法,本人是菜鸟,想学习。望高手不吝赐教指点一二,谢谢先!!
头像
sfree
帖子: 603
注册时间: 2007-03-17 1:24
来自: 湖南长沙

#2

帖子 sfree » 2008-07-17 18:24

他不是提示你源列表的第四行有错误么?去检查看看,要不就重新复制粘贴一次
wwwj010
帖子: 29
注册时间: 2008-07-16 18:25

#3

帖子 wwwj010 » 2008-07-17 20:00

该文件打开如下内容:




# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb 中国 hardy main restricted
deb-src 中国 hardy restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb 中国 hardy-updates main restricted
deb-src 中国 hardy-updates restricted main multiverse universe #Added by software-properties

## 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 中国 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 中国 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

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu hardy-security multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://mirror.rootguide.org/ubuntu/ hardy main universe restricted multiverse
deb-src http://mirror.rootguide.org/ubuntu/ hardy main universe restricted multiverse #Added by software-properties
deb http://mirror.rootguide.org/ubuntu/ hardy-updates universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ hardy-updates universe main multiverse restricted


不知道该如何修改,谢谢指点。


尝试修改时候提示:“没有权限保存文件。请检查键入的位置是否正确,然后重试”

请问又该如何操作,谢谢!!



求大虾指点解决办法,本人是菜鸟,想学习。望高手不吝赐教指点一二,谢谢先!!
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

#4

帖子 daf3707 » 2008-07-17 20:07

代码: 全选

sudo gedit /etc/apt/sources.list
把“deb 中国”之类的行前面加"#",谁告诉你的这些源,怎么还有汉字,系统傻眼了吧。
保存退出。

代码: 全选

sudo apt-get update
建议你加上cn99的源,还要注意不要混源,hardy 是8.04的代号,要看清,不要给个源就加,我也是菜,吃几次亏慢慢就懂了。
wwwj010
帖子: 29
注册时间: 2008-07-16 18:25

#5

帖子 wwwj010 » 2008-07-17 21:56

非常感谢
问题已经解决,上文的软件原是系统带的,我的系统是下载的一个论坛里一个大虾做过的包


谢谢楼上解决问题的大虾和关心的大虾!


代码格式和作用……
回复