RHEL8 시스템에 git을 설치하려고 할 때 오류가 발생함

RHEL8 시스템에 git을 설치하려고 할 때 오류가 발생함

RHEL 8을 사용하여 AWS에서 새로운 EC2를 생성했습니다. 나는 이것을하려고 노력한다sudo yum install git

하지만 다음 오류가 발생합니다.

Updating Subscription Management repositories.
Last metadata expiration check: 0:03:39 ago on Sat 29 May 2021 08:22:36 PM UTC.
Error:
 Problem: package perl-4:5.16.3-299.el7_9.x86_64 requires libnsl.so.1()(64bit), but none of the providers can be installed
  - cannot install both glibc-2.17-322.el7_9.x86_64 and glibc-2.28-151.el8.x86_64
  - package git-1.8.3.1-23.el7_8.x86_64 requires /usr/bin/perl, but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(strict), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(vars), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(lib), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(File::Basename), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(warnings), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(File::stat), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(File::Copy), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl(File::Find), but none of the providers can be installed
  - package git-1.8.3.1-23.el7_8.x86_64 requires perl >= 5.008, but none of the providers can be installed
  - package NetworkManager-cloud-setup-1:1.30.0-7.el8.x86_64 requires libc.so.6(GLIBC_2.25)(64bit), but none of the providers can be installed
  - conflicting requests
  - problem with installed package NetworkManager-cloud-setup-1:1.30.0-7.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

이 오류를 어떻게 해결할 수 있는지 아시는 분 계신가요?

수정을 시도했지만 sudo yum install git --allowerasing다음과 같은 오류가 발생했습니다.

Updating Subscription Management repositories.
Last metadata expiration check: 0:06:53 ago on Sat 29 May 2021 08:22:36 PM UTC.
Error:
 Problem: The operation would result in removing the following protected packages: systemd-udev
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[ec2-user@puppet GPGKEYS]$ sudo yum install git --allowerasing --nobest
Updating Subscription Management repositories.
Last metadata expiration check: 0:07:11 ago on Sat 29 May 2021 08:22:36 PM UTC.
Error:
 Problem: The operation would result in removing the following protected packages: systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

답변1

언제든지 Fedora epel 저장소를 설치할 수 있습니다.

RHEL 자체에서 벗어날 수 있는지는 확실하지 않지만 그냥 버리면 됩니다.

sudo yum epel-release 설치

관련 정보