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

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

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

MariaDBは、MySQL派生のオープンソースなリレーショナルデータベースシステムです。 また、MySQLとほぼ同じデータベースエンジンに対応しています。

Q&A

解決済

1回答

5128閲覧

MariaDB10のリポジトリデータが壊れてる?

mosa

総合スコア218

MariaDB

MariaDBは、MySQL派生のオープンソースなリレーショナルデータベースシステムです。 また、MySQLとほぼ同じデータベースエンジンに対応しています。

0グッド

0クリップ

投稿2016/09/01 00:53

編集2016/09/01 07:56

CentOS7 の MariaDB10 の repodata が 2016-Aug-30 に更新されたようですが、これって現在壊れています?

# sudo yum install mariadb mariadb-server mariadb/primary_db FAILED http://yum.mariadb.org/10.2/centos7-amd64/repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not FoundB --:--:-- ETA 他のミラーを試します。

repomd.xml 内には f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2 という記述があるのですが、そのようなファイルは見当たりません。

https://downloads.mariadb.org/mariadb/repositories/#mirror=yamagata-university&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.1

つまらない質問をしてすみませんがよろしくお願いします。


エラー全文を追記します。yum clean metadata をした後です。

# sudo yum install MariaDB-server 読み込んだプラグイン:fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 4.8 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 mariadb | 2.9 kB 00:00:00 remi-safe | 2.9 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/9): base/7/x86_64/group_gz | 155 kB 00:00:00 (2/9): epel/x86_64/group_gz | 170 kB 00:00:00 (3/9): base/7/x86_64/primary_db | 5.3 MB 00:00:00 (4/9): epel/x86_64/updateinfo | 618 kB 00:00:00 (5/9): extras/7/x86_64/primary_db | 160 kB 00:00:00 mariadb/primary_db FAILED http://yum.mariadb.org/10.1/centos7-amd64/repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not FoundB 00:00:06 ETA 他のミラーを試します。 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/ remi-safe/primary_db FAILED 37% [=========================- ] 2.2 MB/s | 6.8 MB 00:00:05 ETA http://mirror5.layerjet.com/remi/enterprise/7/safe/x86_64/repodata/027ccf5ef41c558110705019cfc8291aa9b0dba3c47f8cc27f7fedbed198092e-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 (6/9): remi-safe/primary_db | 486 kB 00:00:00 (7/9): updates/7/x86_64/primary_db | 7.1 MB 00:00:02 (8/9): epel/x86_64/primary_db | 4.3 MB 00:00:03 Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.jaist.ac.jp * extras: ftp.iij.ad.jp * remi-safe: fr.mirror.babylon.network * updates: ftp.iij.ad.jp mariadb/primary_db FAILED http://yum.mariadb.org/10.1/centos7-amd64/repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not FoundB --:--:-- ETA 他のミラーを試します。 http://yum.mariadb.org/10.1/centos7-amd64/repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 One of the configured repositories failed (MariaDB), 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. Disable the repository, 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 mariadb 4. 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=mariadb.skip_if_unavailable=true failure: repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2 from mariadb: [Errno 256] No more mirrors to try. http://yum.mariadb.org/10.1/centos7-amd64/repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found

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

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

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

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

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

TaichiYanagiya

2016/09/01 01:43

sudo yum clean metadata をしてもエラーになりますか?
mosa

2016/09/01 07:58 編集

すみません。1回、「インストールできました。」と書きましたができていませんでした。エラーになりました。エラー全文を追記しました。
guest

回答1

0

ベストアンサー

メタデータの更新がうまくいっていないのだと思います。
yum clean metadata または yum clean all (必要に応じて sudo で実行) した後、yum install するといいと思います。

(2016/09/01 17:38) 追記

repomd.xml が異なるのでしょうか?
こちらの環境では下記のとおりです。

