yum update 및 upgrade하기
yum update
yum upgrade
MariaDB 설치 (최신버전으로 설치된다)
yum -y install mariadb-server
http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-client-10.1.48-1.el7.centos.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found
왜 없지??
[root@localhost /]# yum clean all
일단 좀 청소좀해보고...
[root@localhost /]# yum -y install mariadb-server
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
epel/x86_64/metalink | 6.3 kB 00:00
* base: mirror.kakao.com
* epel: ftp.riken.jp
* extras: mirror.kakao.com
* remi-php74: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: mirror.kakao.com
base | 3.6 kB 00:00
epel | 4.7 kB 00:00
extras | 2.9 kB 00:00
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP E rror 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.cent os.org/.
One of the configured repositories failed (MariaDB),
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=mariadb ...
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 mariadb
or
subscription-manager repos --disable=mariadb
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=mariadb.skip_if_unavailable=true
failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP E rror 404 - Not Found
햇는데도 안되네?
해결책 아래 실행
yum clean all
yum makecache
yum install vim
아래 파일을 찾아서 수정
/etc/yum.repos.d/mariadb.repo 혹은 /etc/yum.repos.d/mariadb10.repo
[mariadb]
name = MariaDB
#baseurl = https://yum.mariadb.org/10.3/centos7-amd64
baseurl = https://archive.mariadb.org/mariadb-10.3/yum/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
그리고 다시 설치
[root@localhost /]# sudo yum -y install mysql-server
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
Verifying : MariaDB-client-10.3.38-1.el7.centos.x86_64
Verifying : MariaDB-server-10.3.38-1.el7.centos.x86_64
Installed:
MariaDB-server.x86_64 0:10.3.38-1.el7.centos
Dependency Installed:
MariaDB-client.x86_64 0:10.3.38-1.el7.centos
Complete!
[root@localhost /]#
반응형
'얕고넓은지식 > linux' 카테고리의 다른 글
linux 리눅스 CentOS 7 방화벽 (firewall) 설정 확인 및 재설정 상태 (0) | 2023.04.23 |
---|---|
우분투 ubuntu 리눅스 crontab 실행 확인 로그확인 (0) | 2023.04.08 |
centos7 초기화 (0) | 2023.04.05 |
실패 -> 그냥 완전재설치) warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-server-5.7.41-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY (1) | 2023.03.31 |
우분투 서버가 자꾸 멈추네? (0) | 2023.03.28 |
linux ceontos7 mariadb 삭제 (0) | 2023.03.28 |
linux mysql db 백업 (0) | 2023.03.28 |
mriadb 손상 복구 MariaDB 복구모드 140115712129280 [ERROR] Aborting (0) | 2023.03.27 |
리눅스 mariadb mysql 손상 복원 (0) | 2023.03.27 |
리눅스 db 위치 (0) | 2023.03.27 |