Cannot find a valid baseurl for repo: base/7/x86_64
Cannot find a valid baseurl for repo: base/7/x86_64
i have installed centos 7 and it is working fine with oracle database, openvpn and apache-php . but one morning i found httpd service not working . also i cannot access remotely using ssh . when i going to install telnet it showing "Cannot find a valid baseurl for repo: base/7/x86_64" ....but oracle-database and openvpn working fine ...I don't know the reason..
Can anyone help to solve the problem ?
Can anyone help to solve the problem ?
Re: Cannot find a valid baseurl for repo: base/7/x86_64
See what happens with curl -v 'http://mirrorlist.centos.org/?repo=os&arch=x86_64&release=7'
Perhaps that will lead you to find the source of the problem.
Perhaps that will lead you to find the source of the problem.
Re: Cannot find a valid baseurl for repo: base/7/x86_64
-----avij wrote: ↑2018/07/03 06:34:50See what happens with curl -v 'http://mirrorlist.centos.org/?repo=os&a ... &release=7'
Perhaps that will lead you to find the source of the problem.
I cannot understand what i will do now ? pls help me
[root@myserver conf]# curl -v 'http://mirrorlist.centos.org/?repo=os&a ... &release=7'
* About to connect() to mirrorlist.centos.org port 80 (#0)
* Trying 67.219.148.138...
* Connected to mirrorlist.centos.org (67.219.148.138) port 80 (#0)
> GET /?repo=os&arch=x86_64&release=7 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: mirrorlist.centos.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 09 Jul 2018 10:07:51 GMT
< Server: PasteWSGIServer/0.5 Python/2.7.5
< Content-Length: 533
< Content-Type: text/plain; charset=UTF-8
<
http://del-repos.extreme-ix.org/centos/ ... os/x86_64/
http://centos.mirror.snu.edu.in/centos/ ... os/x86_64/
http://centos.excellmedia.net/7.5.1804/os/x86_64/
http://ftp.iitm.ac.in/centos/7.5.1804/os/x86_64/
http://mirror.vbctv.in/centos/7.5.1804/os/x86_64/
http://mirror.nbrc.ac.in/centos/7.5.1804/os/x86_64/
http://centos.mirror.net.in/centos/7.5.1804/os/x86_64/
http://centos.myfahim.com/centos/7.5.1804/os/x86_64/
http://mirror.dhakacom.com/centos/7.5.1804/os/x86_64/
http://mirror.xeonbd.com/centos/7.5.1804/os/x86_64/
* Connection #0 to host mirrorlist.centos.org left intact
Re: Cannot find a valid baseurl for repo: base/7/x86_64
OK, that looks good. Please show the full output of "yum update". There should be other errors shown before the "Cannot find a valid baseurl" message.
Additionally, are you using a proxy? Should you be using a proxy? If a proxy is involved or if you think it might be involved, see the proxy config in /etc/yum.conf
Additionally, are you using a proxy? Should you be using a proxy? If a proxy is involved or if you think it might be involved, see the proxy config in /etc/yum.conf
Re: Cannot find a valid baseurl for repo: base/7/x86_64
thanks for your replyavij wrote: ↑2018/07/09 10:28:29OK, that looks good. Please show the full output of "yum update". There should be other errors shown before the "Cannot find a valid baseurl" message.
Additionally, are you using a proxy? Should you be using a proxy? If a proxy is involved or if you think it might be involved, see the proxy config in /etc/yum.conf
i do not use proxy.....
here is yum update...
[root@myserver oracle]# yum update
Loaded plugins: fastestmirror, langpacks
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: base/$releasever/x86_64
Re: Cannot find a valid baseurl for repo: base/7/x86_64
Can you show us the contents of /etc/yum.repos.d/CentOS-Base.repo please.
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
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
Re: Cannot find a valid baseurl for repo: base/7/x86_64
-------------------
here is that...
[root@myserver oracle]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$ ... fra=$infra
#baseurl=http://mirror.centos.org/centos/$releas ... $basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Re: Cannot find a valid baseurl for repo: base/7/x86_64
And what is the output from rpm -q --qf '%{version}\n' centos-release and the content of /etc/yum.conf?
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
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
Re: Cannot find a valid baseurl for repo: base/7/x86_64
----
[root@myserver oracle]# rpm -q --qf '%{version}\n' centos-release and the content of /etc/yum.conf
package centos-release is not installed
package and is not installed
package the is not installed
package content is not installed
package of is not installed
package /etc/yum.conf is not installed