일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- centos
- proxmox
- 리눅스
- mysql
- Rocky
- 가상서버호스팅
- 자바스크립트
- ConoHa
- 스톤에이지
- 램가스초월
- jQuery
- KB증권
- OpenWrt
- 티스토리
- 시놀로지
- PHP-FPM
- 보르비스초월
- 알뜰폰
- SKT
- 알리익스프레스
- Apache
- 킹북이초월
- 라즈베리파이2
- iptime
- 소비전력
- 복현오거리
- php
- 윈도우10
- KB국민카드
- 아파치
- Today
- Total
맛집 여행 캠핑 일상 생활
[CentOS] yum update 에러 본문
728x90
CentOS 업데이트 지원이 중지된다더니 사실인가보네요~
[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=armhfp&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/armhfp
yum update 가 안되는군요~
검색해서 찾은 해결 방법입니다.
mkdir /etc/yum.repos.d/repo-bak
cp -r /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo-bak/
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-*
sed -i 's/mirror\./vault\./g' /etc/yum.repos.d/CentOS-*
다른 서버도 확인해 봐야겠습니다.
728x90
반응형
'LINUX' 카테고리의 다른 글
[CentOS] 7.x pstree 명령어 psmisc 설치 (0) | 2024.08.14 |
---|---|
[CentOS] 라즈베리파이2 arm32 epel-release 설치 방법 (0) | 2024.08.12 |
[라즈베리파이] CentOS microSD 공간 확장 (0) | 2024.08.10 |
[Proxmox] vnStat PHP Frontend 설치하기 (0) | 2024.07.25 |
[Apache] mod_qos 설정시 error_log (0) | 2024.07.24 |
Trackback : | Comments :