本帖最后由 canxunhulian 于 2022-3-16 17:55 编辑
我刚刚应该是不小心执行了 yum-config-manager –add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-c 掉了字 应该是yum-config-manager –add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 然后现在安装东西 yum install screen https://wiki.centos.org/yum-errors If above article doesn’t help to resolve this issue please use https://bugs.centos.org/. One of the configured repositories failed (added from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-c), 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working 3. Run the command with the repository temporarily disabled 4. Disable the repository permanently, so yum won’t use it by default. Yum yum-config-manager –disable mirrors.aliyun.com_docker-ce_linux_centos_docker-c 5. Configure the failing repository to be skipped, if it is unavailable. yum-config-manager –save –setopt=mirrors.aliyun.com_docker-ce_linux_centos_docker-c.skip_if_unavailable=true failure: repodata/repomd.xml from mirrors.aliyun.com_docker-ce_linux_centos_docker-c: [Errno 256] No more mirrors to try. |
无不无聊 一个贴发两次 |
我在找解决方法 |
就不要重复发了撒,既然都卸载了yum那就自己用rpm装回来 |
有addrepo就有deleterepo吧,删了重新加 |
我卸载装回来还是这样 |
本帖最后由 sagerking 于 2022-3-16 17:43 编辑
更换yum源解决一切问题,另外,阿里的默认源是走阿里内网域名,如果使用了warp之类的会导致无法解析 |
还是centos?是不是删源了? |
vim /etc/yum.repo.d 删除了重新添加 |
有个连不上的repo = yum坏了,这么点东西都要折腾这么久,正常人的逻辑都是加错了东西删掉就好了 |