
이번에 AWS를 이용하며 프리티어인데도 결제가 진행되는 바람에 아주 화가나서 오라클 클라우드를 사용하려 마음먹었다.
원래 mysql을 사용하는 프로젝트였기에 mysql을 다운받기위해
sudo yum install mysql-server
을 진행했지만 위 이미지와 같은 에러가 출력됐다.
구글링과 GPT를 오가며 방법을 찾아가다가 한 stackoverflow 글을 발견했다.
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container
I'm currently running into an issue with my docker builds that rely on centos7 I reference the image as follows: FROM centos:7 Error: `Could not retrieve mirrorlist http://mirrorlist.centos.org/?re...
stackoverflow.com
여기 답변이 달린대로
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
를 사용하니 한번에 해결됐다. GPT에게 해석을 부탁하니

라고 설명했다. 아마 Oracle Cloud에서 지원하는 Centos 7이 구버전이라 생긴 문제인것같다.
'실력 향상 일지 > 기타' 카테고리의 다른 글
| runtimeerror: (preconditionnotmet) the third-party dynamic library (cublas64_118.dll;cublas64_11.dll) (0) | 2024.06.16 |
|---|---|
| 파이썬에서 파이썬 참조하는법 (0) | 2024.03.29 |
| VirtualBox 공유폴더 만들기 (0) | 2024.03.22 |
| "Path with "WEB-INF" or "META-INF": [WEB-INF/views/index.jsp]" [Spring 오류 해결] (0) | 2024.03.15 |