Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

Vesta Centos 7.3 yum install failed

Recommended Posts

vesta_logo.png

 

Loaded plugins: fastestmirror
C7.0.1406-base | 3.6 kB 00:00:00
C7.0.1406-updates | 2.9 kB 00:00:00
C7.1.1503-base | 3.6 kB 00:00:00
C7.1.1503-updates | 3.4 kB 00:00:00
C7.2.1511-base | 3.6 kB 00:00:00
C7.2.1511-updates | 3.4 kB 00:00:00
http://vault.centos.org/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 – Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn’t help to resolve this issue please create a bug on https://bugs.centos.org/

One of the configured repositories failed (CentOS-7.3.1611 – Base),
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=C7.3.1611-base …

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 C7.3.1611-base
or
subscription-manager repos –disable=C7.3.1611-base

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=C7.3.1611-base.skip_if_unavailable=true

failure: repodata/repomd.xml from C7.3.1611-base: [Errno 256] No more mirrors to try.
http://vault.centos.org/7.3.1611/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 – Not Found
Error: yum install failed

———-

fix
add lines
skip_if_unavailable = 1
keepcache = 0

to file
/etc/yum.repos.d/CentOS-Vault.repo
example:

was:
[C7.3.1611-extras]
name=CentOS-7.3.1611 – Extras
baseurl=http://vault.centos.org/7.3.1611/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=0

now:
[C7.3.1611-extras]
name=CentOS-7.3.1611 – Extras
baseurl=http://vault.centos.org/7.3.1611/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=0
skip_if_unavailable = 1
keepcache = 0

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×