apt-get update 问题

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

apt-get update 问题

#1

帖子 jnh326zdsd » 2016-05-25 16:35

wt@myubuntu14:~$ sudo apt-get update
0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com0% [Connecting to mirrors.163.com] [Connecting to hk.archive.ubuntu.com Err http://mirrors.163.com trusty InRelease

Err http://hk.archive.ubuntu.com trusty-updates InRelease

Err http://hk.archive.ubuntu.com trusty InRelease

Err http://hk.archive.ubuntu.com trusty-backports InRelease

Err http://security.ubuntu.com trusty-security InRelease

Err http://mirrors.163.com trusty Release.gpg
Could not resolve 'mirrors.163.com'
Err http://hk.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'hk.archive.ubuntu.com'
Err http://hk.archive.ubuntu.com trusty Release.gpg
Could not resolve 'hk.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://hk.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'hk.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/trusty/InRelease

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... /InRelease

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... /InRelease

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... /InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... /InRelease

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'mirrors.163.com'

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'hk.archive.ubuntu.com'

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'hk.archive.ubuntu.com'

W: Failed to fetch http://hk.archive.ubuntu.com/ubuntu/dis ... elease.gpg Could not resolve 'hk.archive.ubuntu.com'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists ... elease.gpg Could not resolve 'security.ubuntu.com'

W: Some index files failed to download. They have been ignored, or old ones used instead.
上边是错误 是网络问题还是
这是源
# deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted

#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.163.com/ubuntu/ trusty main restricted
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-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://hk.archive.ubuntu.com/ubuntu/ trusty multiverse
dns请问下哪里问题啊
wt@myubuntu14:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search com
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 192.168.1.1



----------------------------------------------------------------------
# deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted

#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.163.com/ubuntu/ trusty main restricted
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted
下边的测试源不要可以吗
我感觉是dns的问题
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#2

帖子 jnh326zdsd » 2016-05-25 16:55

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search com
nameserver 202.100.4.15
nameserver 202.100.0.68
nameserver 192.168.1.1
dns改为本地dns了 还是不行
cao627
帖子: 992
注册时间: 2007-12-05 10:57
系统: ubuntu14.04
来自: 金山

Re: apt-get update 问题

#3

帖子 cao627 » 2016-05-25 17:24

ping www.baiu.com
ping mirrors.163.com
ping hk.archive.ubuntu.com

能ping通就不是DNS问题
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#4

帖子 jnh326zdsd » 2016-05-25 17:53

cao627 写了:ping http://www.baiu.com
ping mirrors.163.com
ping hk.archive.ubuntu.com

能ping通就不是DNS问题


wt@myubuntu14:~$ ping www.baidu.com


wt@myubuntu14:~$ ping mirrors.163.com
ping: unknown host mirrors.163.com
wt@myubuntu14:~$ ping -c 3 www.baidu.com
这样就是连不上网了

要么连不上网 要么 dns有问题
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: apt-get update 问题

#5

帖子 poloshiao » 2016-05-25 18:01

这是源
# deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted
#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.163.com/ubuntu/ trusty main restricted
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-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://hk.archive.ubuntu.com/ubuntu/ trusty multiverse
1. 使用 文字編輯程式
1-1. 如果你是在大陸
把 hk.archive.ubuntu.com 用 mirrors.163.com 取代
1-2. 如果你是在香港
把 mirrors.163.com 用 hk.archive.ubuntu.com 取代
1-3. 儲存
1-4. 然後
sudo apt-get update
如果還有錯誤訊息 全部複製 貼上來
ping -c 3 www.baidu.com
2. 沒有反應 有可能 www.baidu.com 設定對 ping 不回應
ping mirrors.163.com
ping: unknown host mirrors.163.com
3. 試試
ping -c 3 123.58.173.185
把結果複製貼上來
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#6

帖子 jnh326zdsd » 2016-05-25 18:14

poloshiao 写了:
这是源
# deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted
#deb cdrom:[Ubuntu-Server 14.04.4 LTS _Trusty Tahr_ - Release i386 (20160217.1)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.163.com/ubuntu/ trusty main restricted
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty universe
deb http://hk.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ trusty-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://hk.archive.ubuntu.com/ubuntu/ trusty multiverse
1. 使用 文字編輯程式
1-1. 如果你是在大陸
把 hk.archive.ubuntu.com 用 mirrors.163.com 取代
1-2. 如果你是在香港
把 mirrors.163.com 用 hk.archive.ubuntu.com 取代
1-3. 儲存
1-4. 然後
sudo apt-get update
如果還有錯誤訊息 全部複製 貼上來
ping -c 3 www.baidu.com
2. 沒有反應 有可能 www.baidu.com 設定對 ping 不回應
ping mirrors.163.com
ping: unknown host mirrors.163.com
3. 試試
ping -c 3 123.58.173.185
把結果複製貼上來



wt@myubuntu14:~$ ping -c 3 123.58.173.185
PING 123.58.173.185 (123.58.173.185) 56(84) bytes of data.
From 192.168.1.133 icmp_seq=1 Destination Host Unreachable
From 192.168.1.133 icmp_seq=2 Destination Host Unreachable
From 192.168.1.133 icmp_seq=3 Destination Host Unreachable

--- 123.58.173.185 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2016ms
pipe 3
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: apt-get update 问题

#7

帖子 poloshiao » 2016-05-25 18:18

ping -c 3 123.58.173.185
PING 123.58.173.185 (123.58.173.185) 56(84) bytes of data.
From 192.168.1.133 icmp_seq=1 Destination Host Unreachable
From 192.168.1.133 icmp_seq=2 Destination Host Unreachable
From 192.168.1.133 icmp_seq=3 Destination Host Unreachable
1. 表示 你的電腦 無法連通 123.58.173.185 這是 mirrors.163.com 的網址
1-1. 意思是 你要先檢查你的網路

2. 如果不知從哪裡查起 把下面指令 複製 貼進終端機 執行
2-0. uname -a
2-1. sudo lshw -numeric -class network
2-2. sudo ifconfig -a
2-3. sudo route -nv
2-4. sudo dhclient -v
把結果直接 選取/複製/貼上來
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#8

帖子 jnh326zdsd » 2016-05-25 18:23

poloshiao 写了:
ping -c 3 123.58.173.185
PING 123.58.173.185 (123.58.173.185) 56(84) bytes of data.
From 192.168.1.133 icmp_seq=1 Destination Host Unreachable
From 192.168.1.133 icmp_seq=2 Destination Host Unreachable
From 192.168.1.133 icmp_seq=3 Destination Host Unreachable
1. 表示 你的電腦 無法連通 123.58.173.185 這是 mirrors.163.com 的網址
1-1. 意思是 你要先檢查你的網路

嗯 我查查
cao627
帖子: 992
注册时间: 2007-12-05 10:57
系统: ubuntu14.04
来自: 金山

Re: apt-get update 问题

#9

帖子 cao627 » 2016-05-25 18:46

<已解决>ip 设置问题 谢谢大家
看来你的问题还没解决啊,如上的结果显示你的那个虚拟机根本没通外网!
先去解决那个帖子吧!
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#10

帖子 jnh326zdsd » 2016-05-25 20:08

cao627 写了:<已解决>ip 设置问题 谢谢大家
看来你的问题还没解决啊,如上的结果显示你的那个虚拟机根本没通外网!
先去解决那个帖子吧!

我找到问题关键了 看了很多资料 介绍 是我 我添加了网卡二 但是网卡二显示不出来 只有一个网卡eth0连接外网 但是就是加不上eth1 所以在eth0实现连接内网情况下 网卡模式该来改来改去都是实现不了连接不了外网。因为没有另一个网卡来实现连接外网的eth1
http://blog.csdn.net/weilaiqing/article/details/8117882
http://www.cnblogs.com/cocowool/archive ... 45090.html
网卡添加不上啊 我试试改改配置文件吧
cao627
帖子: 992
注册时间: 2007-12-05 10:57
系统: ubuntu14.04
来自: 金山

Re: apt-get update 问题

#11

帖子 cao627 » 2016-05-25 21:28

网卡添加不上啊 我试试改改配置文件吧
<已解决>ip 设置问题 谢谢大家第一楼的图中显示你似乎手动修改过/etc/network/interfaces文件,在其中添加了eth0的相关配置,请问图中显示的eth0相关配置是否是你手动添上去的,还是文件中原本就有的?

在我的虚拟机debian8系统中,也是配置了两块网卡,但是/etc/network/interfaces文件中并没有两块网卡的相关信息,却照样能正常ping通宿主机和外网。
所以是否是你手动改了该配置文件,在其中只添加了eth0,而该配置文件的优先级又高,所以导致你的ifconfig命令只显示eth0 ?


如果是这样,你干脆删除添加的内容试试。
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#12

帖子 jnh326zdsd » 2016-05-25 22:05

cao627 写了:
网卡添加不上啊 我试试改改配置文件吧
<已解决>ip 设置问题 谢谢大家第一楼的图中显示你似乎手动修改过/etc/network/interfaces文件,在其中添加了eth0的相关配置,请问图中显示的eth0相关配置是否是你手动添上去的,还是文件中原本就有的?

在我的虚拟机debian8系统中,也是配置了两块网卡,但是/etc/network/interfaces文件中并没有两块网卡的相关信息,却照样能正常ping通宿主机和外网。
所以是否是你手动改了该配置文件,在其中只添加了eth0,而该配置文件的优先级又高,所以导致你的ifconfig命令只显示eth0 ?


如果是这样,你干脆删除添加的内容试试。
vbox安装好就只有一快网卡,就是host-0l。。在windows7里,的虚拟机网卡就自带了一个,我在设置网卡里添加第二块网卡,但是不起作用。进入ubuntu14.04 输入ifconfig下边只显示一个eth0和一个没啥作用的lo 这两个,想要的eth1没有出现
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: apt-get update 问题

#13

帖子 poloshiao » 2016-05-26 7:04

vbox安装好就只有一快网卡,就是host-0l。。在windows7里,的虚拟机网卡就自带了一个,我在设置网卡里添加第二块网卡,但是不起作用。进入ubuntu14.04 输入ifconfig下边只显示一个eth0和一个没啥作用的lo 这两个,想要的eth1没有出现
1. 每一個 Guest可以增設 最多達 8 個 虛擬網卡
前面四個 可以在桌面右上方 NM-Applet 增設
後面四個 可以在 /etc/network/interfaces 增設
參見
1-1. http://www.virtualbox.org/manual/ch03.h ... gs-network
Network settings
1-2. http://www.virtualbox.org/manual/ch06.html#nichardware
Virtual networking hardware

2. 在 Guest 的管理員 / 網路 / 介面卡1 / 介面卡2 / 介面卡3 / 介面卡4 / ...
啟用網路卡 打勾
打開進階 / 介面卡類型 / 選擇合適的網卡類型 (需要配合 Host 的作業系統)
參見
2-1. http://www.virtualbox.org/manual/ch06.html#nichardware
Virtual networking hardware
2-2. http://www.virtualbox.org/manual/ch02.html
Installation details
詳閱 不同 Host 作業系統 對於 虛擬網卡類型 有何要求或限制

3. 在 Guest 的管理員 / 網路 / 介面卡1 / 介面卡2 / 介面卡3 / 介面卡4 / ...
附加到
7 種網路模式 可以選擇
Not attached
Network Address Translation (NAT)
NAT Network
Bridged networking
Internal networking
Host-only networking
Generic networking
參見
http://www.virtualbox.org/manual/ch06.h ... rkingmodes

4. 本持越簡單越容易搞定的原則
意思是 如果一個虛擬網卡 選擇合適的硬件類型 選擇合適的網卡模式
就可以達到的功能 就不必設 2 個虛擬網卡 來達到同樣的功能

5. 詳讀以上 官方使用說明書 再動手
cao627
帖子: 992
注册时间: 2007-12-05 10:57
系统: ubuntu14.04
来自: 金山

Re: apt-get update 问题

#14

帖子 cao627 » 2016-05-26 12:07

vbox安装好就只有一快网卡,就是host-0l
不懂什么意思
如下图,我给我的虚拟debian添了3个网卡:
Selection_2016_05_26.png
那么在虚拟debian中就显示为3块网卡:
Selection_2016_05_26_02.png
其中网卡3我选择的是仅主机(host-only)适配器,所以从图中看出eth2分配的是192.168.56.x.

我不知道你的ubuntu为什么会读不到eth1 和eth2
你试试如下方法:
[  hello  ]_2016_05_26.png
删除所有以太网连接,然后重启NerworkManager

我不知到ubuntu14.04重启NerworkMangager的命令是什么了,你自己查一下。
jnh326zdsd
帖子: 85
注册时间: 2016-04-27 9:26
系统: ubuntu 16.04

Re: apt-get update 问题

#15

帖子 jnh326zdsd » 2016-05-28 18:28

cao627 写了:
vbox安装好就只有一快网卡,就是host-0l
不懂什么意思
如下图,我给我的虚拟debian添了3个网卡:
Selection_2016_05_26.png
那么在虚拟debian中就显示为3块网卡:
Selection_2016_05_26_02.png
其中网卡3我选择的是仅主机(host-only)适配器,所以从图中看出eth2分配的是192.168.56.x.

我不知道你的ubuntu为什么会读不到eth1 和eth2
你试试如下方法:
[ hello ]_2016_05_26.png
删除所有以太网连接,然后重启NerworkManager

我不知到ubuntu14.04重启NerworkMangager的命令是什么了,你自己查一下。
嗯嗯 谢谢
回复