質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

Q&A

1回答

3824閲覧

yum install できなくなってしまった

kakoarisa

総合スコア9

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

yum

yumコマンドは、UNIX系OSのRPMパッケージのインストールなどを行うためのプログラムのことです。

0グッド

0クリップ

投稿2017/07/27 05:42

お世話になっております。

CentOSでPostgresqlを用いようと、下記のサイトさまを参考にしました。

http://qiita.com/SOJO/items/a1d97887d24c3e44596f

打ち込んだコマンドは上記サイト様のうちの以下のとなっております。

wget yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm rpm -ivh pgdg-centos95-9.5-2.noarch.rpm yum -y install postgresql95-server postgresql95-devel postgresql95-contrib

そして、最後のコマンドでエラー発生

yum -y install postgresql95-server postgresql95-devel postgresql95-contrib Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 centos-kernel | 2.9 kB 00:00:00 extras | 2.9 kB 00:00:00 https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ One of the configured repositories failed (PostgreSQL 9.5 7 - armhfp), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=pgdg95 ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable pgdg95 or subscription-manager repos --disable=pgdg95 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=pgdg95.skip_if_unavailable=true failure: repodata/repomd.xml from pgdg95: [Errno 256] No more mirrors to try. https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

以後は他のパッケージに対してyumコマンドを打っても同じような形のエラー文が出てしまいます。

ntpのインストールを試みたところ

1yum install ntp 2Loaded plugins: fastestmirror 3base | 3.6 kB 00:00:00 4centos-kernel | 2.9 kB 00:00:00 5extras | 2.9 kB 00:00:00 6https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found 7Trying other mirror. 8To address this issue please refer to the below knowledge base article 9 10https://access.redhat.com/articles/1320623 11 12If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ 13 14 15 16 One of the configured repositories failed (PostgreSQL 9.5 7 - armhfp), 17 and yum doesn't have enough cached data to continue. At this point the only 18 safe thing yum can do is fail. There are a few ways to work "fix" this: 19 20 1. Contact the upstream for the repository and get them to fix the problem. 21 22 2. Reconfigure the baseurl/etc. for the repository, to point to a working 23 upstream. This is most often useful if you are using a newer 24 distribution release than is supported by the repository (and the 25 packages for the previous distribution release still work). 26 27 3. Run the command with the repository temporarily disabled 28 yum --disablerepo=pgdg95 ... 29 30 4. Disable the repository permanently, so yum won't use it by default. Yum 31 will then just ignore the repository until you permanently enable it 32 again or use --enablerepo for temporary usage: 33 34 yum-config-manager --disable pgdg95 35 or 36 subscription-manager repos --disable=pgdg95 37 38 5. Configure the failing repository to be skipped, if it is unavailable. 39 Note that yum will try to contact the repo. when it runs most commands, 40 so will have to try and fail each time (and thus. yum will be be much 41 slower). If it is a very temporary problem though, this is often a nice 42 compromise: 43 44 yum-config-manager --save --setopt=pgdg95.skip_if_unavailable=true 45 46failure: repodata/repomd.xml from pgdg95: [Errno 256] No more mirrors to try. 47https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

英文を読んでみましたが、解決策がよくわかりません…

どうも、yumでpostgresqlを入れた際にやらかしていてyum自体が使えなくなってしまっている状態なのでしょうか…
よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

ダウンロードしたRPMが古くて入れたリポジトリのダウンロード先がなくなってるかもしれません。

入れたrpmを削除して(実行前に --testで確認してみてください。)

rpm -ev setuptool-1.19.2-1.el5.centos

wgetで落とす時にこちらのURLで入れ直すとどうでしょうか。(バージョンが少し上がりますが)

https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm

因みに今使えるrpmはここにあります。

追記

https://download.postgresql.org/pub/repos/yum/9.5/redhat/ ```を見てみた所```rhel-7-armhfp```は無いようです。 サーバは何を使ってるかが気になります。 (対応するアーキテクチャが無い可能性もありそうです。)

投稿2017/07/27 06:15

編集2017/07/27 07:15
balaenoptera

総合スコア222

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

kakoarisa

2017/07/27 07:19

ご回答ありがとうございます。 ご指摘の通り、rpmを削除して新たなpgdg-centos95-9.5-3.noarch.rpmをwgetで落とし、rpm -ivhを試みました。 しかし、同様に Loaded plugins: fastestmirror https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-armhfp/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. To address this issue please refer to the below knowledge base article といった文章が表示されてしまいます。 古いrpmを削除した際には、yumは無事に動きました。 しかしpostgresqlをrpmでインストールするとこのようなことが起きてしまいます…
kakoarisa

2017/07/27 07:22

追記ありがとうございます。 ハードはRaspberryPi3 OSはCentOS7 カーネルは4.9.35-v7.1.el7 #1 SMP Sun Jul 2 07:34:05 UTC 2017 armv7l armv7l armv7l GNU/Linux となります。
balaenoptera

2017/07/27 07:40 編集

> ハードはRaspberryPi3 なるほど。。。 https://download.postgresql.org/pub/repos/yum/ をざっと見たところ対応するアーキテクチャが見当たらないですね。。。 ご質問の中にあるqiitaの記事ではインストールの段階でうまくいかない可能性が高いです。 (AWSのような一般的な環境ならうまくいくと思います) RaspberryPi3界隈については疎いのでちょっとお力になれません。。。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問