CentOS7에 postgresql11을 설치할 때 비정상적인 저장소 오류가 발생함

CentOS7에 postgresql11을 설치할 때 비정상적인 저장소 오류가 발생함

CentOS7에 postgresql11을 설치하려고 했습니다. 공식 사이트에서 설치 지침을 찾았습니다. https://www.postgresql.org/download/linux/redhat/

그런 다음 단계에 따라 다음 매개변수를 선택합니다.

1.version: 11
2.platform: RedHat Enterprise,CentOS, Scientific or Oracle version 7
3.architecture: x86_64

저장소 RPM 설치 명령을 얻었습니다.

yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

서버에서 성공적으로 실행했습니다. 그런 다음 클라이언트 패키지를 설치하기 위한 명령을 실행하려고 합니다.

yum install postgresql11

이 명령을 실행할 때 다음 오류가 발생했습니다.

File contains parsing errors: file:///etc/yum.repos.d/pgdg-redhat-all.repo
    [line 196]: [pgdg96-updates-debuginfo]k
    [line 203]: [pgdg95-updates-debuginfo]k

이 패키지 사용 명령을 지우려고 할 때 동일한 오류가 발생했습니다.

yum erase pgdg-redhat-repo

/etc/yum.repos.d 사용 명령에서 콘텐츠를 찾을 수 없습니다.

cd /etc/yum.repos.d/ && grep pgdg-redhat-all.repo ./*

이미 Google에서 이 오류를 검색했는데 아무도 이 오류를 발견하지 못한 것 같습니다. 이 문제를 해결하는 방법을 아는 사람이 있나요?

답변1

해당 rpm을 준비할 때 패키징 오류를 범한 것 같습니다. 에서는 /etc/yum.repos.d/pgdg-redhat-all.repo섹션을 찾을 수 있습니다.

[pgdg10-updates-debuginfo]
name=PostgreSQL 10 for RHEL/CentOS $releasever - $basearch - Debuginfo
baseurl=https://download.postgresql.org/pub/repos/yum/debug/10/redhat/rhel-$releasever-$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

[pgdg96-updates-debuginfo]k
name=PostgreSQL 9.6 for RHEL/CentOS $releasever - $basearch - Debuginfo
baseurl=https://download.postgresql.org/pub/repos/yum/debug/9.6/redhat/rhel-$releasever-$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

[pgdg95-updates-debuginfo]k
name=PostgreSQL 9.5 for RHEL/CentOS $releasever - $basearch - Debuginfo
baseurl=https://download.postgresql.org/pub/repos/yum/debug/9.5/redhat/rhel-$releasever-$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

# Debuginfo/debugsource packages for testing repos
# Available for 9.6 and above.

k뒤에 있는 s를 제거하면 ]괜찮을 것입니다.이 버그는 이미 보고되었습니다.

관련 정보