[问题]能上网,firefox能下载东西,但是用apt-get 和 软件包管理器都下载不了东西

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

[问题]能上网,firefox能下载东西,但是用apt-get 和 软件包管理器都下载不了东西

#1

帖子 deadbroke » 2008-05-10 11:37

ubuntu 8.04 系统
网络是通的
使用apt-get 和软件包管理器下载 gnash 时,提示:
W: 未能取回 http://cn.archive.ubuntu.com/ubuntu/poo ... 3_i386.deb
无法解析域名“cn.archive.ubuntu.com”


W: 未能取回 http://cn.archive.ubuntu.com/ubuntu/poo ... 3_i386.deb
无法解析域名“cn.archive.ubuntu.com”


W: 未能取回 http://cn.archive.ubuntu.com/ubuntu/poo ... 3_i386.deb
无法解析域名“cn.archive.ubuntu.com”


W: 未能取回 http://cn.archive.ubuntu.com/ubuntu/poo ... 3_i386.deb
无法解析域名“cn.archive.ubuntu.com”

更新管理器在执行更新时,也有一部分文件下载不了,也是提示:无法解析域名
以下是我的 sources.list:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://cn.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ 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 http://cn.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy universe
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ 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 http://cn.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ 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 http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse


这该如何解决阿 ,大伙儿帮忙看看,谢谢!
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#2

帖子 qiang_liu8183 » 2008-05-10 14:25

换源
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

#3

帖子 adagio » 2008-05-10 14:36

qiang_liu8183 写了:换源
头像
Final_x
帖子: 383
注册时间: 2008-05-03 23:05
联系:

#4

帖子 Final_x » 2008-05-10 14:50

源的问题
如果你已经存了好多源地址在
sources.list里面你可以

代码: 全选

sudo apt-get update
deadbroke
帖子: 6
注册时间: 2007-12-01 15:04

[已解决]

#5

帖子 deadbroke » 2008-05-11 12:00

ok,搞定,谢了!
头像
imshhui
帖子: 54
注册时间: 2007-12-09 13:07

Re: [已解决]

#6

帖子 imshhui » 2008-05-25 0:07

deadbroke 写了:ok,搞定,谢了!
怎么解决的,能否给发一下解决办法谢谢
口碑贼好
帖子: 6
注册时间: 2008-05-24 20:05

Re: [已解决]

#7

帖子 口碑贼好 » 2008-05-25 16:40

imshhui 写了:
deadbroke 写了:ok,搞定,谢了!
怎么解决的,能否给发一下解决办法谢谢
我现在也是这个问题,搞不定
还望LS的赐教
头像
xwgel
帖子: 53
注册时间: 2008-01-19 5:51

怎么搞定的,说一下,我也有这样的问题。

#8

帖子 xwgel » 2008-05-25 23:13

说一下解决的办法,我也有同样的问题,而用sudo apt-get update 都搞不定。
头像
jaywee
帖子: 517
注册时间: 2006-06-18 21:49
联系:

#9

帖子 jaywee » 2008-05-26 13:30

sudo gedit /etc/apt/sources.list
这这里http://wiki.ubuntu.org.cn/Qref/Hardy的源列表里找一个适合自己的源列表,替换原来的列表,然后再次运行命令
sudo apt-get update
sudo apt-get dist-upgrade
搞定
Time waits for no man!
回复