yum upgrad problems

General discussion Forum. All YDL related question which are not Install or Beginner questions.

yum upgrad problems

Postby kamika » 04 Aug 2004, 23:39

I had some problems with yum upgrad.

Freezing downloads, etc.

I picked up, that rebuilding the database helps.
This was on the mailinglist

So do a

rpm --rebuilddb

after that yum upgrade worked fine.
at least for me.

greets kamika :P
User avatar
kamika
Site Admin
Site Admin
 
Posts: 234
Joined: 22 Jun 2004, 09:13
Location: Saarbruecken, Germany

I broke yum..but just a little

Postby ermanox » 12 Aug 2004, 09:40

Ok, thinking that some strange errors I was getting on basic yum usage might be solved by giving it the ole "rpm --rebuilddb" command. Well now I get this:

Gathering package information from servers
Getting headers from: Yellow Dog Linux 3.0 base
Getting headers from: Yellow Dog Linux 3.0 updates
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 8
error: cannot open Packages index using db3 - Invalid argument (22)
Traceback (most recent call last):
File "/usr/bin/yum", line 44, in ?
yummain.main(sys.argv[1:])
File "yummain.py", line 145, in main
File "clientStuff.py", line 146, in rpmdbNevralLoad
File "clientStuff.py", line 139, in openrpmdb
NameError: global name 'RpmError' is not defined

yum I am guessing is working fine but the rpm bits that work with yum are what I messed up. Any ideas how I can fix this??? "apt-get remove rpm" ( to reinstall it) looks like it will really mess things up even worse..
ermanox
ydl newbie
ydl newbie
 
Posts: 2
Joined: 05 Aug 2004, 05:12
Location: San Francisco CA

What are your settings?

Postby FriedDylan » 23 Aug 2004, 04:13

I am curious as to what your FTP or HTTP servers are set for in the YUM config file.. I was having no end of troubles using YUM or APT-GET until I altered the hosts of those update/upgrade sources. Have you tried that yet?
FriedDylan
 

Postby kamika » 23 Aug 2004, 15:08

mine are pretty basic at the moment

Code: Select all
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest

[base]
name=Yellow Dog Linux 3.0 base
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.main/


