MySQL 8 Community Edition 설치 중 오류

2024. 2. 6. 23:33· 🚨ERROR
반응형

아마존 리눅스 환경에서 MySQL 8 Community Edition 설치 중 다음과 같은 오류가 발생했다.


      
Error:
Problem: conflicting requests
- nothing provides libcrypto.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
- nothing provides libssl.so.10()(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
- nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by mysql-community-server-8.0.11-1.el7.x86_64
......
- nothing provides libssl.so.10(libssl.so.10)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64
- nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by mysql-community-server-8.0.36-1.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

 

원인 : Amazon Linux 2 에서 지원하지 않는 버전의 레포지토리를 설치했기 때문이다.

(이전 버전 레포지토리)

 

아마존 리눅스 2023을 쓸 때는 el9 버전 레포지토리를 사용해주어야 한다고 한다!

 

기존 코드 :


      
wget dev.mysql.com/get/mysql80-commuity-release-e17-5.noarch.rpm
rpm -ivh mysql-community-release-e17.5.noarch.rpm

 

el9 버전 코드 :


      
sudo dnf install https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
sudo dnf install mysql-community-server


이렇게 작성하시면 잘 설치 됩니다.

 

 

🚨 만약에 해당 에러가 뜬다면, 이 에러는 MySQL 패키지가 제공된 GPG 키와 일치하지 않아서 발생한다.

이 문제를 해결하려면 MySQL GPG 키를 가져와서 시스템에 추가해야 한다.


      
MySQL 8.0 Community Server 3.0 MB/s | 3.1 kB 00:00
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 (0x3A79BD29) is already installed
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: mysql-community-client-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-client-plugins-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-client-plugins-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-common-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-common-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-icu-data-files-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-icu-data-files-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-libs-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-libs-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
Public key for mysql-community-server-8.0.36-1.el9.x86_64.rpm is not installed. Failing package is: mysql-community-server-8.0.36-1.el9.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

 

-> GPG 키를 연결해주자.


      
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
sudo yum update

이후 다시 재설치해주면!


      
sudo dnf install mysql-community-server

 

이렇게 GPG KEY를 다시 받아오고 yum update 하는 과정을 해준 뒤 업데이트 하면 해결된다!

 

$ sudo systemctl status mysqld

로 잘 깔렸는지 체크해주자.

반응형
저작자표시 (새창열림)
'🚨ERROR' 카테고리의 다른 글
  • You could try using --skip-broken to work around the problem
  • ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  • [IntelliJ] Cannot resolve symbol 'Object' 에러 해결방법
dog-pawwer
dog-pawwer
성장 중 🌱🌱
지노개발일기성장 중 🌱🌱
dog-pawwer
지노개발일기
dog-pawwer
전체
오늘
어제
  • 분류 전체보기 (117)
    • FrontEnd (4)
      • Android (4)
    • BackEnd (22)
    • Cloud (15)
    • Trouble Shooting (2)
    • Computer Science (52)
      • CS 개인 공부 (19)
      • 알고리즘 (코딩테스트) (1)
      • 프로그래밍언어론 (15)
      • 분산시스템 (5)
      • 정보처리기사 (개인공부용) (3)
    • 강의 (18)
      • 자바-스프링부트-서버개발 (8)
      • UMC (Study) (9)
      • 스프링 부트와 JPA (1)
    • 🚨ERROR (4)

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • GitHub

공지사항

인기 글

태그

  • 9-0
  • 오어스
  • java
  • springboot
  • 카카오 로그인
  • oauth
  • 카카오
  • kakao
  • 스프링부트
  • RestAPI
  • 카카오 로그인 구현

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.2.1
dog-pawwer
MySQL 8 Community Edition 설치 중 오류
상단으로

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.