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を削除するだけです]このバグが報告されました。

おすすめ記事