Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: fixit 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
-
what does the following show?
db yum_repositories show updates
-
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
-
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
-
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
-
The above step has probably already done this but..
rm /etc/yum.conf
expand-template /etc/yum.conf
-
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
-
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 .
-
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
-
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 cat /etc/yum.conf
?
-
I will have to check this tonight when i get home and il let you all know. thank you very much
-
[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
-
--snip--
Except for the 2 I added it looks the same as mine.
I would think that if /etc/yum.repos.d
is empty then yum update
would just work.
Maybe you have lost connection to the repositories?
http://mirror.contribs.org/smeserver/releases/7
[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]#
-
i can try clearing it out again. thx for your time.
-
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.........
-
i will try this right now. thx.
-
DNS kept coming up so I double checked my resolv.conf and removed an IP and added the DNS domain.
nameserver XXX.XXX.XXX.XXX
search DOMAIN.COM
search localdomain
now yum will update.