انجمنهای فارسی اوبونتو
کمک و پشتیبانی => سایر توزیعهای گنو/لینوکس => ردهت/فدورا => نویسنده: gem در 24 اردیبهشت 1402، 11:09 قظ
-
سلام، دیروز فدورا ۳۸ رو نصب کردم همه چی اوکی بود. ولی آپدیت نمیشه نه از طریق ترمینال و نه از طریق محیط گرافیکی
اولین بارمه که فدورا نصب کردم تجربه کار با فدورا رو ندارم
[predator@fedora ~]$ sudo dnf update
Fedora 38 - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'fedora':
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-38&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
[predator@fedora ~]$
ممنون از راهنمایی تون
-
میروراتو عوض کن.
-
اینترنت رو چک کنید وصله یا نه
یه یه ربع نیم ساعت دیگه دوباره امتحان کنید و اگر نشد آینه تغییر بدید. فدورا آینه هاش در ایران اختلال داره و اگر بازم نشد آینه عوض کنید.
ولی من پیشنهادم اینه اگر میخواید فقط آینه ها شناسایی بشن dnf refresh بزنید و اگر میخواید کل بسته هارو بروز کنید از dnf upgrade استفاده کنید گرچه دومی کار اولی رو هم انجام میده.
-
اون موقعی که من فدورا داشتم dnf و yum فیلتر شدن الان رو نمیدونم.
-
اون موقعی که من فدورا داشتم dnf و yum فیلتر شدن الان رو نمیدونم.
اینها به اینترنت ربطی ندارن که فیلتر بشن. مدیر بستهان. مثل این میمونه که بگن فایرفاکس فیلتر شده.
-
اون موقعی که من فدورا داشتم dnf و yum فیلتر شدن الان رو نمیدونم.
اینها به اینترنت ربطی ندارن که فیلتر بشن. مدیر بستهان. مثل این میمونه که بگن فایرفاکس فیلتر شده.
آها، نمیدونستم. ممنون که گفتید
-
مشکل از dns هست. میتونید بقیه سایتها رو ببینید؟
یه جایی رو ping کنید و ببینید جواب میده یا نه
ping -c 5 google.com
ping -c 5 1.1.1.1
محتوای فایل resolv.conf رو هم بذارید
cat /etc/resolv.conf
-
مشکل از dns هست. میتونید بقیه سایتها رو ببینید؟
یه جایی رو ping کنید و ببینید جواب میده یا نه
ping -c 5 google.com
ping -c 5 1.1.1.1
محتوای فایل resolv.conf رو هم بذارید
cat /etc/resolv.conf
ممنون، بله درست مشکل از دی ان اس
PING soft98.ir (79.127.127.35) 56(84) bytes of data.
64 bytes from 79.127.127.35 (79.127.127.35): icmp_seq=1 ttl=54 time=29.6 ms
64 bytes from 79.127.127.35 (79.127.127.35): icmp_seq=2 ttl=54 time=20.4 ms
64 bytes from 79.127.127.35 (79.127.127.35): icmp_seq=3 ttl=54 time=38.1 ms
64 bytes from 79.127.127.35 (79.127.127.35): icmp_seq=4 ttl=54 time=36.3 ms
64 bytes from 79.127.127.35 (79.127.127.35): icmp_seq=5 ttl=54 time=36.4 ms
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=52 time=69.9 ms
64 bytes from any-in-2678.1e100.net (216.239.38.120): icmp_seq=2 ttl=52 time=82.6 ms
64 bytes from any-in-2678.1e100.net (216.239.38.120): icmp_seq=3 ttl=52 time=251 ms
64 bytes from any-in-2678.1e100.net (216.239.38.120): icmp_seq=4 ttl=52 time=270 ms
64 bytes from any-in-2678.1e100.net (216.239.38.120): icmp_seq=5 ttl=52 time=99.9 ms
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=48 time=137 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=48 time=108 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=48 time=155 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=48 time=174 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=48 time=202 ms
$ cat /etc/resolv.conf
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad
search .
nameserver 8.8.8.8
nameserver 8.8.4.4
قبلا فایل رو ویرایش کردم دی ان اس گوگل رو بهش اضافه کردم ولی نتیجه نداد
-
مقدار fastestmirrors رو در dnf.conf برابر با true کن و بعد dnf update رو بزن، ممکنه کمی طول بکشه تا mirror ها بررسی بشن.
sudo nano /etc/dnf/dnf.conf
fastestmirror=True
-
مقدار fastestmirrors رو در dnf.conf برابر با true کن و بعد dnf update رو بزن، ممکنه کمی طول بکشه تا mirror ها بررسی بشن.
sudo nano /etc/dnf/dnf.conf
fastestmirror=True
تشکر، تو محتویات فایل dnf.conf این گزینه (fastestmirror) نبود که مقدار شو تغییر بدم
# see `man dnf.conf` for defaults and possible options
[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
خب خودم اضافه کردم ببینم نتیجه چی میشه
# see `man dnf.conf` for defaults and possible options
[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
fastestmirror=True
اوکی ممنون حل شد
Install 13 Packages
Upgrade 388 Packages
Total download size: 1.1 G
Is this ok [y/N]: y
Downloading Packages:
determining the fastest mirror (31 hosts).. done.=== ] --- B/s | 0 B --:-- ETA
(1/401): liboauth-1.0.3-20.fc38.x86_64.rpm 62 kB/s | 27 kB 00:00
(2/401): libdmapsharing4-3.9.11-1.fc38.x86_64.rpm 199 kB/s | 140 kB 00:00
(3/401): grilo-0.3.15-8.fc38.x86_64.rpm 318 kB/s | 241 kB 00:00
(4/401): kernel-6.2.15-300.fc38.x86_64.rpm 92 kB/s | 129 kB 00:01
(5/401): brcmfmac-firmware-20230404-149.fc38.noarch.rpm 616 kB/s | 9.6 MB 00:15
(6/401): atheros-firmware-20230404-149.fc38.noarch.rpm 823 kB/s | 21 MB 00:26