我在 Proxmox 4.4-1 服务器上运行 Ubuntu 16.10 Server VM。VM 的网络通过我的桥接接口 (LAN)。我的 pfSense 路由器也位于同一物理主机上,使用与 LAN 相同的桥接接口。我的 ISP 调制解调器设置为桥接模式。
每当我运行“apt-get update”时,它都会挂在“0%[连接到ca.archive.ubuntu.com(91.189.88.161)] [连接到securit”
我已经在 LAN 和 WAN 接口上完成了数据包捕获,结果显示我只发送 SYN 数据包,而没有从上面列出的 ubuntu 服务器接收到任何数据包。
我已经正确设置了 pfSense 防火墙 NAT 和规则,我正在输入此信息的笔记本电脑使用与 VM 相同的路由器并位于相同的子网/VLAN 上。
我也与我的 ISP 进行了交流,他们向我保证他们的调制解调器测试没有错误。
如果您需要更多信息,请询问。我对这个问题感到厌烦,想知道根源是什么。
谢谢!
defau1t@defMINE:~$ sudo apt update
Err:1 http://ca.archive.ubuntu.com/ubuntu yakkety InRelease
Could not connect to ca.archive.ubuntu.com:80 (91.189.88.152), connection timed out [IP: 91.189.88.152 80]
Err:2 http://ca.archive.ubuntu.com/ubuntu yakkety-updates InRelease
Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err:3 http://ca.archive.ubuntu.com/ubuntu yakkety-backports InRelease
Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
Err:4 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Could not connect to security.ubuntu.com:80 (91.189.88.161), connection timed out [IP: 91.189.88.161 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease Could not connect to ca.archive.ubuntu.com:80 (91.189.88.152), connection timed out [IP: 91.189.88.152 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/yakkety-updates/InRelease Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/yakkety-backports/InRelease Unable to connect to ca.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/yakkety-security/InRelease Could not connect to security.ubuntu.com:80 (91.189.88.161), connection timed out [IP: 91.189.88.161 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
defau1t@defMINE:~$
输出如下
defau1t@defMINE:~$ ./scripttest.sh | tee scripttest.out
wget1
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:13:38-- http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Resolving ca.archive.ubuntu.com (ca.archive.ubuntu.com)... 91.189.88.152, 91.189.88.149, 91.189.88.161, ...
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:22:23-- (try: 2) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:31:08-- (try: 3) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:39:56-- (try: 4) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:48:43-- (try: 5) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 16:57:32-- (try: 6) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:06:22-- (try: 7) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:15:11-- (try: 8) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:24:03-- (try: 9) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:32:54-- (try:10) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:41:47-- (try:11) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:50:40-- (try:12) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 17:59:32-- (try:13) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:08:25-- (try:14) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:17:17-- (try:15) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:26:10-- (try:16) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:35:02-- (try:17) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:43:55-- (try:18) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 18:52:47-- (try:19) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:01:40-- (try:20) http://ca.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.152|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.149|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.161|:80... failed: Connection timed out.
Connecting to ca.archive.ubuntu.com (ca.archive.ubuntu.com)|91.189.88.162|:80... failed: Connection timed out.
Giving up.
wget2
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:10:22-- http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Resolving us.archive.ubuntu.com (us.archive.ubuntu.com)... 91.189.91.26, 91.189.91.23
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:14:45-- (try: 2) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:19:09-- (try: 3) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:23:34-- (try: 4) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:27:59-- (try: 5) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:32:26-- (try: 6) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:36:53-- (try: 7) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:41:21-- (try: 8) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:45:50-- (try: 9) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:50:19-- (try:10) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:54:51-- (try:11) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 19:59:21-- (try:12) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:03:51-- (try:13) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:08:22-- (try:14) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:12:52-- (try:15) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:17:22-- (try:16) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:21:53-- (try:17) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:26:23-- (try:18) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:30:53-- (try:19) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Retrying.
Spider mode enabled. Check if remote file exists.
--2017-03-26 20:35:24-- (try:20) http://us.archive.ubuntu.com/ubuntu/dists/yakkety/InRelease
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.26|:80... failed: Connection timed out.
Connecting to us.archive.ubuntu.com (us.archive.ubuntu.com)|91.189.91.23|:80... failed: Connection timed out.
Giving up.
Ping test
PING 91.189.88.152 (91.189.88.152) 56(84) bytes of data.
64 bytes from 91.189.88.152: icmp_seq=1 ttl=53 time=149 ms
64 bytes from 91.189.88.152: icmp_seq=2 ttl=53 time=149 ms
64 bytes from 91.189.88.152: icmp_seq=3 ttl=53 time=150 ms
64 bytes from 91.189.88.152: icmp_seq=4 ttl=53 time=149 ms
64 bytes from 91.189.88.152: icmp_seq=5 ttl=53 time=151 ms
--- 91.189.88.152 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 149.161/150.046/151.045/0.772 ms
PING 91.189.91.23 (91.189.91.23) 56(84) bytes of data.
64 bytes from 91.189.91.23: icmp_seq=1 ttl=51 time=99.6 ms
64 bytes from 91.189.91.23: icmp_seq=2 ttl=51 time=85.5 ms
64 bytes from 91.189.91.23: icmp_seq=3 ttl=51 time=84.5 ms
64 bytes from 91.189.91.23: icmp_seq=4 ttl=51 time=84.6 ms
64 bytes from 91.189.91.23: icmp_seq=5 ttl=51 time=84.8 ms
--- 91.189.91.23 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 84.598/87.861/99.698/5.939 ms
dnstest
us.archive.ubuntu.com has address 91.189.91.23
us.archive.ubuntu.com has address 91.189.91.26
us.archive.ubuntu.com has IPv6 address 2001:67c:1562::19
us.archive.ubuntu.com has IPv6 address 2001:67c:1562::16
ca.archive.ubuntu.com has address 91.189.88.161
ca.archive.ubuntu.com has address 91.189.88.152
ca.archive.ubuntu.com has address 91.189.88.162
ca.archive.ubuntu.com has address 91.189.88.149
ca.archive.ubuntu.com has IPv6 address 2001:67c:1360:8001::17
ca.archive.ubuntu.com has IPv6 address 2001:67c:1360:8001::21
ca.archive.ubuntu.com has IPv6 address 2001:67c:1560:8001::14
ca.archive.ubuntu.com has IPv6 address 2001:67c:1560:8001::11
答案1
vmbr0 具有以下属性:
Ip Address: 10.2.0.240
Subnet Mask: 255.255.255.0
Gateway 10.2.0.1
autostart: Yes
Bridge Ports: ens33
vmbr1 具有以下属性:
autostart: yes
Bridge Ports: ens37
vmbr2 具有以下属性:
autostart: yes
Bridge Ports: ens38
由于 kvm 和 vmware 存在问题,我无法成功创建虚拟机,但我能够创建并实现 lxc 容器。激活后:1. 从 DHCP 收到 IP 地址。2. 能够成功运行命令:apt-get update
总体而言,问题可能出在防火墙规则上。不过,为了排除这个嫌疑,我建议排除虚拟机的 IP 地址,看看是否有帮助。
答案2
禁用 IPv6:
编辑您的/etc/sysctl.conf
文件。
附加此内容:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
运行此命令使其立即生效:
$ sudo sysctl -p
这取自这个答案
当 ISP 配置强制使用 IPv6 连接时就会出现问题。
答案3
这看起来像是某种与网络相关的配置问题。
首先,让我们回顾一下 的结果ifconfig
。这些结果中要注意的是 inet 和 netmask 条目。
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.2.0.220 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::226:2dff:fe46:c03b prefixlen 64 scopeid 0x20<link>
ether 00:26:2d:46:c0:3b txqueuelen 1000 (Ethernet)
RX packets 282331 bytes 209953345 (209.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 168130 bytes 106104466 (106.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
尽管有上述信息,但我的接口文件似乎存在错误。尽管我可以从网络内的机器 ping 该地址,甚至可以对其进行 ssh 访问,但网络掩码对于我的子网来说是错误的。
现在,让我们检查一下我的/etc/network/interfaces
文件:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.2.0.220
mask 255.255.255.0
gateway 10.2.0.1
dns-nameservers 8.8.8.8
看来我把 netmask 的条目拼错了,写成了 mask。我进行了更改,然后选择重新启动我的机器:
sudo shutdown -r 0
当它重新启动时,我运行:ifconfig
它提供以下内容:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.2.0.220 netmask 255.255.255.0 broadcast 10.2.0.255
inet6 fe80::226:2dff:fe46:c03b prefixlen 64 scopeid 0x20<link>
ether 00:26:2d:46:c0:3b txqueuelen 1000 (Ethernet)
RX packets 282331 bytes 209953345 (209.9 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 168130 bytes 106104466 (106.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
如果您发现了类似的事情,那么此时您应该完成:
sudo apt-get update
如果仍有问题,请从主机端检查虚拟机配置设置。验证网络是否已连接到网络,并且不是仅主机网络。
或者它可能与所选的镜子有关,安装时,它可能处于关闭状态,或者存在其他故障。
可以查看生成新的 sources.list: Ubuntu 源列表生成器
选择要包含的存储库和 PPA 后,单击页面底部的“生成列表”按钮。
它会为每个部分生成代码来下载并替换您当前的文件,因此在继续之前请进行备份。
curl https://repogen.simplylinux.ch/txt/yakkety/sources_SomeLongNumber.txt | sudo tee /etc/apt/sources.list
我希望这有帮助。