Koozali.org: home of the SME Server

yum error Cannot find a valid baseurl for repo: update

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
yum error Cannot find a valid baseurl for repo: update
« on: October 05, 2006, 08:11:21 AM »
/etc/cron.daily/0check4updates:

Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update




What would be the reason why I am getting this message when I do a yum upgrade

[root@server ~]# yum upgrade
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Repository base is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Upgrade Process
Setting up repositories
not using ftp, http, or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
================================================================
No new rpms were installed. No additional commands are required.
================================================================

How do I fix this problem

Russell
.........

Offline kruhm

  • *
  • 680
  • +0/-0
yum error Cannot find a valid baseurl for repo: update
« Reply #1 on: October 08, 2006, 02:22:26 PM »
what does the following show?

db yum_repositories show updates

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
yum error Cannot find a valid baseurl for repo: update
« Reply #2 on: October 08, 2006, 03:04:58 PM »
Quote
what does the following show?

db yum_repositories show updates


It shows

[root@server ~]# db yum_repositories show updates
updates=repository
    BaseURL=http://mirror.centos.org/centos/4/updates/$basearch
    EnableGroups=no
    GPGCheck=yes
    Name=CentOS - updates
    Visible=no
    status=disabled
.........

Offline raem

  • *
  • 3,972
  • +4/-0
yum error Cannot find a valid baseurl for repo: update
« Reply #3 on: October 08, 2006, 04:14:57 PM »
Fixit & kruhm

The location for updates appears to be correct but....

> Cannot find a valid baseurl for repo: update
> Error: Cannot find a valid baseurl for repo: update

Notice it says update not updates
Looks like some details are wrong

A quick fix (which may resolve all your issues) would be to delete
/home/e-smith/db/yum_repositories
then do
signal-event post-upgrade
reboot

This should reset the defaults
...

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
yum error Cannot find a valid baseurl for repo: update
« Reply #4 on: October 14, 2006, 04:28:00 AM »
Quote
A quick fix (which may resolve all your issues) would be to delete
/home/e-smith/db/yum_repositories
then do
signal-event post-upgrade
reboot


I tried the above method and I still have the same problem, do you have any other suggestions

Russell
.........

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
yum error Cannot find a valid baseurl for repo: update
« Reply #5 on: October 14, 2006, 05:12:20 AM »
The above step has probably already done this but..
Code: [Select]
rm /etc/yum.conf
expand-template /etc/yum.conf
Regards,
William

IF I give advise.. It's only if it was me....

Offline fixit

  • *
  • 216
  • +0/-0
    • http://www.fixitcomputers.com.au
yum error Cannot find a valid baseurl for repo: update
« Reply #6 on: October 14, 2006, 06:25:57 AM »
I just renamed some files in the /etc/yum.repos.d

CentOS-Base.repo  to CentOS-Base.repo.backup

CentOS-Media.repo to CentOS-Media.repo.backup

and also changed

/home/e-smith/db/yum_repositories to yum_repositories.backup

and then did a signal-event post-upgrade & reboot

I did a yum upgrade and I did not get an error message, I will try and test it now and see if it downloads anything

Thanks to all that replied

Russell
.........

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
yum error Cannot find a valid baseurl for repo: update
« Reply #7 on: October 14, 2006, 08:40:46 AM »
Quote from: "fixit"
I just renamed some files in the /etc/yum.repos.d


Thanks to all that replied

Russell


/etc/yum.repos.d is empty in SME land.

Additional repos get added to the yum_repositories db which then get expanded into yum.conf .
Regards,
William

IF I give advise.. It's only if it was me....

pen25

yum error Cannot find a valid baseurl for repo: update
« Reply #8 on: October 30, 2006, 07:44:45 AM »
not to hijack this thread but this was happening to me. i performed the above and it fixed the inital problem now i am getting the following when trying to perform the latest updates.


