Home > OS >  Centos7: yum install - y LRZSZ command returns an error
Centos7: yum install - y LRZSZ command returns an error

Time:09-21

Loaded plug-in: fastestmirror
Could not retrieve mirrorlist HTTP://http://mirrorlist.centos.org/? Release=7 & amp; The arch=x86_64 & amp; Repo=os& Infra=stock error was
14: curl# 52 - "Empty reply from server"


One of the configured repositories failed (unknown),
And yum doesn 't have the enough cached data to continue. At this point the only
Safe thing yum can do is fail. There are what ways to the work of "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
Most upstream. This is, useful if you are using a newer
Distribution release than is supported by the repository (and the
Packages for the previous distribution release, the work).

3. Run the command with the repository temporarily disabled
Yum - disablerepo=& lt; 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 the or use - enablerepo for temporary usage:

Yum - config manager - disable & lt; Repoid>
Or
Subscription - manager repos - disable=& lt; Repoid>

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. Most of the when it runs commands,
So will have to try and fail each time (and thus the yum will be be much
Slower). If it is a very temporary problem my, this is, a nice
Compromise:

Yum - config manager - save - setopt=& lt; Repoid> . Skip_if_unavailable=true

Always find a valid baseurl for repo: 7/base/x86_64
/root @ localhost ~ #
Online solution is not very detailed, hope there are clear explanations,

CodePudding user response:

First check whether the host access network is open, if no problem, access the network can try using the source, not local source

CodePudding user response:

The source of the problem or network problem, the domestic can try ali's mirror.

CodePudding user response:

Under the view ifconfig
Also can not find, if the network service, the ping ping impassability, also should be a network problem, centos like network command changed after 7, to modify ifcfg card file, ONBOOT after open to yes can be connected to the Internet, but some will find package, modify source, with respect to OK

CodePudding user response:

Is there any solution, I changed the version also met today!

CodePudding user response:

The same problem, who knows feel replies

CodePudding user response:

Mirror is the right address, see the/etc/yum repos. D/a
  • Related