$ ls -l /var/cache/yum/x86_64/7/mariadb/repomd.xml -rw-r--r--. 1 root root 2981 Aug 30 11:36 /var/cache/yum/x86_64/7/mariadb/repomd.xml $ sha256sum /var/cache/yum/x86_64/7/mariadb/repomd.xml b92a62f0015619240738ff7b176a8eb2e6bdcc4cf58fe51c7e58bb98e60eba06 /var/cache/yum/x86_64/7/mariadb/repomd.xml $ grep primary.sqlite.bz2 /var/cache/yum/x86_64/7/mariadb/repomd.xml <location href="repodata/983318a7271e6afa9b9aa79d166ca0d9a379aeede1b55aa7b9a6a75a684fcba4-primary.sqlite.bz2"/>

投稿2016/09/01 04:11

編集2016/09/01 08:38
TaichiYanagiya

総合スコア12141

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

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

mosa

2016/09/01 07:54

すみません。上記で動きました、と書いてしまいましたが、誤りでした。動きません。 CentOS7.1 を最小インストールし、repository generator で /etc/yum.repos.d/MariaDB.repo を作成し、sudo yum install MariaDB-server MariaDB-client しただけです。 https://downloads.mariadb.org/mariadb/repositories/#mirror=yamagata-university&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.1 その後、yum clean metadata や yum clean all をした後、インストールしようとしてもエラーになります。
mosa

2016/09/01 09:11

> repomd.xml が異なるのでしょうか? はい。異なります。 ``` $ ls -l /var/cache/yum/x86_64/7/mariadb/repomd.xml -rw-r--r-- 1 root root 2981 7月 18 10:39 /var/cache/yum/x86_64/7/mariadb/repomd.xml $ sha256sum /var/cache/yum/x86_64/7/mariadb/repomd.xml 0db9ff762abce1bda2217aaa37534c396e39814d1558e9235e42fde08d11c9ee /var/cache/yum/x86_64/7/mariadb/repomd.xml $ grep primary.sqlite.bz2 /var/cache/yum/x86_64/7/mariadb/repomd.xml <location href="repodata/f09b8e0157e896bfbef0778637696edb00d721fb6dab112be7b16c638087ef43-primary.sqlite.bz2"/> ``` http://yum.mariadb.org/10.1/centos7-amd64/repodata/ ↑が 2016-Aug-30 02:36:41 に更新されてからおかしくなったのかな、と思っています。
TaichiYanagiya

2016/09/01 09:45

ファイルの日時が古いですね。 「yum --disablerepo="*" --enablerepo=mariadb clean metadata」ではどうでしょうか。
mosa

2016/09/01 09:58

お付き合いいただきありがとうございます。 ご指示のコマンド実行後の再度 yum install してみましたが、同じエラーでした。 日付が古いのは気になりますね。ただ、ファイルの中身は以下のものと同じでした。 http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml http://yum.mariadb.org/10.1/centos7-amd64/repodata/ にあるファイルの一覧と、http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml に記述されているファイル名が全く一致していないのは関係あるのでしょうか。
TaichiYanagiya

2016/09/01 15:39

repomd.xml は 1つ前のバージョン(10.1.16)のものですね。 ブラウザでも repomd.xml だけ古い内容が見えるということは、上位プロキシか何かでキャッシュしているのでしょうか? あるいは、違うミラーサイトを見ている? こちらの環境では「dig yum.mariadb.org」で名前解決すると 142.4.217.28, 192.99.47.208, 192.99.147.104 の 3つがあり、どれも /10.1/centos7-amd64/repodata/repomd.xml は最新(10.1.17)でした。 もし、http://yum.mariadb.org/10.1.17/centos7-amd64/ 以下を参照できるのであれば、暫定対処として、/etc/yum.repos.d/mariadb.repo の baseurl のバージョンを「10.1」→「10.1.17」と変更すると yum install できるかもしれません。
mosa

2016/09/02 00:02

> repomd.xml は 1つ前のバージョン(10.1.16)のものですね。 > ブラウザでも repomd.xml だけ古い内容が見えるということは、上位プロキシか何かでキャッシュしているのでしょうか? 仰るとおりでした。自宅と会社で http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml の見える内容が異なりました。 会社では古い社内プロキシサーバを使用しているため、キャッシュが更新されていなかったのかもしれません。 ご指示の方法でインストールできました。 本当にありがとうございました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問