Koozali.org: home of the SME Server

Error Downloading Packages when updating with yum

Offline rob.jongejan

  • 7
  • +0/-0
Error Downloading Packages when updating with yum
« on: December 22, 2007, 08:05:43 AM »
Hey, newby here.
When I tried to update my SME-7.1 distribution with the software installer , after the loading I see some errors :

http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/smeos/i386/SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm: [Errno -1] Package does not match checksum
Trying other mirror.
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeos/i386/SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm: [Errno 9] Requested Range Not Satisfiable
Trying other mirror.
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeos/i386/SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm: [Errno 9] Requested Range Not Satisfiable
Trying other mirror.
ftp://ftp.planetmirror.com/pub/smeserver/releases/7/smeos/i386/SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm: [Errno 4] IOError: [Errno ftp error] 550 7: No such file or directory
Trying other mirror.
Error Downloading Packages:
  yum - 2.4.3-4.el4.centos.noarch: failure: SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm from smeos: [Errno 256] No more mirrors to try.
   0.43-1.el4.rf    smeupdates         44 k


But the report status still says 'OK' and when I push the 'Reconfigure' button it does something and reboots the system. After that I still have the complete list of updats and I can keep going install them for days and days without getting clean.

I tried to update manually with the yum update command, same result.
When I tried the commands :
yum clean all
yum update smeserver-yum yum sqlite python-sqlite
I got the messages 'Error Downloading Packages' on
yum-2.4.3-4.el4.centos.noarch : failure : SME/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm   : no more mirrors.   :???:

What to do now? I would like to update my system, but nothing seems to work..... :?


Offline raem

  • *
  • 3,972
  • +4/-0
Re: Error Downloading Packages when updating with yum
« Reply #1 on: December 22, 2007, 10:32:34 AM »
http://wiki.contribs.org/SME_Server:Documentation:FAQ

See section 1.2.3

Read all the FAQ as it may answer other questions for you.
...

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #2 on: December 22, 2007, 12:24:57 PM »
Hmmmmm Tried and seems to go, but when I come to the yum update it complains wit message :
Error Downloading Packages:

  postgresql-libs - 7.4.17-1.RHEL4.1.i386: failure: SME/RPMS/postgresql-libs-7.4.17-1.RHEL4.1.i386.rpm from smeos: [Errno 256] No more mirrors to try.
================================================================
No new rpms were installed. No additional commands are required.
================================================================

So here I got stuck.... Don't know how to go further, even when I read the whole manual, because as I understand it needs the rpm mentioned to go on....   :???:


Offline mmccarn

  • *
  • 2,628
  • +10/-0
Re: Error Downloading Packages when updating with yum
« Reply #3 on: December 22, 2007, 03:18:18 PM »
Check out:
http://wiki.contribs.org/Updating_to_SME_7.2#Ensuring_the_correct_yum_repository_configuration
http://wiki.contribs.org/Updating_to_SME_7.2#Yum_Update
http://wiki.contribs.org/Updating_to_SME_7.2#Yum_Problems

Also, SME does not include postgresql, so you've installed something extra, which may make updates trickier.  Certainly you won't get postgresql updates if you haven't re-configured your yum repositories to the "new-since-SME-7.1.1" defaults (see the first link above).

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #4 on: December 22, 2007, 04:56:23 PM »
Ok I understand that, but what I don't understand is that I downloaded a distribution of SME-7 from contribs wich I installed by default. No config with postgress or other database besides the default MySQL and no configuration other than the default and still in an upgrade get updates of postgress.......  Why???   :-?


After I followed up the instructions of : AddingSoftware#Restoring_Default_Yum_Repositories and did yum update still the same error occured....
« Last Edit: December 22, 2007, 05:06:13 PM by rob.jongejan »

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Re: Error Downloading Packages when updating with yum
« Reply #5 on: December 22, 2007, 06:36:16 PM »
Are you sure you have never installed any contribs? (you can run /sbin/e-smith/audittools/newrpms to find out)

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Error Downloading Packages when updating with yum
« Reply #6 on: December 22, 2007, 11:31:26 PM »
postgresql-libs is part of the base, one of it's libs is required by dovecot.  What version is currently installed? To find out type:

rpm -qa  postgresql-libs
rpm -qa dovecot