2006-10-30 00:33:55.880966500 Error: No Groups on which to run command
2006-10-30 00:33:55.986116500 yum grouplist updates status 256
2006-10-30 00:39:55.449886500 Error: No Groups on which to run command
2006-10-30 00:39:55.550009500 yum grouplist available status 256
2006-10-30 00:39:59.278113500 Error: No Groups on which to run command
2006-10-30 00:39:59.400964500 yum grouplist installed status 256
2006-10-30 00:40:04.247863500 Error: No Groups on which to run command
2006-10-30 00:40:04.353546500 yum grouplist updates status 256

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
yum error Cannot find a valid baseurl for repo: update
« Reply #9 on: October 30, 2006, 09:06:14 AM »
Quote from: "pen25"
not to hijack this thread but this was happening to me. i performed the above and it fixed the inital problem now i am getting the following when trying to perform the latest updates.


2006-10-30 00:33:55.880966500 Error: No Groups on which to run command
2006-10-30 00:33:55.986116500 yum grouplist updates status 256
2006-10-30 00:39:55.449886500 Error: No Groups on which to run command
2006-10-30 00:39:55.550009500 yum grouplist available status 256
2006-10-30 00:39:59.278113500 Error: No Groups on which to run command
2006-10-30 00:39:59.400964500 yum grouplist installed status 256
2006-10-30 00:40:04.247863500 Error: No Groups on which to run command
2006-10-30 00:40:04.353546500 yum grouplist updates status 256


What is the result of
Code: [Select]
cat /etc/yum.conf ?
Regards,
William

IF I give advise.. It's only if it was me....

pen25

yum error Cannot find a valid baseurl for repo: update
« Reply #10 on: October 30, 2006, 07:03:20 PM »
I will have to check this tonight when i get home and il let you all know. thank you very much

pen25

yum error Cannot find a valid baseurl for repo: update
« Reply #11 on: October 31, 2006, 03:12:02 AM »
[root@main ~]# cat /etc/yum.conf
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[main]
cachedir=/var/cache/yum
debuglevel=2
exactarch=1
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
logfile=/var/log/yum/yum.log
obsoletes=1
tolerant=1

