首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析主机: mirrors.iuscommunity.org

无法解析主机: mirrors.iuscommunity.org
EN

Server Fault用户
提问于 2021-11-11 09:28:45
回答 1查看 1.3K关注 0票数 1

我无法在我的centos机器上安装或更新这个软件包。

代码语言:javascript
复制
check with 
vi /etc/sysconfig/network-scripts/ifcfg-lo
ONBOOT=yes
NAME=loopbac

[ec2-user@ip- ~]$ sudo yum update
Loaded plugins: langpacks, priorities, update-motd
amzn2-core                                                                                                                                                                                                            | 3.7 kB  00:00:00
datadog                                                                                                                                                                                                               | 2.9 kB  00:00:00
epel/x86_64/metalink                                                                                                                                                                                                  | 8.5 kB  00:00:00
epel                                                                                                                                                                                                                  | 4.7 kB  00:00:00
Could not retrieve mirrorlist https://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos7&arch=x86_64&protocol=http error was
14: curl#6 - "Could not resolve host: mirrors.iuscommunity.org"


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     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
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

 yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: ius/x86_64

可能的问题是什么?

EN

回答 1

Server Fault用户

发布于 2022-04-05 04:25:01

这是由IUS移动镜像服务器造成的。https://github.com/iusrepo/infrastructure/issues/14#issuecomment-572276277解决了这个问题,请执行以下步骤:

代码语言:javascript
复制
yum erase ius-release
rm /etc/yum.repos.d/ius*.repo*
yum install https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1083227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档