CentOS6.10でSoftware collections(SCL)導入時に発生したエラーに対する対応

CentOS6.10でSoftware collections(SCL)を利用しようとSCLリポジトリのパッケージをインストール・設定を行った際にいくつかエラーが発生しました。その際に行った対応についてメモ書きしています。

※目次をクリックすると目次の下部にコンテンツが表示されます。

Software collections(SCL)とは?
〇Software collections(SCL)とは?
・動的なプログラミング言語、データベースサーバー、関連パッケージを提供する Red Hat のコンテンツセットのこと。
・SCLを使用すると、システムに同じソフトウェアコンポーネントの複数のバージョンを構築し、同時にインストールできる。
・SCLは、従来のRPMパッケージ管理ユーティリティーによってインストールされるパッケージのシステムバージョンには影響を与えない。
 
〇sclユーティリティー
・Software collections(SCL)では、sclユーティリティーに基づく代替のパッケージ化メカニズムを使用して、パッケージの並列セットを提供している。
・sclユーティリティーを使用すると、いつでも実行するパッケージバージョンを選択できる。

CentOS6.10にSCLを導入
1)SCLの導入
 
①yumコマンドでインストール
 

# yum -y install centos-release-scl-rh centos-release-scl

================================================================================
 Package                   Arch       Version                  Repository  Size
================================================================================
Installing:
 centos-release-scl        noarch     10:7-4.el6.centos        extras      12 k
 centos-release-scl-rh     noarch     2-4.el6.centos           extras      12 k

Transaction Summary
================================================================================
Install       2 Package(s)

Installed:
  centos-release-scl.noarch 10:7-4.el6.centos
  centos-release-scl-rh.noarch 0:2-4.el6.centos

Complete!

 
②必要なときのみリポジトリを読みこむように設定
 
sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/CentOS-SCLo-scl.repo
sed -i -e “s/enabled=1/enabled=0/g” /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
 
2)動作確認
 
●エラー発生
ここでは、git25をインストールし、動作確認しましたが以下のようにエラーが発生しました。
 

#yum --enablerepo=centos-sclo-rh -y install git25

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-sclo-rh

 
●エラー解決時の対応方法
$ echo “https://vault.centos.org/6.10/sclo/x86_64/sclo/” > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt

関連記事の目次

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください