PDA

View Full Version : Yum problems



Darkfalcon
29th October 2007, 06:51 AM
I am having some problems with yum.

I am using fedora core 7.

All that follows is using the superuser (su command then all this stuff)

When i try to run "software updater" (aka package updater or pup) i get an error message: "unable to retrieve software information" with "none" in the details section.

when i try to run "yum update" i receive this:


Gathering header information file(s) from server(s)
Server: Red Hat Linux 7 - i386 - Base
Error - /var/cache/yum/base/header.info cannot be found
Please ask your sysadmin to update the headers on this system.

When i try to reinstall yum, using the command "rpm -ivh home/Andrew/Desktop/yum*" i get this:


ERROR CODES IN FOLLOWING REPLY


Sorry about that big thing but i thought it would be more helpful to have the whole thing.

Can anyone help me with this?

Darkfalcon
29th October 2007, 06:54 AM
This is the error code that goes in the place of the big message in beginning of thread:


Preparing... ########################################### [100%]
file /usr/lib/python2.5/site-packages/rpmUtils/__init__.pyc from install of yum-3.2.7-1.fc7 conflicts with file from package yum-3.2.0-1.fc7
file /usr/lib/python2.5/site-packages/rpmUtils/__init__.pyo from install of yum-3.2.7-1.fc7 conflicts with file from package yum-3.2.0-1.fc7
file /usr/lib/python2.5/site-packages/rpmUtils/arch.py from install of yum-3.2.7-1.fc7 conflicts with file from package yum-3.2.0-1.fc7
file /usr/lib/python2.5/site-packages/rpmUtils/arch.pyc from install of yum-3.2.7-1.fc7 conflicts with file from package yum-3.2.0-1.fc7
file /usr/lib/python2.5/site-packages/rpmUtils/arch.pyo from install of yum-3.2.7-1.fc7 conflicts with file from package yum-3.2.0-1.fc7


There are a lot more similar ones (over 10000 characters long) but i could not fit them in one post, they refer to other files and folders but are the same error message.

Hlingler
29th October 2007, 07:05 AM
Hello:

I have seen a lot of error messages lately WRT yum/rpm/yumex etc. Do you have the fedora-testing repo(s) enabled? It may be that some other package(s) are needed to make the update work right. In any case, it usually helps to run "yum clean all" first, then retry.

Regards,
Vince

Darkfalcon
29th October 2007, 07:35 AM
Cant figure out how to fix missing stuff, i tried to reinstall yum but my rpm command does not work (see above)

