昨天按照8.04.1配置指南应用了这个命令:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
之后再也不能使用apt-get了,请看一下为什么?
我查了一下 /etc/apt/sources.list.d/medibuntu.list的内容,很多是乱码,而另外下载一个http://www.medibuntu.org/sources.list.d/hardy.list 文件里面却没有乱码。
[问题]不能使用apt-get更新了。
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- oo-BOON-too
- 帖子: 118
- 注册时间: 2008-09-18 18:21
- oo-BOON-too
- 帖子: 118
- 注册时间: 2008-09-18 18:21
错误提示:
E: Type '<html>' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
file:///etc/apt/sources.list内容如下,没有改动:
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main multiverse restricted
deb-src http://security.ubuntu.com/ubuntu/ hardy-security universe main multiverse restricted
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted
E: Type '<html>' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
file:///etc/apt/sources.list内容如下,没有改动:
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main multiverse restricted
deb-src http://security.ubuntu.com/ubuntu/ hardy-security universe main multiverse restricted
deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted
上次由 oo-BOON-too 在 2008-09-20 10:58,总共编辑 1 次。
- oo-BOON-too
- 帖子: 118
- 注册时间: 2008-09-18 18:21
- oo-BOON-too
- 帖子: 118
- 注册时间: 2008-09-18 18:21
搞定,但还有一事不明。
刚才试着把这个目录及其下的文件全删了,/etc/apt/sources.list.d/*,现在可以用apt-get了,但没有搞清apt获取源的机理和先后顺序,难道在/etc/apt/目录下只要有文件夹,就优先从那里获取源吗?