# yum update
Loaded plugins: aliases, changelog, fastestmirror, kabi, ovl, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
centos 6.9 설치 후 yum 으로 패키지 설치 하려 했는데 위와 같이 에러 발생...
repo 경로가 중간에 변경 되어 기존 정보로 yum 이 접속이 안된다.
# sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
# sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=https:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
url 정보를 수정 해주면 정상적으로 yum 이 작동 된다.
# yum clean all
Loaded plugins: aliases, changelog, fastestmirror, kabi, ovl, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Cleaning repos: base extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
0 delta-package files removed, by presto
[root@localhost tco]# yum update
Loaded plugins: aliases, changelog, fastestmirror, kabi, ovl, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Setting up Update Process
Determining fastest mirrors
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:03
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 12 MB 00:07
Resolving Dependencies
'Linux' 카테고리의 다른 글
RS2BL080 Raid card firmware upgrade (0) | 2021.07.16 |
---|---|
yum install virtualbox for centos8 (0) | 2021.07.12 |
Permission denied (publickey,gssapi-keyex,gssapi-with-mic). for centos6.9 (0) | 2021.06.23 |
MegaRAID Storage Manager 9341-8i raid 카드 (0) | 2021.06.10 |
Snipe IT backup and restore (0) | 2021.06.04 |