Hlingler
29th October 2007, 08:08 AM
Cant figure out how to fix missing stuff, i tried to reinstall yum but my rpm command does not work (see above)You could try to remove the existing yum package first: rpm -ev yum; then re-try the command: rpm -ivh home/Andrew/Desktop/yum*. Note that this could be dangerous: if both yum and rpm are borked, I don't know how you can recover, as they are the primary software installation/removal tools (yum depends on rpm), so whatever you do, don't remove rpm (I think that it won't let you, but...). If you get complaints about missing dependencies, you may need to manually fetch them, too. If that latest version of yum fails to install, try fetching and installing a previous version.

Also, when both rpm and yum are working correctly, disable the fedora-testing repo, clean all, and re-check updates - you don't necessarily need (or want) the latest version of yum....

V

leigh123linux
29th October 2007, 08:14 AM
Cant figure out how to fix missing stuff, i tried to reinstall yum but my rpm command does not work (see above)

You got this error because this command is wrong :rolleyes: , you where trying to install yum when it was already installed when you should have tried upgrading it instead


su
rpm -Uvh --replacepkgs --replacefiles home/Andrew/Desktop/yum*

Darkfalcon
29th October 2007, 09:18 AM
I tried that, got a failed dependencies error:

Failed dependencies:
yum = 3.2.0-1.fc7 is needed by (installed) yum-updatesd-3.2.0-1.fc7.noarch

Darkfalcon
29th October 2007, 09:43 AM
I tried reinstalling yum using a tar.gz and not when i run yum update i get this:

Traceback (most recent call last):
File "/usr/bin/yum", line 28, in <module>
import yummain
File "/usr/share/yum-cli/yummain.py", line 29, in <module>
import cli
File "/usr/share/yum-cli/cli.py", line 27, in <module>
import output
File "/usr/share/yum-cli/output.py", line 31, in <module>
from rpmUtils.miscutils import checkSignals
ImportError: cannot import name checkSignals

leigh123linux
29th October 2007, 10:19 AM
I tried reinstalling yum using a tar.gz and not when i run yum update i get this:

Traceback (most recent call last):
File "/usr/bin/yum", line 28, in <module>
import yummain
File "/usr/share/yum-cli/yummain.py", line 29, in <module>
import cli
File "/usr/share/yum-cli/cli.py", line 27, in <module>
import output
File "/usr/share/yum-cli/output.py", line 31, in <module>
from rpmUtils.miscutils import checkSignals
ImportError: cannot import name checkSignals

yum-updatesd can be removed as it is not needed


su
rpm -e yum-updatesd
rpm -Uvh --replacepkgs --replacefiles home/Andrew/Desktop/yum*

Darkfalcon
29th October 2007, 10:38 AM
yum-updatesd can be removed as it is not needed


su
rpm -e yum-updatesd
rpm -Uvh --replacepkgs --replacefiles home/Andrew/Desktop/yum*

I did this and it seems to be working, i ran yum update and its coming up with a series of progress bars so i assume its working. if it works ill say so but thanks so much for your help guys, now i see why all me freinds recommended i try linux, the community is great.

Darkfalcon
29th October 2007, 10:43 AM
ohk it didnt work, i got an error partway through and pirut and pup dont start, they crash with "unhandled exceptions"

this is what i did and what came up:



[root@localhost Desktop]# rpm -e yum-updatesd
[root@localhost Desktop]# rpm -Uvh --replacepkgs --replacefiles /home/Andrew/Desktop/yum-3.2.7-1.fc7.noarch.rpm
Preparing... ########################################### [100%]
1:yum ########################################### [100%]
[root@localhost Desktop]# yum update
Repository updates is listed more than once in the configuration
updates-source 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 467 kB 00:01
updates-testing 100% |=========================| 2.3 kB 00:00
primary.sqlite.bz2 100% |=========================| 141 kB 00:00
livna 100% |=========================| 2.1 kB 00:00
updates-testing-source 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 39 kB 00:00
fedora 100% |=========================| 2.1 kB 00:00
development-source 100% |=========================| 1.9 kB 00:00
primary.sqlite.bz2 100% |=========================| 1.5 MB 00:06
development 100% |=========================| 2.1 kB 00:00
primary.sqlite.bz2 100% |=========================| 5.3 MB 01:45
updates-debuginfo 100% |=========================| 1.9 kB 00:00
primary.sqlite.bz2 100% |=========================| 416 kB 00:02
fedora-debuginfo 100% |=========================| 1.9 kB 00:00
primary.sqlite.bz2 100% |=========================| 849 kB 00:02
updates-testing-debuginfo 100% |=========================| 1.9 kB 00:00
primary.sqlite.bz2 100% |=========================| 42 kB 00:00
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/7/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Content-Length: 345
Date: Mon, 29 Oct 2007 08:39:56 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16

Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

leigh123linux
29th October 2007, 10:48 AM
Yum is working ( this is a repo problem )

Ok you don't need all these repos enabled ( this is the problem )

disable all these repos

updates-source , updates-testing , development-source , updates-debuginfo , fedora-debuginfo & updates-testing-debuginfo

leigh123linux
29th October 2007, 10:53 AM
Yum is working ( this is a repo problem )

Ok you don't need all these repos enabled ( this is the problem )

disable all these repos

updates-source , updates-testing , development-source , updates-debuginfo , fedora-debuginfo & updates-testing-debuginfo


su
rpm -e --nodeps fedora-release
rm -rf /etc/yum.repos.d/*
wget http://ftp.stw-bonn.de/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-7-3.noarch.rpm
rpm -i fedora-release-7-3.noarch.rpm

Darkfalcon
29th October 2007, 10:57 AM
I tried your commands, i get a similar error still (when i run yum update):

Repository updates is listed more than once in the configuration
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/7/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Content-Length: 345
Date: Mon, 29 Oct 2007 09:02:23 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16

Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

leigh123linux
29th October 2007, 11:03 AM
You will also need to reinstall the livna repo

su
wget http://rpm.livna.org/livna-release-7.rpm
rpm -Uvh --replacepkgs --replacefiles livna-release-7.rpm

leigh123linux
29th October 2007, 11:06 AM
I tried your commands, i get a similar error still (when i run yum update):

Repository updates is listed more than once in the configuration
http://mirror.dulug.duke.edu/pub/yum-repository/redhat/7/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Content-Length: 345
Date: Mon, 29 Oct 2007 09:02:23 GMT
Accept-Ranges: bytes
Content-Type: text/html
Server: lighttpd/1.3.16

Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


Try

su
yum clean all

Then post the output from this

yum repolist

Darkfalcon
29th October 2007, 11:10 AM
yum repolist produced this: (after updating livna repo and running yum clean all)

[root@localhost Andrew]# yum repolist
Repository updates is listed more than once in the configuration
repo id repo name status
base Red Hat Linux $releasever - $basearch - enabled
fedora Fedora 7 - i386 enabled
livna Livna for Fedora Core 7 - i386 - Base enabled
updates Red Hat Linux $releasever - Updates enabled

leigh123linux
29th October 2007, 11:23 AM
yum repolist produced this: (after updating livna repo and running yum clean all)

[root@localhost Andrew]# yum repolist
Repository updates is listed more than once in the configuration
repo id repo name status
base Red Hat Linux $releasever - $basearch - enabled
fedora Fedora 7 - i386 enabled
livna Livna for Fedora Core 7 - i386 - Base enabled
updates Red Hat Linux $releasever - Updates enabled

Where is this redhat crap coming from :confused: ( is this a upgrade from a previous redhat version ? )

post

cd /etc/yum.repos.d/
ls

and

cat /etc/yum.conf

Darkfalcon
29th October 2007, 11:35 AM
First Command:


[root@localhost yum.repos.d]# ls
fedora-development.repo fedora-updates-testing.repo livna-testing.repo
fedora.repo livna-devel.repo
fedora-updates.repo livna.repo


Second command:


[root@localhost yum.repos.d]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

leigh123linux
29th October 2007, 11:38 AM
First Command:


[root@localhost yum.repos.d]# ls
fedora-development.repo fedora-updates-testing.repo livna-testing.repo
fedora.repo livna-devel.repo
fedora-updates.repo livna.repo


Second command:


[root@localhost yum.repos.d]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/


Ok

su
gedit /etc/yum.conf

and delete everything there and replace it with this


[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Darkfalcon
29th October 2007, 11:38 AM
Where is this redhat crap coming from :confused: ( is this a upgrade from a previous redhat version ? )


And no, AFAIK this is a fresh install of fedora core 7 (my old windows installation gave me problem for months and finally crashed and i decided to try linux instead, my mate happens to like linux and recommended this distro)

leigh123linux
29th October 2007, 11:41 AM
And no, AFAIK this is a fresh install of fedora core 7 (my old windows installation gave me problem for months and finally crashed and i decided to try linux instead, my mate happens to like linux and recommended this distro)

Thats weird as this is from redhat 7 ( from around 5 year ago ) :confused:



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

[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/

[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/

leigh123linux
29th October 2007, 11:42 AM
Ok

su
gedit /etc/yum.conf

and delete everything there and replace it with this


[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Do a yum clean all as well


su
yum clean all

Darkfalcon
29th October 2007, 11:44 AM
so i can just leave my repos in their original folder and change my yum.conf to that? (all my .repo files are in a folder called yum.repos.d)

leigh123linux
29th October 2007, 11:45 AM
so i can just leave my repos in their original folder and change my yum.conf to that? (all my .repo files are in a folder called yum.repo.d)

Yes that is correct :cool:

Darkfalcon
29th October 2007, 11:47 AM
ok i did that, what now?

leigh123linux
29th October 2007, 11:48 AM
ok i did that, what now?

su
yum clean all
yum update

Darkfalcon
29th October 2007, 11:56 AM
Ookay i did all that, now its coming up with a lot of different things like statements ending in the phrase "set to be updated" theres a lot of them so ill just keep you posted as to the progress

leigh123linux
29th October 2007, 11:59 AM
Ookay i did all that, now its coming up with a lot of different things like statements ending in the phrase "set to be updated" theres a lot of them so ill just keep you posted as to the progress

Well thats a good sign :) as the last command " yum update " will update your complete system with all the latest packages :cool: ( I may be quite a big download ;) )

Darkfalcon
29th October 2007, 12:00 PM
what kind of size would you guess, i cant stay on my comp for very much longer

leigh123linux
29th October 2007, 12:05 PM
what kind of size would you guess, i cant stay on my comp for very much longer

I reckon between 500MB - 1GB if you need to stop use the keys Ctrl + c to end the update process


Ctrl + c

Darkfalcon
29th October 2007, 01:05 PM
and what is "transaction test"? its taking ages

leigh123linux
29th October 2007, 01:10 PM
and what is "transaction test"? its taking ages

Its testing to make sure that there are no conflicts or missing dependencies , on a big update it can take a while .

Darkfalcon
30th October 2007, 08:42 AM
Ohk, ym is working and now ive got kde, ive not tried it yet but it did install. I am using a tutorial for fedora core 7 that sets it up to act like a windows desktop i.. have all the necessesary programs.

I am using yum to update my system to include all these programs:



The Package Manager opens. Go to the Search tab. Select the following packages for installation (* is a wildcard; e.g. mplayer* means all packages that start with mplayer) and click on Apply afterwards:

* amarok
* amarok-visualisation
* amule
* audacity
* azureus
* banshee
* bluefish
* compat-libstdc++-33 (needed by RealPlayer/Adobe Reader)
* dvdrip
* f-spot
* ffmpeg
* flash-plugin
* gftp
* gnomebaker
* gnucash
* gstreamer-plugins*
* gtkpod
* k3b
* kdewebdev
* kino
* lame
* libdvdcss
* libXp (needed by Nvu)
* mjpegtools
* mplayer*
* ntfs-config
* scribus
* thunderbird
* vlc
* xchat
* xchat-gnome
* xine*
* xinetd (needed by VMware Server)
* xmms*


When i apply these packages with yum i get this error at the end of the "resolving dependencies" stage:



vlc conflicts with faad2 >= 2.5
Missing Dependency: gstreamer-plugins-ugly = 0.10.5-2.lvn7 is needed by package gstreamer-plugins-ugly-devel
Missing Dependency: faad2 = 2.0-19.20050131.lvn6 is needed by package xmms-faad2

Darkfalcon
30th October 2007, 08:43 AM
can you please help me with this?

leigh123linux
30th October 2007, 10:43 AM
Try installing the packages in two or three batches ( heres the first )



su
yum install xmms* xine* xchat-gnome mplayer* libdvdcss gstreamer-plugins* amarok-extras-nonfree audacity-nonfree --exclude=gstreamer-plugins-ugly-devel