[问题]'E:安装源配置文件“/etc/apt/sources.list”第 4 行有错误 (URI parse),

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

[问题]'E:安装源配置文件“/etc/apt/sources.list”第 4 行有错误 (URI parse),

#1

帖子 1986mao » 2008-07-05 19:35

最近8.04.1更新出来了,但一直没有更新,所以在调试更新源,一次更改设置意外断网后,发生'E:安装源配置文件“/etc/apt/sources.list”第 4 行有错误 (URI parse), E:无法读取安装源列表。'下面是我的设置文件。顺便问问,为什么我的用手动选择中国的3个服务器之一有大量的更新,但直接选择中国的服务器则没有更新?这个地方正确应该怎么设置?

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

deb 中国 hardy main restricted
deb-src 中国 hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb 中国 hardy main restricted
deb-src 中国 hardy 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

# 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://security.ubuntu.com/ubuntu/ hardy-security restricted main multiverse universe
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2008-07-05 19:36

怎么这么多"中国"呢
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
1986mao
帖子: 17
注册时间: 2008-04-27 12:00
来自: 上海

#3

帖子 1986mao » 2008-07-05 19:38

参考了一篇这里的文章,'E:安装源配置文件“/etc/apt/sources.list”第 4 行有错误 (URI parse), E:无法读取安装源列表。已经解决。
但还是想顺便问问,为什么我的用手动选择中国的3个服务器之一有大量的更新,但直接选择中国的服务器则没有更新?这个地方正确应该怎么设置?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2008-07-05 19:48

deb 中国 hardy main restricted
这不是URI。 :lol:
● 鸣学
头像
异域追梦者
帖子: 424
注册时间: 2008-02-18 0:25
联系:

#5

帖子 异域追梦者 » 2008-07-05 20:01

BigSnake.NET 写了:怎么这么多"中国"呢
图片
回复