描述:
我试图用它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
提前致谢!!!