« Last Edit: December 22, 2007, 11:34:01 PM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #7 on: December 23, 2007, 02:39:51 AM »
Well... both queries says :

[root@icta-web ~]# rpm -qa postgresql-libs
postgresql-libs-7.4.13-2.RHEL4.1
[root@icta-web ~]# rpm -qa dovecot
dovecot-0.99.14-1.2.el4.sme
[root@icta-web ~]#

And the distribution is pure SME-7.1 (as I assume because I download it from contribs....  :???: )

and the newrpms says :
[root@icta-web ~]# /sbin/e-smith/audittools/newrpms
-bash: /sbin/e-smith/audittools/newrpms: No such file or directory
[root@icta-web ~]#  :???: :???:

« Last Edit: December 23, 2007, 02:42:19 AM by rob.jongejan »

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Error Downloading Packages when updating with yum
« Reply #8 on: December 23, 2007, 04:23:57 AM »
You may have a half updated system so let's start over from the beginning...

-Have you managed to get any packages updated at all?

-What do these show?

rpm -qa *yum*
rpm -qa *sqlite*
rpm -qa dbus*
rpm -qa smeserver-support
In life, you must either "Push, Pull or Get out of the way!"

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #9 on: December 23, 2007, 10:08:00 AM »
These display the following :

[root@icta-web ~]# rpm -qa *yum*
yum-plugin-fastestmirror-0.2.4-3.c4
yum-metadata-parser-1.0-8.el4.centos
smeserver-yum-1.2.0-37.el4.sme
yum-2.4.3-4.el4.centos

[root@icta-web ~]# rpm -qa *sqlite*
python-sqlite-1.1.7-1.2.1
sqlite-3.3.6-2

[root@icta-web ~]# rpm -qa dbus*
dbus-python-0.22-12.EL.9
dbus-glib-0.22-12.EL.9
dbus-0.22-12.EL.9

[root@icta-web ~]# rpm -qa smeserver-support
smeserver-support-1.6.0-40.el4.sme

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Error Downloading Packages when updating with yum
« Reply #10 on: December 23, 2007, 07:05:46 PM »
These display the following :

[root@icta-web ~]# rpm -qa *yum*
yum-plugin-fastestmirror-0.2.4-3.c4
yum-metadata-parser-1.0-8.el4.centos
smeserver-yum-1.2.0-37.el4.sme
yum-2.4.3-4.el4.centos

[root@icta-web ~]# rpm -qa *sqlite*
python-sqlite-1.1.7-1.2.1
sqlite-3.3.6-2

[root@icta-web ~]# rpm -qa dbus*
dbus-python-0.22-12.EL.9
dbus-glib-0.22-12.EL.9
dbus-0.22-12.EL.9

[root@icta-web ~]# rpm -qa smeserver-support
smeserver-support-1.6.0-40.el4.sme

Everything looks correct except:

yum-metadata-parser-1.0-8.el4.centos   It should be:
yum-metadata-parser-1.1.0-2.el4.centos

You need to get all of these packages correct so try to update that package by itself:

yum clean all
yum update yum-metadata-parser

If it works then "signal-event post-upgrade, signal-event reboot" If it doesn't then you will have to download and install the package using "rpm".

Once you get yum-metadata-parser updated, then you need to reset the yum repos as follows:

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.conf
signal-event post-upgrade; signal-event reboot

Then try again

yum clean all
yum update


If any of the steps above do not work, DON'T CONTINUE.  Stop there, and come back and post everything that is displayed on you console.
In life, you must either "Push, Pull or Get out of the way!"

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #11 on: December 23, 2007, 08:41:28 PM »
Everything looks correct except:

yum-metadata-parser-1.0-8.el4.centos   It should be:
yum-metadata-parser-1.1.0-2.el4.centos

You need to get all of these packages correct so try to update that package by itself:

yum clean all
yum update yum-metadata-parser

If it works then "signal-event post-upgrade, signal-event reboot" If it doesn't then you will have to download and install the package using "rpm".

Once you get yum-metadata-parser updated, then you need to reset the yum repos as follows:

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.conf
signal-event post-upgrade; signal-event reboot

Then try again

yum clean all
yum update


If any of the steps above do not work, DON'T CONTINUE.  Stop there, and come back and post everything that is displayed on you console.

