どうもてぃ。
久々に起動したGCE vmインスタンスでエラーが出たので改修
起こった現象
$ yum upgrade 読み込んだプラグイン:fastestmirror 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
なんか196行目・203行目でエラー出てるっぽい。
ファイルの確認
/etc/yum.repos.d/pgdg-redhat-all.repo
を確認してみる。
$ sudo vim /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
パッケージ名?の末尾に謎のk
が入ってるものが…
一旦k
を削除して保存。
解決
sudo yum upgrade
で無事パッケージのupgradeが走りました。
そもそもどのタイミングであの場所にkが入ったのか…謎すぎる。