コマンドを使用しようとするたびにyum install <packagename>
エラーが発生します。
利用可能なパッケージはありません
例えば、
[root@cpanel1 etc]# yum install autossh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.t-2.net
* extras: centos.t-2.net
* updates: centos.t-2.net
No package autossh available.
Error: Nothing to do
[root@cpanel1 etc]#
どのように機能させますか?
ベストアンサー1
このステップは役に立ちます。
yum clean all
&yum clean metadata
ファイルをチェックイン
/etc/yum.repos.d
し、すべてのリポジトリにすべてのファイルがないことを確認してくださいenabled = 0
(ファイルごとに複数のファイルがある可能性があります)。yum update
最後に、必要なパッケージを実行して検索できます。