Wednesday, January 27, 2010

Fixing Packman Repository error for openSUSE 11.2

For a couple of days now, when ever I do a zypper operation (and the resulting repo refresh) I get the following error message:

Repository 'Packman Repository' is invalid.
Can't provide /repodata/repomd.xml : Can't hardlink/copy /var/adm/mount/AP_0x00000001/repodata/repomd.xml to /var/cache/zypp/raw/ftp.skynet.be-suseMUwvKg
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'Packman Repository' because of the above error.


Since I added the Packman repo via Yast (Yast -> Software -> Software Repositories -> Add -> Community Repositories) I was scratching my head trying to find out why. Then it hit me that Packman does not use a redirector URL like download.opensuse.org.

To resolve it I added another location for Packman (with autorefresh enabled):

zypper ar -f http://ftp.halifax.rwth-aachen.de/packman/suse/11.2/ Packman

Then refresh the repo

zypper refresh Packman

For a list of additional repos you can add to openSUSE 11.2, do refer to http://en.opensuse.org/Additional_package_repositories

2 comments:

yazid said...

haha eric, as you know that my box does not have the internet connection, I downloaded all the files in packman's repo which are about 4.8gb in size. That folder I used it as a offline repos added to yast.

msian_tux_lover said...

Ingenious of you. Well for those of us who uses online updates, this tip is useful. The problem lies at the Belgian server side but openSUSE might be unfairly blamed for it.