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

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

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

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

Q&A

解決済

2回答

5388閲覧

CentOS Base-repoのエラーが消えません

kentros511

総合スコア122

CentOS

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

1グッド

0クリップ

投稿2016/07/06 04:06

編集2016/07/06 05:14

###Base-repo全文

# CentOS-Base.repo /$release/os/$basearch/ # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically closeto the client. You should use this for CentOS updates # unless you are manually picking other mirrors. #l # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra baseurl=http://ftp.riken.jp/Linux/caos/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates baseurl=http://ftp.riken.jp/Linux/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra baseurl=http://ftp.riken.jp/Linux/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra baseurl=http://ftp.riken.jp/Linux/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib&infra=$infra baseurl=http://ftp.riken.jp/Linux/centos/$releasever/contrib/$basearch/ gpgcheck=1

###結果
エラーが表示されないようになる

###課題
エラーメッセージを消す

File contains no section headers. file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 2 '/$release/os/i386/\n'

###手順

baseurl=http://ftp.riken.jp/Linux/centos/$release/os/$basearch/

↓に変更

baseurl=http://ftp.riken.jp/Linux/centos/$releasever/os/$basearch/ しかし、エラーが消えない

###環境
CentOS6.7

$releaseverに変更したのにエラーな理由とどのように直すとエラーが消えるか知りたいです

mondaminZ👍を押しています

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

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

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

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

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

dohq

2016/07/06 05:06

> File contains no section headers. file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 2 '/$release/os/i386/\n' この内容から、/etc/yum.repos.d/CentOS-Base.repoの2行目がおかしいという事です。 ファイルの内容を全て貼って下さい
guest

回答2

0

ベストアンサー

# CentOS-Base.repo /$release/os/$basearch/ # The mirror system uses the connecting IP address of the client and the ```明らかにここがおかしいでしょ。 こんなの削除しましょうよ。ってかもうちょっとご自分で考えられた方がいいですよ。 何も考えずに質問を繰り返しているように見えます。

投稿2016/07/06 05:24

shi_ue

総合スコア4437

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

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

0

投稿2016/07/06 04:20

tnd-.-b

総合スコア247

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

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

kentros511

2016/07/06 04:36

どういうふうに違うんですか 回答ありがとうございました
kentros511

2016/07/06 04:51

まだエラーでした…
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.49%

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

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

質問する

関連した質問