現在の問題

現在の問題

パッケージを更新yum updateできません。提供されている可能性のあるすべてのソリューションを試しましたが、yum clean, yum repolist, etcこれらのどれも問題を解決できないようです。

sudo yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.net.in
 * elrepo: elrepo.reloumirrors.net
 * epel: mirror.nes.co.id
 * extras: mirrors.fibergrid.in
 * nux-dextop: mirror.li.nux.ro
 * rpmfusion-nonfree-updates: www.mirrorservice.org
 * updates: mirrors.fibergrid.in

No packages marked for update 


# CentOS-Base.repo
#
# 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 close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# 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://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#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://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#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://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

注 - #baseurlを使用しても幸運はありません。

ベストアンサー1

現在の問題

yumを介して更新することはできません。

解決策

参考にしますこのスタック交換ポストまたこのCentOS Wikiページこの答えから。

まず、すべてのリポジトリが正しいことを確認する必要があります。私がリンクしたWikiさまざまなサードパーティのストレージとデフォルトのストレージ構成への追加リンクが必要です。また、サードパーティのストレージがシステムの他の側面と競合する可能性があることも指摘したいと思います。 Debianとは異なり、rpmベースのディストリビューションはサードパーティのリポジトリをサポートします。

すべてのリポジトリが正しく構成されていることを確認したら(各サードパーティ/ベンダーはそのCentOSバージョンのジョブ設定ファイルに関する詳細を提供する必要があります)、root権限で次のコマンドを実行する必要があります。

yum clean all  

Wikiとuser1403360によると、これによりキャッシュが消去され、次回実行すると画像が再ダウンロードされますyum update

問題は、リポジトリが正しくない可能性があることです。 Debianベースのディストリビューションとは異なり、rpmベースのディストリビューションは通常、各リポジトリのディレクトリに独自のファイルが必要であることに注意してください/etc/yum.repos.d/

Redhat ベースのシステムでリポジトリを管理する方法の良いガイドです。。リンクの説明に従ってリポジトリを管理していることを確認してください。必要に応じて、リンクに記載されている手順を使用してすべてのリポジトリを消去して再度追加します。

結論として

リポジトリが正しく管理および構成されていることを確認してから、キャッシュを消去してイメージを再ダウンロードする必要があります。これにより問題が解決します。

この回答について質問や質問がある場合は、コメントを残してください。コマンドを試す前に、私が提供する各リンクを注意深く読んでください。誤解を解決し、投稿を改善するためにフィードバックを送信していただきありがとうございます。必要に応じて回答を更新できます。

頑張ってください!

おすすめ記事