YUM Update not working

Issues related to configuring your network
Post Reply
bilqat
Posts: 5
Joined: 2017/05/02 14:35:45

YUM Update not working

Post by bilqat » 2017/05/09 16:12:17

i recently installed centos 7 in my laptop using virtualbox , and i configured static IP Addres to my VM after configuring static IP Address yum updates are not working and showing this error

(Trying Other Mirror
https://mirrors.centos.org/centos/7/os/ ... repomd.xml: [Errno 12]............Solving Timed out After 30556 miliseconds')

please solve my this problem as i'm new user of linux that's why i'm very afraid of it
Last edited by bilqat on 2017/05/09 16:36:18, edited 1 time in total.

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

Re: YUM Update not working

Post by TrevorH » 2017/05/09 16:20:45

Does it really say mirrors.contos.org ?
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

bilqat
Posts: 5
Joined: 2017/05/02 14:35:45

Re: YUM Update not working

Post by bilqat » 2017/05/09 16:33:50

oh sorry it's my mistake it says centos.org

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: YUM Update not working

Post by aks » 2017/05/09 16:51:13

These are all HTTP transaction and you can use wget or curl to see what is happening. It's the same process as when you put something in the URL bar in your browser.

I tried the URL you posted (https://mirrors.centos.org/centos/7/os/ ... repomd.xml) and got "server not found" - using the browser. Changed the URL to http://mirror.centos.org/centos/7/os/x8 ... repomd.xml and it worked.

So these configuration options in are /etc/yum.repos.d/*.repo (under either mirrorlist or baseurl, depending on what you've done). The variables (such as $releasever match the release (so 7 for CentOS 7, 6 for CentOS 6 etc.) and $basearch matches the architecture - x86_64, i386 etc.). The passes the same args in the form ?release=$releasever&arch=$basearch&repo=os, where repo matches the repository (OS, update etc.).

The last bit of the URL (repodata/repomd.xml) is "well known" by YUM and that is what it automatically appends.

So the URL passed is wrong in (probably) /etc/yum.repos.d/CentOS-Base.repo. Don't use HTTPS, use HTTP (well works for me) and it's mirror.centos.orig not mirrors.centos.org.

bilqat
Posts: 5
Joined: 2017/05/02 14:35:45

Re: YUM Update not working

Post by bilqat » 2017/05/09 17:08:31

i changed transaction from HTTPS to HTTP and than tried to (yum -y install update ) now this time facing this issue
could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... nfra=stock error was
12: Timeout on (http://mirror.centos.org/centos/7/os/x8 ... repomd.xml: (28:
Retrying other mirror
.........
........
Retrying other mirror
.........
........
Retrying other mirror

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

Re: YUM Update not working

Post by jlehtone » 2017/05/10 10:23:13

bilqat wrote:using virtualbox , and i configured static IP Addres to my VM after configuring static IP Address ...
Sanity check:
* Do you have functional connectivity?

Code: Select all

ip -4 ad
ip ro
host mirror.centos.org
ip ro get 91.242.163.90
ping -c 2 mirror.centos.org
traceroute 91.242.163.90
* "static address" -- By what method?

Post Reply