Koozali.org: home of the SME Server

YUM Update does not work - error

mrkenzo

YUM Update does not work - error
« on: January 15, 2007, 04:09:53 PM »
Hi!

I´m trying to run the updates on my server but get the folowing error and I don´t know what to do to get it fixed and get the latest updates installed.
Can someone please help me? How can I clear the yum so that I can get it to work and get the importat updates in the future. Are there problems with the dundog updates, and should there be a centos updates also? Have I messed up the update tool. And please comment freely on which updates one should use and not to use for a stable system.

Thanx
Tito

[root@e-smith2 ~]# yum clean all
==============================================================
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
Cleaning up Everything
0 headers removed
0 packages removed
6 metadata files removed
0 cache files removed
0 cache files removed
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@e-smith2 ~]# clear
[root@e-smith2 ~]# yum update
==============================================================
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 Update Process
Setting up repositories
dungogMembers             100% |=========================|  951 B    00:00
dungog                    100% |=========================|  951 B    00:00
smeaddons                 100% |=========================|  951 B    00:00
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.
================================================================

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
YUM Update does not work - error
« Reply #1 on: January 15, 2007, 04:40:39 PM »
without testing...
looks like your /home/e-smith/db/yum_repositories has bad values
then are expanded into your /etc/yum.conf
check by hand editing duplicate values from /etc/yum.conf

you need to fix /home/e-smith/db/yum_repositories
download the latest version of smeserver-yum from a mirror manually
rpm -Uvh --oldpackage smeserver-yum.version.number
[ if rpm -e doesn't cleanly uninstall ]

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
YUM Update does not work - error
« Reply #2 on: January 15, 2007, 04:42:27 PM »
note.
it's not a bug you've just manually entered dud db values

mrkenzo

YUM Update does not work - error
« Reply #3 on: January 15, 2007, 05:00:00 PM »
Thanx for that reply.
I´m very new to this system and commands to use. So very dumb question but how do I edit those files. What commandsto see the file lines and to erase any duplicate rows. Or can I download just new conf and repostory files?

Offline slords

  • *****
  • 235
  • +3/-0
YUM Update does not work - error
« Reply #4 on: January 15, 2007, 05:55:06 PM »
These messages mean that you have updated yum but not smeserver-yum.  If you have loaded that latest smeserver-yum then you have not issued the signal-event post-upgrade and reboot.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

mrkenzo

YUM Update does not work - error
« Reply #5 on: January 16, 2007, 04:18:14 PM »
No matter what I try to update yum and smeserver yum I get this respons. I dont know how to edit those yum.con and yum_repositories to get the list cleared of double inputs which seems to be the case if I understood correctly.
What to do??? I cant get any of the updates to work. Can I manually update the files with rpm -Uvh command from the ftp site?

Tito

[root@e-smith2 ~]# rpm -Uvh --oldpackage http://mirror.contribs.org/smeserver/releases/7/smeos/SRPMS/yum-2.4.3-1.c4.src.rpm
Retrieving http://mirror.contribs.org/smeserver/releases/7/smeos/SRPMS/yum-2.4.3-1.c4.src.rpm
   1:yum                    warning: user buildcentos does not exist - using root
warning: group buildcentos does not exist - using root
warning: user buildcentos does not exist - using root
warning: group buildcentos does not exist - using root
warning: user buildcentos does not exist - using root
warning: group buildcentos does not exist - using root
warning: user buildcentos does not exist - using root
warning: group buildcentos does not exist - using root
warning: user buildcentos does not exist - using root
warning: group buildcentos does not exist - using root
########################################### [100%]
[root@e-smith2 ~]#

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
YUM Update does not work - error
« Reply #6 on: January 16, 2007, 04:44:29 PM »
Did you already do:
Code: [Select]
signal-event post-upgrade
signal-event reboot

This might solve your issue. If not you could try to re-expand your /etc/yum.conf file on the SME Server shell using:
Code: [Select]
expand-template /etc/yum.conf
If that also does not resolve your problem the problem could be in the yum_repositories configuration database.
Code: [Select]
db yum_repositories show | more and look for duplicates, if they are there you could remove one of them form the yum_repositories database like this:
Code: [Select]
db delete yum_repositories dbentry
You could also try to upgrade with the following command which will only enable the repositories needed for upgrade to SME 7.1 (AFAIK):
Code: [Select]
yum update --disablerepo=* \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

mrkenzo

didnt help
« Reply #7 on: January 18, 2007, 05:33:26 PM »
Quote from: "cactus"
Did you already do:
Code: [Select]
signal-event post-upgrade
signal-event reboot

This might solve your issue. If not you could try to re-expand your /etc/yum.conf file on the SME Server shell using:
Code: [Select]
expand-template /etc/yum.conf
If that also does not resolve your problem the problem could be in the yum_repositories configuration database.
Code: [Select]
db yum_repositories show | more and look for duplicates, if they are there you could remove one of them form the yum_repositories database like this:
Code: [Select]
db delete yum_repositories dbentry
You could also try to upgrade with the following command which will only enable the repositories needed for upgrade to SME 7.1 (AFAIK):
Code: [Select]
yum update --disablerepo=* \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Thanx for these comments, tryed all but cant get it to work.
When the problem started the server was trying to update something but not all. After this the menu from the web tool shows not using -ftp instead of showing all the files that can be updated.
If I run the yum update command i get the following info.

[root@e-smith2 etc]# yum update
==============================================================
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 Update 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.
================================================================
[root@e-smith2 etc]#

I looked for the double infos from the yum_repositories but it only shows one of each.  Can there be another file that it is using where double inputs might be??? I don´t understand this. Even if I try to run the 7.1RC from cd that I just downloaded It won´t upgrade nothing more than some help file  or so. What commands could I use to force some other sort of update or can I update all the files on the mirror manually with some commands?

Can someone please help more?`

Offline kingjm

  • ***
  • 55
  • +0/-0
    • www.iking.ca
source rpm
« Reply #8 on: January 30, 2007, 06:07:03 AM »
I noticed in mrkenzo's earlier post that he was trying to upgrade yum with a source rpm from centos
Quote
http://mirror.contribs.org/smeserver/releases/7/smeos/SRPMS/yum-2.4.3-1.c4.src.rpm


try using this http://mirror.contribs.org/smeserver/releases/7/smeos/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm

This should be yum made for sme.

Offline Mangetout

  • **
  • 22
  • +0/-0
YUM Update does not work - error
« Reply #9 on: February 08, 2007, 01:29:06 PM »
I was having exactly this problem - it started when I installed some updates a few at a time (I was getting errors when I tried to install all available updates at once).  I think I just happened to select a block that included yum, but not smeserver-yum, or something like that.

Anyway, for me, it was resolved by installing smeserver-yum (which asked for yum-fastestmirror the first time I tried it, so I did
Step 1:
Code: [Select]
wget http://mirror.contribs.org/smeserver/releases/7/smeos/i386/CentOS/RPMS/yum-plugin-fastestmirror-0.2.4-3.c4.noarch.rpm

rpm -Uvh yum-plugin-fastestmirror-0.2.4-3.c4.noarch.rpm  


then

Code: [Select]
wget http://mirror.contribs.org/smeserver/releases/7/smeos/i386/CentOS/RPMS/smeserver-yum-1.2.0-25.el4.sme.noarch.rpm

rpm -Uvh -oldpackage smeserver-yum-1.2.0-25.el4.sme.noarch.rpm


then

Code: [Select]
signal-event post-upgrade

signal-event reboot


And it all seems to work OK now.