Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 15:23:07

Author Topic: Error: Cannot find a valid baseurl for repo: base  (Read 10727 times)

0 Members and 1 Guest are viewing this topic.

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Error: Cannot find a valid baseurl for repo: base
« on: 2014-04-18, 21:52:58 »
When running 'yum update' I get this error. I tried 'yum clean all' and 'yum clean metadata'.

Error: Cannot find a valid baseurl for repo: base

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Error: Cannot find a valid baseurl for repo: base
« Reply #1 on: 2014-04-18, 22:20:44 »
It's about Centos problem. All Kloxo-MR identify with prefix 'mratwork'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: Error: Cannot find a valid baseurl for repo: base
« Reply #2 on: 2014-04-18, 23:37:33 »
Did that error usually just mean a Centos mirror is down?

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: Error: Cannot find a valid baseurl for repo: base
« Reply #3 on: 2014-04-19, 01:58:17 »
Definitely not a Kloxo MR problem. It happened on another server without Kloxo installed after running yum clean all.  Oh well..will wait and see if it's a Centos mirrors problem.

Offline Joe

  • Valuable Member
  • *
  • Posts: 147
  • Karma: +2/-0
    • View Profile
Re: Error: Cannot find a valid baseurl for repo: base
« Reply #4 on: 2014-04-19, 02:44:15 »
Resolved by editing /etc/yum.repos.d/CentOS-Base.repo

Uncommented all lines with baseurl.

Offline postcd

  • Junior Member
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Error: Cannot find a valid baseurl for repo: base
« Reply #5 on: 2021-02-08, 15:24:31 »
I think this issue i fixed by renaming repo file:
cd /etc/yum.repos.d;mv CentOS-Base.repo CentOS-Base.repo_
vi CentOS-Base.repo
"a" or "i" key
paste:
Quote
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#released updates
[updates]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

(replace 6.10 by your version returned by "cat /etc/red*" command)
then "yum clean all;yum update"

then i have seen errors:
Quote
# yum update
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos6-archive&arch=i386&protocol=http error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.iuscommunity.org'"
Could not retrieve mirrorlist http://mirrors.iuscommunity.org/mirrorlist/?repo=ius-centos6&arch=i386&protocol=http error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.iuscommunity.org'"
 * mratwork-epel: ftp-stud.hs-esslingen.de
 * mratwork-release-neutral-noarch: rpms.potissima.com
 * mratwork-release-version-arch: rpms.potissima.com
 * mratwork-webtatic: uk.repo.webtatic.com
http://repo.varnish-cache.org/redhat/varnish-3.0/el6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repo.varnish-cache.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-varnish-3.0. Please verify its path and try again

What is the replacement mirrors repo for ius and varnish-cache?

In the meantime i have opened /etc/yum.repos.d/mratwork.repo and prefixed the "mirrorlist=" lines with IUS repo by "#" character disabling these And set the varnish repo from enabled 1 to 0 and "yum update" now works, but i would rather replace old mirrors by new one not to break future updates.

UPDATE: maybe i should use "archive" repo URLs from files at https://github.com/iusrepo/ius-release ?
« Last Edit: 2021-02-09, 18:13:38 by postcd »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.026 seconds with 18 queries.

web stats analysis