I could not install the yum-metadata-parser with yum so I downloaded the rpm and installed it using rpm.
Then I reset the yum repos using the above commands and finally I tried to yum update with this result :
(list was to long to display complete...)

(292/307): gzip-1.3.3-17. 100% |=========================|  88 kB    00:00
(293/307): perl-RPM2-0.67 100% |=========================|  65 kB    00:00
(294/307): ftp-0.17-23.EL 100% |=========================|  48 kB    00:00
(295/307): perl-Archive-T 100% |=========================|  54 kB    00:00
(296/307): libselinux-1.1 100% |=========================|  55 kB    00:00
(297/307): smeserver-qpsm 100% |=========================|  98 kB    00:00
(298/307): openssh-server 100% |=========================| 211 kB    00:00
(299/307): libacl-2.2.23- 100% |=========================|  16 kB    00:00
(300/307): sed-4.1.2-6.el 100% |=========================| 167 kB    00:00
(301/307): elfutils-0.97. 100% |=========================| 136 kB    00:00
(302/307): samba-client-3 100% |=========================| 4.5 MB    00:01
(303/307): perl-Carp-Asse 100% |=========================|  18 kB    00:00
(304/307): oidentd-2.0.8- 100% |=========================|  60 kB    00:00
(305/307): db4-4.2.52-7.3 100% |=========================| 1.5 MB    00:00
(306/307): dstat-0.6.6-1. 100% |=========================|  67 kB    00:00
(307/307): spamassassin-3 100% |=========================| 1.0 MB    00:00


Error Downloading Packages:
  postgresql-libs - 7.4.17-1.RHEL4.1.i386: failure: SME/RPMS/postgresql-libs-7.4.17-1.RHEL4.1.i386.rpm from smeos: [Errno 256] No more mirrors to try.
================================================================
No new rpms were installed. No additional commands are required.
================================================================

When I try to see wich yum rpm is installed using rpm -qa *yum* I get nothing in return...
« Last Edit: December 23, 2007, 08:43:35 PM by rob.jongejan »

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Error Downloading Packages when updating with yum
« Reply #12 on: December 23, 2007, 09:25:57 PM »
Quote
When I try to see wich yum rpm is installed using rpm -qa *yum* I get nothing in return...
For some reason rpm -qa doesn't work correctly under certain directories so change to the root directory and try again:

cd /
rpm -qa <packagename>

Quote
Error Downloading Packages:
  postgresql-libs - 7.4.17-1.RHEL4.1.i386: failure: SME/RPMS/postgresql-libs-7.4.17-1.RHEL4.1.i386.rpm from smeos: [Errno 256] No more mirrors to try.
It looks like one of the previous update attempt failed part way through and you will probably have to do this manually to get your system all updated. 
This file seems to be the one currently giving you problems.  Try downloading it locally and using the local install option:

cd /tmp
wget http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeos/i386/SME/RPMS/postgresql-libs-7.4.17-1.RHEL4.1.i386.rpm
yum localinstall postgresql-libs-7.4.17-1.RHEL4.1.i386.rpm

That will "probably" install multiple packages.  Then do the post-upgrade/reboot and try "yum clean all/yum update" again.

You may have to do "localinstall" several time with several files until you can get the entire update to work.

NOTE: Another problem that has occurred (to me anyway) in the past is that your server is trying to use proxy cached data and the cached data is old and doesn't work.  I'm pretty sure this proxy issue has been fixed but may exist in your machine because it's not really clear what version you have.  Your server seems to be stuck somewhere between 7.1 and 7.2.  You should be able to get it up to 7.2 and shouldn't have this problem again.

NOTE2: Another option you may have to do is to download the 7.2 ISO and upgrade the server with that.  This might me a less time consuming approach :-)
In life, you must either "Push, Pull or Get out of the way!"

Offline rob.jongejan

  • 7
  • +0/-0
Re: Error Downloading Packages when updating with yum
« Reply #13 on: December 24, 2007, 08:03:22 PM »
Filnally I succeeded. After manually install of the postgress rpm I could run yum with update parameter and it did work!!!


Thanks a lot for your support. Great job!!
B.T.W.  It did not take more time than installing a upgrade..... :-P