[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=1
enablegroups=0

[base]
enabled=0
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0

[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=1
enablegroups=0

[contrib]
enabled=0
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=1
enablegroups=0

[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=1
enablegroups=0

[smeaddons]
enabled=1
name=SME Server - addons
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeaddons/$basearch
gpgcheck=1
enablegroups=1

[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=1
enablegroups=1

[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeos/$basearch
gpgcheck=1
enablegroups=1

[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/smetest/$basearch
gpgcheck=1
enablegroups=1

[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates/$basearch
gpgcheck=1
enablegroups=1

[smeupdates-testing]
enabled=0
name=SME Server - updates testing
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates-testing/$basearch
gpgcheck=1
enablegroups=1

[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=1
enablegroups=0

[updates]
enabled=0
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
yum error Cannot find a valid baseurl for repo: update
« Reply #12 on: October 31, 2006, 03:41:19 AM »
Quote from: "pen25"
--snip--

Except for the 2 I added it looks the same as mine.

I would think that if
Code: [Select]
/etc/yum.repos.d is empty then
Code: [Select]
yum update would just work.

Maybe you have lost connection to the repositories?
Code: [Select]
http://mirror.contribs.org/smeserver/releases/7

Code: [Select]
[root@c3 httpd.conf]# cat /etc/yum.conf
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[main]
cachedir=/var/cache/yum
debuglevel=2
exactarch=1
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
logfile=/var/log/yum/yum.log
obsoletes=1
tolerant=1

[addons]
enabled=0
name=CentOS - addons
baseurl=http://mirror.centos.org/centos/4/addons/$basearch
gpgcheck=1
enablegroups=0

[base]
enabled=0
name=CentOS - os
baseurl=http://mirror.centos.org/centos/4/os/$basearch
gpgcheck=1
enablegroups=0

[centosplus]
enabled=0
name=CentOS - centosplus
baseurl=http://mirror.centos.org/centos/4/centosplus/$basearch
gpgcheck=1
enablegroups=0

[contrib]
enabled=0
name=CentOS - contrib
baseurl=http://mirror.centos.org/centos/4/contrib/$basearch
gpgcheck=1
enablegroups=0

[dag]
enabled=0
name=Red Hat Enterprise  - RPMforge.net - dag
baseurl=http://apt.sw.be/redhat/el4/en/$basearch/dag
gpgcheck=1
enablegroups=1

[dries]
enabled=0
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS
gpgcheck=1
enablegroups=1

[extras]
enabled=0
name=CentOS - extras
baseurl=http://mirror.centos.org/centos/4/extras/$basearch
gpgcheck=1
enablegroups=0

[smeaddons]
enabled=1
name=SME Server - addons
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeaddons/$basearch
gpgcheck=1
enablegroups=1

[smedev]
enabled=0
name=SME Server - dev
baseurl=http://mirror.contribs.org/smeserver/releases/7/smedev/$basearch
gpgcheck=1
enablegroups=1

[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeos/$basearch
gpgcheck=1
enablegroups=1

[smetest]
enabled=0
name=SME Server - test
baseurl=http://mirror.contribs.org/smeserver/releases/7/smetest/$basearch
gpgcheck=1
enablegroups=1

[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates/$basearch
gpgcheck=1
enablegroups=1

[smeupdates-testing]
enabled=0
name=SME Server - updates testing
baseurl=http://mirror.contribs.org/smeserver/releases/7/smeupdates-testing/$basearch
gpgcheck=1
enablegroups=1

[testing]
enabled=0
name=CentOS - testing
baseurl=http://mirror.centos.org/centos/4/testing/$basearch
gpgcheck=1
enablegroups=0

[updates]
enabled=0
name=CentOS - updates
baseurl=http://mirror.centos.org/centos/4/updates/$basearch
gpgcheck=1
enablegroups=0


[root@c3 httpd.conf]#
Regards,
William

IF I give advise.. It's only if it was me....

pen25

yum error Cannot find a valid baseurl for repo: update
« Reply #13 on: October 31, 2006, 03:51:56 AM »
i can try clearing it out again. thx for your time.

Offline dexterh

  • *
  • 7
  • +0/-0
What I tried worked
« Reply #14 on: November 18, 2006, 05:38:15 AM »
I've been chasing this same problem on two boxes.  One an Intel, single processor, single drive, the second, a cheap Compaq with matched drives.  One loaded with the ....34ELsmp kernal instead of the correct ..34EL after a yum update (Intel).  The other (Compaq) read like this thread.  I've tried all the suggestions I could find from using an external dns to changing to the nluug repo's. (ibiblio.org - USA hasn't been working all that well for me just right now).

I finally thought I should just load some newer rpm's and do an rpm update.  For those not used to doing a command prompt update, here are the commands I used, including the wget's for pullling the rpm's from nluug's updates-testing (yeh... I'm taking a risk, but it's my home box and not a production server):

[root@home2 ~]# wget http://ftp.nluug.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeupdates-testing/i386/RPMS/yum-plugin-fastestmirror-0.2.4-3.c4.noarch.rpm

[root@home2 ~]# wget http://ftp.nluug.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeupdates-testing/i386/RPMS/smeserver-yum-1.2.0-15.noarch.rpm

[root@home2 ~]# wget http://ftp.nluug.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeupdates-testing/i386/RPMS/yum-2.4.3-1.c4.noarch.rpm

[root@home2 ~]# rpm -Uvh yum-plugin-fastestmirror-0.2.4-3.c4.noarch.rpm

[root@home2 ~]# rpm -Uvh smeserver-yum-1.2.0-15.noarch.rpm

[root@home2 ~]# rpm -Uvh yum-2.4.3-1.c4.noarch.rpm

[root@home2 ~]# signal-event post-upgrade

[root@home2 ~]# signal-event reboot

If rpm whines about wanting a missing file, change the order.  I only used these 2 and it took right off.

Hope this helps some of you.........