얕고넓은지식/linux

linux ceontos7 mariadb 설치중 오류 뿜뿜~

쪽마 2023. 3. 28. 14:55

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 /]#

 

 

반응형