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

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

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

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Q&A

解決済

1回答

884閲覧

FTP Errorでyumが使えないのでこれを直したい

mmorita

総合スコア21

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

0グッド

0クリップ

投稿2018/10/09 06:03

前提・実現したいこと

CentOS7で、yumを使おうとしたら、baseの読み込み(?)でエラーが発生してしまったのでこれを修正したいです。

発生している問題・エラーメッセージ

エラーメッセージ

### 該当のソースコード $ yum list 読み込んだプラグイン:fastestmirror, langpacks base | 3.6 kB 00:00:00 ftp://ftp.eso.org/pub/dfs/pipelines/repositories/stable/fedora/7/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory 他のミラーを試します。 One of the configured repositories failed (European Southern Observatory RPM repository for Fedora 7), 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 esorepo 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=esorepo.skip_if_unavailable=true failure: repodata/repomd.xml from esorepo: [Errno 256] No more mirrors to try. ftp://ftp.eso.org/pub/dfs/pipelines/repositories/stable/fedora/7/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
### 試したこと FTP のURLがftp://ftp.eso.org/pub/dfs/pipelines/repositories/stable/fedora/7 で、最後のところが7ではなく20~27しかないことを確認したのですが、このURLの参照がどこから出ているのか確認する方法とその内容を修正する方法がわからないので教えていただきたいです。 ### 補足情報(FW/ツールのバージョンなど) ここにより詳細な情報を記載してください。

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

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

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

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

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

guest

回答1

0

ベストアンサー

bash

1# cd /etc/yum.repos.d 2# grep ftp.eso.org * 3

で、該当のリポジトリ定義ファイルを探してみてください。
もし見つかったら、そのファイルを修正します。
そのファイルで定義されている一部のリポジトリだけを無効にしたい場合は、
そのセクションに enabled=0 の行を追加してください。
そのリポジトリ自体が不要ならファイルごと削除しても構いません。

なお問題の箇所は、esorepoの組み込み誤りに起因するようです。
上記 URL にしたがって Fedora 用ではなく CentOS7 用の設定を入れてみてください。

投稿2018/10/09 14:02

hotta

総合スコア1613

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

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

mmorita

2018/10/10 07:35

ご回答ありがとうございます! 御指摘の通りesorepo.repoの内容をFedoraからCentOSに修正したところ実行することができました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.47%

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

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

質問する

関連した質問