查看问题详情

编号项目分类查看权限最后更新
0000601Anolis OS 7Generalpublic2021-12-13 13:59
报告员anolislw 分派给yunqi-zwt  
优先级normal严重性minor出现频率have not tried
状态 assigned处理状况open 
标题0000601: [Anolis7.9][x86/aarch64][ecs] 环境中无法通过nginx repo安装nginx
描述An7.9 x86/aarch64环境无通过nginx repo源安装nginx


[机器环境]
[root@localhost yum.repos.d]# ll /etc/yum.repos.d/
total 32
-rw-r--r-- 1 root root 868 Dec 10 14:13 AnolisOS-Debuginfo.repo
-rw-r--r-- 1 root root 180 Nov 26 12:03 AnolisOS-extras.repo
-rw-r--r-- 1 root root 168 Nov 26 12:03 AnolisOS-os.repo
-rw-r--r-- 1 root root 174 Dec 10 14:02 AnolisOS-Plus.repo
-rw-r--r-- 1 root root 812 Dec 10 14:14 AnolisOS-Source.repo
-rw-r--r-- 1 root root 183 Nov 26 12:03 AnolisOS-updates.repo
-rw-r--r-- 1 root root 208 Nov 26 12:03 epel.repo
-rw-r--r-- 1 root root 173 Dec 11 15:02 nginx.repo
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
http://nginx.org/packages/centos/7.7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

http://nginx.org/packages/centos/7.7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
repo id repo name status
Plus/x86_64 AnolisOS-7.7 - Plus 11
Plus-debuginfo/x86_64 AnolisOS-7.7 - Plus Debuginfo 6
Plus-source AnolisOS-7.7 - Plus Source 1
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,692
extras/x86_64 AnolisOS-7.7 - extras 8
extras-debuginfo/x86_64 AnolisOS-7.7 - extras Debuginfo 4
extras-source AnolisOS-7.7 - extras Source 6
nginx/7.7/x86_64 nginx 0
os/x86_64 AnolisOS-7.7 - os 6,775
os-debuginfo/x86_64 AnolisOS-7.7 - os Debuginfo 1,468
os-source AnolisOS-7.7 - os Source 2,254
updates/x86_64 AnolisOS-7.7 - updates 2,503
updates-debuginfo/x86_64 AnolisOS-7.7 - updates Debuginfo 310
updates-source AnolisOS-7.7 - updates Source 352

[root@localhost yum.repos.d]# cat /etc/image-id
image_name="Anolis 7.9 ANCK 64 bit"
image_id="anolisos_7_9_x64_20G_anck_alibase_20211126.vhd"
release_date="20211126120140"
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# uname -r
4.19.91-24.8.an7.x86_64
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"





问题重现步骤[复现频率]
必现

[复现步骤]
1)配置nginx源
[nginx]
name=nginx
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
enabled=1
gpgcheck=1
2) yum install nginx
[root@localhost yum.repos.d]# yum install nginx
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
http://nginx.org/packages/centos/7.7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

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 (nginx),
 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=nginx ...

     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 nginx
        or
            subscription-manager repos --disable=nginx

     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=nginx.skip_if_unavailable=true

failure: repodata/repomd.xml from nginx: [Errno 256] No more mirrors to try.
http://nginx.org/packages/centos/7.7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found


附注An7.9环境会把$releaserver解析为7.7,但是nginx repo中没有7.7的源

http://nginx.org/packages/centos/
-------------------------------------------------------------------------------------------
Index of /packages/centos/
../
5/ 17-Aug-2016 13:30 -
6/ 17-Aug-2016 13:30 -
6Client/ 17-Aug-2016 13:30 -
6Server/ 17-Aug-2016 13:30 -
6Workstation/ 17-Aug-2016 13:30 -
7/ 10-Feb-2021 11:32 -
7Client/ 10-Feb-2021 11:32 -
7Server/ 10-Feb-2021 11:32 -
7Workstation/ 10-Feb-2021 11:32 -
8/ 21-Apr-2020 15:19

标签没加标签.

活动

这个问题没有注释信息

问题历史

日期 用户名 字段 更改
2021-12-11 15:14 anolislw 新建问题
2021-12-11 15:15 anolislw 附注已修改
2021-12-13 10:22 xiezhongtian 分派给 => layne-yang
2021-12-13 10:22 xiezhongtian 状态 新建 => 已分配
2021-12-13 13:53 xiezhongtian 分派给 layne-yang => jacobwang
2021-12-13 13:59 jacobwang 分派给 jacobwang => yunqi-zwt