Redhat 6.2 で yum を使用して何もインストールできない

Redhat 6.2 で yum を使用して何もインストールできない

libgcj私は最近、パッケージのインストールに関する問題を解決するためにいくつかのコマンドを実行しました。これページ。コンピューターからいくつかのリポジトリを削除したと思います。とにかく、yum install <package-name>それ以降は何もインストールできません。エラーが返されます

Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package libgcj available.
Error: Nothing to do

また、更新中にyum updateそれを使用しても機能せず、このエラーが発生します

Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Update Process
No Packages marked for Update

yum repolist enabledコマンドを実行すると次のようになります

Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repolist: 0

誰かこれを修正する方法を教えてもらえますか?

rhel-source.repoファイルの内容は次のとおりです。

name=Red Hat Enterprise Linux $releasever - $basearch - Source  
baseurl = ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source 
baseurl = ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-
beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

答え1

現在、公式リポジトリを確認するための RHEL システムがありません。次の手順を実行してください。

  • 有効なサブスクリプションがあることを確認してください(subscription-manager list --available --all
  • リポジトリがリストされているかどうかを確認しますyum repolist(すでに実行済みです)
  • .repoファイルのディレクトリを確認してください/etc/yum.repos.d/。ディレクトリが空でない場合は、ファイルに が含まれていないかどうかを確認してくださいenabled=0。含まれている場合は、 に編集するenabled=1か、行を削除してください。
  • yum.repos.d に .repo ファイルがない場合は、再作成してください。前述のとおり、現在 RHEL システムは手元にありませんが、最低限必要なのは次の通りです。

    [repository]
    name=repository_name
    baseurl=repository_url
    

チェックここリポジトリの追加に関する詳細情報。

関連情報