0
دستور yum update و dnf update در CentOS
سلام
هنگام اجرای دستور yum update در CentOS8 با متن زیر رو به رو می شوم :
[root@localhost ~]# yum update
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:04
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
[root@localhost ~]#
4 پاسخ
0
سلام ، مشکلتون از DNS هست. تو فایل etc/resolv.conf/ تایپ کنید nameserver 9.9.9.9 و فایل رو ذخیره کنید. مشکل حل میشه.
0
0
در ضمن ، CentOS 8 Stream حدود ۷۰ روز پیش ساختش متوقف شده. پیشنهاد می کنم CentOS Stream 9 رو نصب کنید : https://www.centos.org/download
0
بیشتر طول کشید ولی باز ارور داد:
[root@localhost ~]# yum update
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:38
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
[root@localhost ~]#