سلام.
ببخشید که پست قدیمی بالا میارم. ولی مشکل من دقیقا همین هست
من فایل ریپازیتوری ubuntu سرور خودم رو که در ایران هست به زیر تغییر دادم
deb https://repo.ito.gov.ir/ubuntu jammy main restricted
deb https://repo.ito.gov.ir/ubuntu jammy-updates main restricted
deb https://repo.ito.gov.ir/ubuntu jammy universe
deb https://repo.ito.gov.ir/ubuntu jammy-updates universe
deb https://repo.ito.gov.ir/ubuntu jammy multiverse
deb https://repo.ito.gov.ir/ubuntu jammy-updates multiverse
deb https://repo.ito.gov.ir/ubuntu jammy-backports main restricted universe multiverse
deb https://repo.ito.gov.ir/ubuntu jammy-security main restricted
deb https://repo.ito.gov.ir/ubuntu jammy-security universe
deb https://repo.ito.gov.ir/ubuntu jammy-security multiverse
اما دستور apt update با مشکل زیر روبرو هست
Ign:1 https://repo.ito.gov.ir/ubuntu jammy InRelease
Ign:2 https://repo.ito.gov.ir/ubuntu jammy-updates InRelease
Ign:3 https://repo.ito.gov.ir/ubuntu jammy-backports InRelease
Ign:4 https://repo.ito.gov.ir/ubuntu jammy-security InRelease
Ign:1 https://repo.ito.gov.ir/ubuntu jammy InRelease
Ign:2 https://repo.ito.gov.ir/ubuntu jammy-updates InRelease
Ign:3 https://repo.ito.gov.ir/ubuntu jammy-backports InRelease
Ign:4 https://repo.ito.gov.ir/ubuntu jammy-security InRelease
Ign:1 https://repo.ito.gov.ir/ubuntu jammy InRelease
Ign:2 https://repo.ito.gov.ir/ubuntu jammy-updates InRelease
Ign:3 https://repo.ito.gov.ir/ubuntu jammy-backports InRelease
Ign:4 https://repo.ito.gov.ir/ubuntu jammy-security InRelease
Err:1 https://repo.ito.gov.ir/ubuntu jammy InRelease
Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
Err:2 https://repo.ito.gov.ir/ubuntu jammy-updates InRelease
Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
Err:3 https://repo.ito.gov.ir/ubuntu jammy-backports InRelease
Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
Err:4 https://repo.ito.gov.ir/ubuntu jammy-security InRelease
Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://repo.ito.gov.ir/ubuntu/dists/jammy/InRelease Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
W: Failed to fetch https://repo.ito.gov.ir/ubuntu/dists/jammy-updates/InRelease Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
W: Failed to fetch https://repo.ito.gov.ir/ubuntu/dists/jammy-backports/InRelease Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
W: Failed to fetch https://repo.ito.gov.ir/ubuntu/dists/jammy-security/InRelease Could not handshake: Error in the pull function. [IP: 2.187.253.113 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
من از نیم سرور های زیر استفاده می کنم
name server 4.2.2.4
,
8.8.8.8
استفاده می کنم
پینگ گوگل موفقیت آمیزه
ping google.com
PING google.com (216.239.38.120) 56(84) bytes of data.
64 bytes from any-in-2678.1e100.net (216.239.38.120): icmp_seq=1 ttl=53 time=28.9 ms
nslookup ریپازیتوری هم اینه
nslookup repo.ito.gov.ir
Server: 4.2.2.4
Address: 4.2.2.4#53
Non-authoritative answer:
Name: repo.ito.gov.ir
Address: 2.187.253.113
اما پینگ این ریپازیتوری
برای ادرس اصلی
ping -c4 ito.gov.ir
PING ito.gov.ir (185.143.234.120) 56(84) bytes of data.
64 bytes from 185.143.234.120 (185.143.234.120): icmp_seq=1 ttl=57 time=2.23 ms
64 bytes from 185.143.234.120 (185.143.234.120): icmp_seq=2 ttl=57 time=2.29 ms
64 bytes from 185.143.234.120 (185.143.234.120): icmp_seq=3 ttl=57 time=2.89 ms
64 bytes from 185.143.234.120 (185.143.234.120): icmp_seq=4 ttl=57 time=2.89 ms
اما برای ساب دومین repo
PING repo.ito.gov.ir (2.187.253.113) 56(84) bytes of data.
--- repo.ito.gov.ir ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3073ms
مشکل چیه چیکار باید کرد