Able to ping but not to run yum install commands

Issues related to configuring your network
Post Reply
arielma
Posts: 6
Joined: 2019/04/05 20:54:01

Able to ping but not to run yum install commands

Post by arielma » 2019/04/08 11:45:46

Hi
I'm able to ping to external websites, but for some reason, the sudo yum install command is not working due to connectivity issues. did anyone face it?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Able to ping but not to run yum install commands

Post by TrevorH » 2019/04/08 12:28:06

Post the actual output from yum.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

arielma
Posts: 6
Joined: 2019/04/05 20:54:01

Re: Able to ping but not to run yum install commands

Post by arielma » 2019/04/08 17:16:03

sudo yum install vim
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
^CCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: curl#56 - "Callback aborted"
^CCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: curl#56 - "Callback aborted"
epel/x86_64/metalink | 25 kB 00:00:00
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: curl#7 - "Failed connect to mirrorlist.centos.org:80; Operation now in progress"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
14: curl#7 - "Failed connect to mirrorlist.centos.org:80; Operation now in progress"
* epel: www.mirrorservice.org
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
^Chttp://vault.centos.org/7.0.1406/os/x86_64/repodata/repomd.xml: [Errno 14] curl#56 - "Callback aborted"
Trying other mirror.


One of the configured repositories failed (CentOS-7.0.1406 - 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.0.1406-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.0.1406-base
or
subscription-manager repos --disable=C7.0.1406-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.0.1406-base.skip_if_unavailable=true

failure: repodata/repomd.xml from C7.0.1406-base: [Errno 256] No more mirrors to try.
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 12] Timeout on http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
http://vault.centos.org/7.0.1406/os/x86 ... repomd.xml: [Errno 14] curl#56 - "Callback aborted"
$ Connection reset by 10.0.0.12 port 22

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Able to ping but not to run yum install commands

Post by TrevorH » 2019/04/09 03:53:43

None of those C7.x* repos should be enabled by default anyway. They're all in CentOS-Vault.repo and should all have enabled=0.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

arielma
Posts: 6
Joined: 2019/04/05 20:54:01

Re: Able to ping but not to run yum install commands

Post by arielma » 2019/04/09 17:10:09

Where I should config it?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Able to ping but not to run yum install commands

Post by jlehtone » 2019/04/09 20:21:29

yum did tell you:
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:

Code: Select all

yum-config-manager --disable C7*

arielma
Posts: 6
Joined: 2019/04/05 20:54:01

Re: Able to ping but not to run yum install commands

Post by arielma » 2019/04/10 19:56:21

I didn't manage to work from VB.
apparently, it's related to some security configuration (it's a company laptop). eventually, I managed to work and run sudo commands though vagrant

Post Reply