Yum error: Could not retrieve mirrorlist error was 14: curl#56 - “Recv failure: Connection reset by peer”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Trying to run any yum command in CentOS 7 like yum update and yum install somthing I get following error:



[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"


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: extras/7/x86_64


I have found a little similar question here but error number is different there (mine is 14. its is 12)



Also same questions in different sites with no helpful answer



tracker.ceph.com



blog.csdn.net



I appreciate any suggestions.










share|improve this question























  • sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
    – sourcejedi
    Jun 13 '17 at 8:59










  • @sourcejedi -bash: traceroute: command not found
    – Alex Jolig
    Jun 14 '17 at 5:16














up vote
0
down vote

favorite












Trying to run any yum command in CentOS 7 like yum update and yum install somthing I get following error:



[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"


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: extras/7/x86_64


I have found a little similar question here but error number is different there (mine is 14. its is 12)



Also same questions in different sites with no helpful answer



tracker.ceph.com



blog.csdn.net



I appreciate any suggestions.










share|improve this question























  • sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
    – sourcejedi
    Jun 13 '17 at 8:59










  • @sourcejedi -bash: traceroute: command not found
    – Alex Jolig
    Jun 14 '17 at 5:16












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Trying to run any yum command in CentOS 7 like yum update and yum install somthing I get following error:



[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"


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: extras/7/x86_64


I have found a little similar question here but error number is different there (mine is 14. its is 12)



Also same questions in different sites with no helpful answer



tracker.ceph.com



blog.csdn.net



I appreciate any suggestions.










share|improve this question















Trying to run any yum command in CentOS 7 like yum update and yum install somthing I get following error:



[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#56 - "Recv failure: Connection reset by peer"


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: extras/7/x86_64


I have found a little similar question here but error number is different there (mine is 14. its is 12)



Also same questions in different sites with no helpful answer



tracker.ceph.com



blog.csdn.net



I appreciate any suggestions.







centos yum






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 17 '17 at 3:51

























asked Jun 13 '17 at 6:58









Alex Jolig

1,0992815




1,0992815











  • sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
    – sourcejedi
    Jun 13 '17 at 8:59










  • @sourcejedi -bash: traceroute: command not found
    – Alex Jolig
    Jun 14 '17 at 5:16
















  • sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
    – sourcejedi
    Jun 13 '17 at 8:59










  • @sourcejedi -bash: traceroute: command not found
    – Alex Jolig
    Jun 14 '17 at 5:16















sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
– sourcejedi
Jun 13 '17 at 8:59




sometimes it is useful to look at sudo traceroute -T -p 80 www.google.com... tho I think your google URL will redirect to HTTPS, so technically you also need sudo traceroute -T -p 443 www.google.com
– sourcejedi
Jun 13 '17 at 8:59












@sourcejedi -bash: traceroute: command not found
– Alex Jolig
Jun 14 '17 at 5:16




@sourcejedi -bash: traceroute: command not found
– Alex Jolig
Jun 14 '17 at 5:16










1 Answer
1






active

oldest

votes

















up vote
0
down vote













If even curl https://www.google.com isn't working, it might be that your local and/or centralized firewall is blocking outgoing connections on port 80/443, and/or CentOS is missing a HTTP_PROXY environment variable (if you have to use an outgoing proxy).






share|improve this answer




















  • I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
    – Alex Jolig
    Jun 14 '17 at 5:25










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f370812%2fyum-error-could-not-retrieve-mirrorlist-error-was-14-curl56-recv-failure%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













If even curl https://www.google.com isn't working, it might be that your local and/or centralized firewall is blocking outgoing connections on port 80/443, and/or CentOS is missing a HTTP_PROXY environment variable (if you have to use an outgoing proxy).






share|improve this answer




















  • I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
    – Alex Jolig
    Jun 14 '17 at 5:25














up vote
0
down vote













If even curl https://www.google.com isn't working, it might be that your local and/or centralized firewall is blocking outgoing connections on port 80/443, and/or CentOS is missing a HTTP_PROXY environment variable (if you have to use an outgoing proxy).






share|improve this answer




















  • I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
    – Alex Jolig
    Jun 14 '17 at 5:25












up vote
0
down vote










up vote
0
down vote









If even curl https://www.google.com isn't working, it might be that your local and/or centralized firewall is blocking outgoing connections on port 80/443, and/or CentOS is missing a HTTP_PROXY environment variable (if you have to use an outgoing proxy).






share|improve this answer












If even curl https://www.google.com isn't working, it might be that your local and/or centralized firewall is blocking outgoing connections on port 80/443, and/or CentOS is missing a HTTP_PROXY environment variable (if you have to use an outgoing proxy).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 13 '17 at 8:27









Linuxfabrik

362




362











  • I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
    – Alex Jolig
    Jun 14 '17 at 5:25
















  • I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
    – Alex Jolig
    Jun 14 '17 at 5:25















I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
– Alex Jolig
Jun 14 '17 at 5:25




I have disabled firewall by systemctl disable firewalld. And I don't think there is a proxy to connect to the net as I can successfully ping 8.8.8.8
– Alex Jolig
Jun 14 '17 at 5:25

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f370812%2fyum-error-could-not-retrieve-mirrorlist-error-was-14-curl56-recv-failure%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?