[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.updates/

[updates301]
name=Yellow Dog Linux 3.0.1 updates
baseurl=ftp://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0.1/update/

[moreupdates]
name=mol updates
baseurl=http://ydl.osuosl.org/yum/3.0.1/update/


which ones do you have.

greets kamika
User avatar
kamika
Site Admin
Site Admin
 
Posts: 234
Joined: 22 Jun 2004, 09:13
Location: Saarbruecken, Germany

same pb here

Postby chevy » 03 Sep 2004, 20:56

kamika wrote:mine are pretty basic at the moment

Code: Select all
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest

[base]
name=Yellow Dog Linux 3.0 base
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.main/


[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.updates/

[updates301]
name=Yellow Dog Linux 3.0.1 updates
baseurl=ftp://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0.1/update/

[moreupdates]
name=mol updates
baseurl=http://ydl.osuosl.org/yum/3.0.1/update/


which ones do you have.

greets kamika


my apt-get get lost in file size problems !
chevy
 

Postby chevy » 03 Sep 2004, 20:59

Here are the messages:
Code: Select all
[root@clientxxx]# apt-get update
Get:1 http://ftp.yellowdoglinux.com apt/3.0 release [1114B]
Fetched 1114B in 1s (865B/s)
Hit http://ftp.yellowdoglinux.com apt/3.0/main pkglist
Hit http://ftp.yellowdoglinux.com apt/3.0/main release
Hit http://ftp.yellowdoglinux.com apt/3.0/main srclist
Get:1 http://ftp.yellowdoglinux.com apt/3.0/update pkglist [230kB]
Hit http://ftp.yellowdoglinux.com apt/3.0/update release
Get:2 http://ftp.yellowdoglinux.com apt/3.0/update srclist [18.1kB]
Fetched 248kB in 10s (22.7kB/s)
Failed to fetch http://ftp.yellowdoglinux.com/pub/yellowdog/apt/3.0/base/pkglist.update  Size mismatch
Failed to fetch http://ftp.yellowdoglinux.com/pub/yellowdog/apt/3.0/base/srclist.update  Size mismatch
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
[root@clientxxx]#
chevy
 

Postby DJ_Max » 04 Sep 2004, 01:52

chevy wrote:Here are the messages:
Code: Select all
[root@clientxxx]# apt-get update
Get:1 http://ftp.yellowdoglinux.com apt/3.0 release [1114B]
Fetched 1114B in 1s (865B/s)
Hit http://ftp.yellowdoglinux.com apt/3.0/main pkglist
Hit http://ftp.yellowdoglinux.com apt/3.0/main release
Hit http://ftp.yellowdoglinux.com apt/3.0/main srclist
Get:1 http://ftp.yellowdoglinux.com apt/3.0/update pkglist [230kB]
Hit http://ftp.yellowdoglinux.com apt/3.0/update release
Get:2 http://ftp.yellowdoglinux.com apt/3.0/update srclist [18.1kB]
Fetched 248kB in 10s (22.7kB/s)
Failed to fetch http://ftp.yellowdoglinux.com/pub/yellowdog/apt/3.0/base/pkglist.update  Size mismatch
Failed to fetch http://ftp.yellowdoglinux.com/pub/yellowdog/apt/3.0/base/srclist.update  Size mismatch
Reading Package Lists... Done
Building Dependency Tree... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
[root@clientxxx]#


Mines does the samething, in apt-get. But this thread is referring to yum.
PHP, MySQL & PostgreSQL programmer. || daejuan@gmail.com

iMac G3 400MHZ
256Mb SDRAM
10GB ATA HD
ATI Rage 128 Pro
OS 10.1.5 & Debian 3.0r4
DJ_Max
ydl newbie
ydl newbie
 
Posts: 15
Joined: 27 Aug 2004, 21:08
Location: Chicago, IL USA

Postby Guest » 04 Sep 2004, 13:04

yum is now ok for me. But it took hours (with lot of disconnects) to get all the headers.
Guest
 

Postby vmnrao » 06 Sep 2004, 23:48

FriedDylan and Kamika- how did you resolve your yum update problems? Please let the rest of us in on what worked for you!
vmnrao
ydl newbie
ydl newbie
 
Posts: 4
Joined: 28 Aug 2004, 20:48

Postby kamika » 08 Sep 2004, 23:45

an additional rebuild of the database might help

Code: Select all
rpm --rebuilddb
User avatar
kamika
Site Admin
Site Admin
 
Posts: 234
Joined: 22 Jun 2004, 09:13
Location: Saarbruecken, Germany

Questions about YUM

Postby Wappendorf » 20 Sep 2004, 15:01

kamika wrote:mine are pretty basic at the moment
Code: Select all
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest

[base]
name=Yellow Dog Linux 3.0 base
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.main/

[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.updates/

[updates301]
name=Yellow Dog Linux 3.0.1 updates
baseurl=ftp://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0.1/update/

[moreupdates]
name=mol updates
baseurl=http://ydl.osuosl.org/yum/3.0.1/update/


Just a thought...

I just finished a fulle install of YDL 3.0.1 and my '/etc/yum.conf' file doesn't contain the section "[updates301]" mentioned above.

Where on YellowDog site can i find the 'how-to' telling me that i should or not add this section to my config file before running 'yum update' ?

Also will it be possible to 'yum upgrade' my freshly installed ydl 3.0.1 to ydl 4 when it will be available ?
Wappendorf
 

Postby trash » 20 Sep 2004, 17:40

I had some funny problems with yum also, then i pointed it to freshrpms and did a yum update yum, it installed yum 2.0.7 and a new yum.conf(.rpmnew which i just copied to my existing yum.conf file).

# $Id: yum-yd.conf 1563 2004-07-15 21:11:23Z dude $

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=yellowdog-release
tolerant=1
exactarch=1

[os]
name=Yellow Dog Linux $releasever - $basearch - os
baseurl=http://ayo.freshrpms.net/yellowdog/$releasever/$basearch/os
gpgcheck=1

[updates]
name=Yellow Dog Linux $releasever - $basearch - updates
baseurl=http://ayo.freshrpms.net/yellowdog/$releasever/$basearch/updates
gpgcheck=1

[freshrpms]
name=Yellow Dog Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/yellowdog/$releasever/$basearch/freshrpms
gpgcheck=1

#[ruffpack]
#name=Yellow Dog Linux $releasever - $basearch - ruffpack
#baseurl=http://ayo.freshrpms.net/yellowdog/$releasever/$basearch/ruffpack
6100,g3,g4
trash
ydl beginner
ydl beginner
 
Posts: 35
Joined: 11 Aug 2004, 19:49

Postby Wappendorf » 20 Sep 2004, 20:02

better and better... :(

Code: Select all
[mc@sirius ~]$ sudo rpm --rebuilddb
Password:
[mc@sirius ~]$ sudo yum list updates
Password:
Gathering package information from servers
Getting headers from: Yellow Dog Linux 3.0 base
Getting headers from: Yellow Dog Linux 3.0 updates
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 8
error: cannot open Packages index using db3 - Invalid argument (22)
Traceback (most recent call last):
  File "/usr/bin/yum", line 44, in ?
    yummain.main(sys.argv[1:])
  File "yummain.py", line 145, in main
  File "clientStuff.py", line 146, in rpmdbNevralLoad
  File "clientStuff.py", line 139, in openrpmdb
NameError: global name 'RpmError' is not defined
[mc@sirius ~]$ sudo yum list updates

[mc@sirius ~]$ sudo yum update yum
Gathering package information from servers
Getting headers from: Yellow Dog Linux 3.0 base
Getting headers from: Yellow Dog Linux 3.0 updates
rpmdb: /var/lib/rpm/Packages: unsupported hash version: 8
error: cannot open Packages index using db3 - Invalid argument (22)
Traceback (most recent call last):
  File "/usr/bin/yum", line 44, in ?
    yummain.main(sys.argv[1:])
  File "yummain.py", line 145, in main
  File "clientStuff.py", line 146, in rpmdbNevralLoad
  File "clientStuff.py", line 139, in openrpmdb
NameError: global name 'RpmError' is not defined
Wappendorf
 

How I got rid of yum problems on YDL 3.0(.1)

Postby Wappendorf » 21 Sep 2004, 01:22

How I got rid of yum problems on YDL 3.0(.1)

downloaded http://ayo.freshrpms.net/yellowdog/3.0/ ... noarch.rpm
then reinstalled yum with
[~]$ sudo rpm -Uvh --replacepkgs '~/yum-2.0.7-3.0.yd.fr.noarch.rpm'

I got a warning about a new conf file, so i just replaced the old yum.conf with the new one
[~]$ sudo rm /etc/yum.conf
[~]$ sudo mv /etc/yum.conf.rpmnew /etc/yum.conf
[~]$ sudo yum clean
[~]$ sudo yum list updates

Now I can really apreciate this great tool !

That's all folks !
Wappendorf
ydl newbie
ydl newbie
 
Posts: 7
Joined: 20 Sep 2004, 22:26

Thanks

Postby Guest » 17 Oct 2004, 05:34

Thanks for posting all this stuff -- very useful.
Guest
 


Return to General

Who is online

Users browsing this forum: No registered users and 42 guests

cron