描述:
我試圖用它yum repolist all
來獲取我所有的存儲庫,然後我得到了
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.tds.net
repo id repo name
docker-ce-nightly/7/x86_64 Docker CE Nightly - x86_64 disabled
docker-ce-nightly-debuginfo/7/x86_64 Docker CE Nightly - Debuginfo x86_64 disabled
docker-ce-nightly-source/7 Docker CE Nightly - Sources disabled
docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 disabled
docker-ce-stable-debuginfo/7/x86_64 Docker CE Stable - Debuginfo x86_64 enabled: 17
docker-ce-stable-source/7 Docker CE Stable - Sources enabled: 0
docker-ce-test/7/x86_64 Docker CE Test - x86_64 disabled
docker-ce-test-debuginfo/7/x86_64 Docker CE Test - Debuginfo x86_64 disabled
docker-ce-test-source/7 Docker CE Test - Sources disabled
我試圖透過 repo id 啟用 repo,docker-ce-stable/7/x86_64
但yum-config-manager --enable docker-ce-stable/7/x86_64
失敗並顯示以下訊息
[root@slc07ppm02 xiaojguan]# yum-config-manager --enable docker-ce-stable/7/x86_64
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
但我可以透過yum-config-manager --enable docker-ce-stable\*
repo id添加 repo docker-ce-stable/7/x86_64
,這應該沒問題。
預期幫助:
我可以docker-ce-stable/7/x86_64
透過以下命令添加帶有 id 的存儲庫:
yum-config-manager --enable docker-ce-stable/7/x86_64
提前致謝! !