728x90
centos 8 Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
[에러]
$ yum install -y systemd sudo openssh-server
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 41 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
sed -i -e "s/mirrorlist=/#mirrorlist=/g" /etc/yum.repos.d/CentOS-*
sed -i -e "s/#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-*
cat /etc/yum.repos.d/CentOS-Linux-BaseOS.repo
# CentOS-Linux-BaseOS.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[baseos]
name=CentOS Linux $releasever - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
yum clean all
$ yum clean all
Failed to set locale, defaulting to C.UTF-8
18 files removed
telnet 패키지 설치
yum install telnet
$ yum install telnet
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:02:45 ago on Tue Jan 24 23:57:03 2023.
Dependencies resolved.
====================================================================================================================================
Package Architecture Version Repository Size
====================================================================================================================================
Installing:
telnet x86_64 1:0.17-76.el8 appstream 72 k
Transaction Summary
====================================================================================================================================
Install 1 Package
Total download size: 72 k
Installed size: 119 k
Is this ok [y/N]: y
Downloading Packages:
telnet-0.17-76.el8.x86_64.rpm 58 kB/s | 72 kB 00:01
------------------------------------------------------------------------------------------------------------------------------------
Total 58 kB/s | 72 kB 00:01
warning: /var/cache/dnf/appstream-d7987f026ef99c82/packages/telnet-0.17-76.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS Linux 8 - AppStream 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : telnet-1:0.17-76.el8.x86_64 1/1
Running scriptlet: telnet-1:0.17-76.el8.x86_64 1/1
Verifying : telnet-1:0.17-76.el8.x86_64 1/1
Installed:
telnet-1:0.17-76.el8.x86_64
Complete!
728x90
'리눅스' 카테고리의 다른 글
[리눅스] centos에 hashicorp vault를 설치하는 방법(installing vault) (0) | 2023.01.25 |
---|---|
[draft] SSH 인증을 위한 SSH 인증서를 구성하고 설정하는 방법 (0) | 2023.01.25 |
[draft] 우분투에 HashiCorp Vault를 설치하는 방법 (0) | 2023.01.18 |
CentOS 7 컨테이너 내에서 systemctl을 사용하는 방법(centos init) (0) | 2023.01.18 |
BIND DNS 서버에서 뷰(View)와 존 전송(Zone Transfer) 테스트하는 방법 (0) | 2023.01.16 |