PDA

View Full Version : Yum error



fedder21
22nd January 2009, 10:34 PM
Hopefully this is the last time I have to write this out.... :-(

yum doesnt appear to work.
yum update results with this attempting to use multiple mirrors and then in the end returns this error --> Error: Cannot open/read repomd.xml file for repository: jpackage-fedora


and i cant yum install anything.


I'm also worried that someone has gained access to my system. It appears a lot of things were deleted on Jan 18 around 9pm. According to my yum.log many things were erased.. can anyone help me where to start?

Seve
23rd January 2009, 12:35 AM
Hello:
Can you post the output of:

yum repolist

Seve

kbriggs
23rd January 2009, 12:06 PM
I quite often get this. It tries all the mirrors and all fail. What is the solution?

[root]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything
[root]# yum check-update
Loaded plugins: refresh-packagekit
fedora | 2.4 kB 00:00
primary.sqlite.bz2 | 6.1 MB 00:04
updates-newkey | 2.3 kB 00:00
primary.sqlite.bz2 | 3.7 MB 00:00
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror.
primary.sqlite.bz2 | 3.7 MB 00:00
http://mirrors.vexs.net/pub/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror.
primary.sqlite.bz2 | 3.7 MB 01:12
http://ftp.man.poznan.pl/pub/linux/fedora/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum Trying other mirror.
primary.sqlite.bz2 | 3.7 MB 00:02
http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum

kbriggs
23rd January 2009, 12:13 PM
PS:

[root@gold]# yum repolist
Loaded plugins: refresh-packagekit
fedora | 2.4 kB 00:00
primary.sqlite.bz2 | 6.1 MB 00:03
updates-newkey | 2.3 kB 00:00
primary.sqlite.bz2 | 3.7 MB 00:00
http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.sqlite.bz2 | 3.7 MB 00:00
http://mirrors.vexs.net/pub/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.sqlite.bz2 | 3.7 MB 00:02
http://ftp.linux.org.uk/pub/distributions/fedora/linux/updates/9/i386.newkey/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum

fedder21
26th January 2009, 02:16 PM
##yum repolist
Loading "installonlyn" plugin
usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase >

options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
None



Well then it seems that my repolist got deleted? thoughts on next plan of action? where can I add to this file

bd54338rre
26th January 2009, 04:09 PM
go to /etc/yum.repos.d

what have you got there?
does ik look like:


$ cd /etc/yum.repos.d
@localhost yum.repos.d]$ ls
fedora-rawhide.repo planetccrma.repo rpmfusion-free-updates-testing.repo
fedora.repo planetccrma.repo~ rpmfusion-nonfree-rawhide.repo
fedora-updates.repo qbittorrent.repo rpmfusion-nonfree.repo
fedora-updates-testing.repo rpmfusion-free-rawhide.repo rpmfusion-nonfree-updates.repo
GoOo.repo rpmfusion-free.repo rpmfusion-nonfree-updates-testing.repo
openftd.repo rpmfusion-free-updates.repo

fedder21
26th January 2009, 04:16 PM
yum.repos.d]# ls
atrpms.repo jpackage_generic.txt
fedora-core.repo jpackage_generic.txt.1
fedora-development.repo jpackage_generic.txt.2
fedora-extras-development.repo jpackage_generic.txt.3
fedora-extras.repo jpackage_generic.txt.4
fedora-legacy.repo jpackage_generic.txt.5
fedora-updates.repo jpackage.repo
fedora-updates-testing.repo jpackage.repo.1
flash.repo jpackage.repo.2
freshrpms.repo jpackage.repo.3
jpackage.asc jpackage.repo.4
jpackage.asc.1 jpackage.repo.5
jpackage.asc.2 jpackage.repo.6
jpackage.asc.3 jpackage_rhel-4.txt
jpackage.asc.4 jpackage_rhel-4.txt.1
jpackage.asc.5 jpackage_rhel-4.txt.2
jpackage_generic_nonfree.txt jpackage_rhel-4.txt.3
jpackage_generic_nonfree.txt.1 jpackage_rhel-4.txt.4
jpackage_generic_nonfree.txt.2 jpackage_rhel-4.txt.5
jpackage_generic_nonfree.txt.3 kde-redhat.repo
jpackage_generic_nonfree.txt.4 rpmforge.repo
jpackage_generic_nonfree.txt.5


a bit different it also looks like there are a number of references that are repeated and may not be needed? (just taking a guess I don't know what I'm looking at here)

BTW this is Fedora core 6 so its old and not supported - but it's been working perfectly fine until a week ago

bd54338rre
26th January 2009, 04:31 PM
do you use jpackage's???

otherwise:

rm jpackage.*

rm jpackage_*

i think jpckage is the main donkey

fedder21
26th January 2009, 04:42 PM
I do believe Jpackage is used - but I didnt build this server - is there a way I can check if/what software installed is using it before I go ahead and remove it?

bd54338rre
26th January 2009, 05:08 PM
no idea

the *.repo's are only to install / update packages.

as you mentioned in your first post, jpackage-fedora is cuasing problems
what you can do is open: jpackage.repo, and set enabled on 0 (zero)
and do a yum update

nitsmrinal
26th January 2009, 05:21 PM
i suggest remove everything in /etc/yum.repos.d and install rpmfusion repo.. may b it will woek..

fedder21
26th January 2009, 05:43 PM
So after performing these commands


rm jpackage.*
then

rm jpackage_*
and

yum clean all

I performed a yum update that took took about 20 minutes - completed but when I went to yum upgrade this came up below



yum.repos.d]# yum upgrade
Loading "installonlyn" plugin
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion


I'm assuming thats not a problem and everything works (it also seems to have fixed an xml-commons error)

and I was able to install the program I was looking for.


Should I be worried that everything just started working perfectly or continue to have perma smile on my face?

bd54338rre
26th January 2009, 06:00 PM
keep smiling,, that's the best

when you want jpackage back..pls go to:
http://www.jpackage.org/yum.php

and for the mirrors:
http://www.jpackage.org/mirroring.php#mirrors

add repo by:
gedit /etc/yum.repos.d
and paste the fedora-6 repo in it

marcrblevins
27th January 2009, 10:27 AM
fedder21,
You got way too many repos listed, can you run:


yum repolist

Want to may sure you don't have many enabled.