之前NAT装的完整版Debian11就出了问题,以为是镜像问题,重装LXC后问题还在,
- root@Debian:~# apt update
Err:1 http://security.debian.org bullseye-security InRelease
Cannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:87::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (146.75.94.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out
Err:2 http://ftp.us.debian.org/debian bullseye InRelease
Cannot initiate the connection to ftp-chi.osuosl.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Could not connect to ftp-chi.osuosl.org:80 (64.50.236.52), connection timed out Cannot initiate the connection to mirrors.wikimedia.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable) Could not connect to mirrors.wikimedia.org:80 (208.80.154.139), connection timed out Cannot initiate the connection to ftp-nyc.osuosl.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Could not connect to ftp-nyc.osuosl.org:80 (64.50.233.100), connection timed out Cannot initiate the connection to debian.gtisc.gatech.edu:80 (2610:148:1f10:3::89). - connect (101: Network is unreachable) Could not connect to debian.gtisc.gatech.edu:80 (128.61.240.89), connection timed out Cannot initiate the connection to ftp.us.debian.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable)
Err:3 http://ftp.us.debian.org/debian bullseye-updates InRelease
Cannot initiate the connection to ftp.us.debian.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable)
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye/InReleaseCannot initiate the connection to ftp-chi.osuosl.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Could not connect to ftp-chi.osuosl.org:80 (64.50.236.52), connection timed out Cannot initiate the connection to mirrors.wikimedia.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable) Could not connect to mirrors.wikimedia.org:80 (208.80.154.139), connection timed out Cannot initiate the connection to ftp-nyc.osuosl.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Could not connect to ftp-nyc.osuosl.org:80 (64.50.233.100), connection timed out Cannot initiate the connection to debian.gtisc.gatech.edu:80 (2610:148:1f10:3::89). - connect (101: Network is unreachable) Could not connect to debian.gtisc.gatech.edu:80 (128.61.240.89), connection timed out Cannot initiate the connection to ftp.us.debian.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable)
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye-updates/InReleaseCannot initiate the connection to ftp.us.debian.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to ftp.us.debian.org:80 (2620:0:861:2:208:80:154:139). - connect (101: Network is unreachable)
W: Failed to fetch http://security.debian.org/dists/bullseye-security/InReleaseCannot initiate the connection to debian.map.fastlydns.net:80 (2a04:4e42:87::644). - connect (101: Network is unreachable) Could not connect to debian.map.fastlydns.net:80 (146.75.94.132), connection timed out Cannot initiate the connection to security.debian.org:80 (2a04:4e42:400::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:600::644). - connect (101: Network is unreachable) Cannot initiate the connection to security.debian.org:80 (2a04:4e42:200::644). - connect (101: Network is unreachable) Could not connect to security.debian.org:80 (151.101.194.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
- root@Debian:~# ping google.com
PING google.com (142.250.68.78) 56(84) bytes of data.
64 bytes from lax31s11-in-f14.1e100.net (142.250.68.78): icmp_seq=1 ttl=60 time=0.294 ms
64 bytes from lax31s11-in-f14.1e100.net (142.250.68.78): icmp_seq=2 ttl=60 time=0.372 ms
/etc/network/interfaces
- auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.100/24
gateway 10.10.10.1
iface eth0 inet6 dhcp
- cat /etc/resolv.conf
nameserver 8.8.8.8
强制IPV4也不行
- root@Debian:~# apt-get -o Acquire::ForceIPv4=true update -y
Err:1 http://security.debian.org bullseye-security InRelease
Could not connect to debian.map.fastlydns.net:80 (151.101.26.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out
Err:2 http://ftp.us.debian.org/debian bullseye InRelease
Could not connect to mirrors.wikimedia.org:80 (208.80.154.139), connection timed out Could not connect to debian.gtisc.gatech.edu:80 (128.61.240.89), connection timed out Could not connect to ftp-nyc.osuosl.org:80 (64.50.233.100), connection timed out Could not connect to ftp-chi.osuosl.org:80 (64.50.236.52), connection timed out Unable to connect to ftp.us.debian.org:http:
Err:3 http://ftp.us.debian.org/debian bullseye-updates InRelease
Unable to connect to ftp.us.debian.org:http:
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye/InReleaseCould not connect to mirrors.wikimedia.org:80 (208.80.154.139), connection timed out Could not connect to debian.gtisc.gatech.edu:80 (128.61.240.89), connection timed out Could not connect to ftp-nyc.osuosl.org:80 (64.50.233.100), connection timed out Could not connect to ftp-chi.osuosl.org:80 (64.50.236.52), connection timed out Unable to connect to ftp.us.debian.org:http:
W: Failed to fetch http://ftp.us.debian.org/debian/dists/bullseye-updates/InReleaseUnable to connect to ftp.us.debian.org:http:
W: Failed to fetch http://security.debian.org/dists/bullseye-security/InReleaseCould not connect to debian.map.fastlydns.net:80 (151.101.26.132), connection timed out Could not connect to security.debian.org:80 (151.101.66.132), connection timed out Could not connect to security.debian.org:80 (151.101.2.132), connection timed out Could not connect to security.debian.org:80 (151.101.130.132), connection timed out Could not connect to security.debian.org:80 (151.101.194.132), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
ping 官方源ok
- root@Debian:~# ping ftp.us.debian.org
PING ftp.us.debian.org (208.80.154.139) 56(84) bytes of data.
64 bytes from mirror1001.wikimedia.org (208.80.154.139): icmp_seq=1 ttl=56 time=67.3 ms
后来吧,换成https的就好了。
- deb https://deb.debian.org/debian/ bullseye main
deb-src https://deb.debian.org/debian/ bullseye main
deb https://security.debian.org/debian-security bullseye-security main contrib
deb-src https://security.debian.org/debian-security bullseye-security main contrib
deb https://deb.debian.org/debian/ bullseye-updates main contrib
deb-src https://deb.debian.org/debian/ bullseye-updates main contrib
其实我看我所有的小鸡杜甫都是http的源 也都没问题,包括这个小机的母鸡。可能还是哪里有问题吧
热议
2楼 星期六 4天前
错误那么明显,打不开那个网站。。。。。。
换源
3楼 airinf 4天前
错误那么明显,打不开那个网站。。。。。。
换源
官方源呀,母鸡都可以正常使用的
4楼 LEB 4天前
5楼 一笑一莞尔 4天前
换源
1. 将源从http换成https
2. 换成deb.debian.org 官源
6楼 LittleBlueCat 4天前
airinf 发表于 2022-11-13 10:26
官方源呀,母鸡都可以正常使用的
配网没配号吧
ping 8.8.8.8看看 如果还是报错那基本上是没配好
看看转发什么的都设了没
7楼 zhen 4天前
楼上两个说的对。关ipv6,换源。还有种办法是apt -o Acquire挂代理
8楼 liming1991 4天前
有没有一种可能是你母鸡虚拟环境没配置对
9楼 张禹希 4天前
ipv6的锅
10楼 kra 4天前
源地址都显示为v6地址,部分是ftp源,极有可能404。建议尝试上面的方法。
13楼 LittleBlueCat 4天前
airinf 发表于 2022-11-13 11:26
网是好的呀
那就是没v6 把v6关了
14楼 airinf 4天前
那就是没v6 把v6关了
你看我强制ipv4也不行
15楼 LiuJia 4天前
楼主您好,除了用ping,建议用wget或curl测试一下具体的url,如:
curl http://ftp.us.debian.org/debian/dists/bullseye/InRelease
看看结果。
16楼 airinf 4天前
换源
1. 将源从http换成https
2. 换成deb.debian.org 官源
换了https解决了,但还是觉得哪里不对,小鸡的母鸡 http也没问题呀
17楼 airinf 4天前
楼主您好,除了用ping,建议用wget或curl测试一下具体的url,如:
curl http://ftp.us.debian.org/debian/ ...
总感觉是小鸡网有问题
18楼 zgs 4天前
是不是10系统,升级apt试试
19楼 airinf 4天前
是不是10系统,升级apt试试
解决了,目前看是http的问题,谢谢大佬们
20楼 airinf 4天前
是不是10系统,升级apt试试
我是11,现在可以apt 安装了,但是下载不了http的内容
22楼 airinf 昨天17:25
楼主您好,除了用ping,建议用wget或curl测试一下具体的url,如:
curl http://ftp.us.debian.org/debian/ ...
root@debian:~# curl http://ftp.us.debian.org/debian/dists/bullseye/InRelease
curl: (28) Failed to connect to ftp.us.debian.org port 80: Connection timed out
23楼 LiuJia 昨天21:54
root@debian:~# curl http://ftp.us.debian.org/debian/dists/bullseye/InRelease
curl: (28) Failed to...
连接tcp 80端口超时。是不是您的虚拟机环境有特别的安全访问限制?如不能访问互联网的tcp 80端口?
- nano /etc/dhcp/dhcpd.conf
subnet 10.10.10.0 netmask 255.255.255.0 {
option routers 10.10.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 8.8.8.8;
range 10.10.10.100 10.10.10.110;
}
25楼 LiuJia 10小时前
我昨天重装了一遍,一开始是好的 等我装完其他机器 设置完 interfaces和isc-dhcp-server 后就不行了
您可以在PVE的母机上对比测试,看访问外网的tcp 80是否正常。
26楼 airinf 5小时前
您可以在PVE的母机上对比测试,看访问外网的tcp 80是否正常。
母鸡是正常的,现在正常下载http内容都不行,https却可以 不知道哪里的毛病
27楼 LiuJia 5小时前
母鸡是正常的,现在正常下载http内容都不行,https却可以 不知道哪里的毛病 ...
对比一下先后操作的内容。如可以在母机上停止dhcpd后,再对比一下。
28楼 tomcb 4小时前
airinf 发表于 2022-11-16 17:25
root@debian:~# curl http://ftp.us.debian.org/debian/dists/bullseye/InRelease
curl: (28) Failed to...
为什么中间会夹着loc地址?
29楼 airinf 半小时前
对比一下先后操作的内容。如可以在母机上停止dhcpd后,再对比一下。
我停掉后还是一样的
30楼 airinf 半小时前
为什么中间会夹着loc地址?
应该是某个符号的问题,并没有loc的地址
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。
评论前必须登录!
立即登录 注册