Broken local yum repos

Axel Thimm Axel.Thimm at ATrpms.net
Thu Jan 11 22:13:20 UTC 2007


On Thu, Jan 11, 2007 at 04:26:50PM -0500, James Pifer wrote:
> I have a local repo for FC5 and FC6. FC6 is new, but FC5 has been
> working for a long time. I decided to clean up my scripts and now I've
> broken it.
> 
> Some of these were updating using rsync, some using lftp. I decided to
> make them all use lftp. I made the changes and they appear to be
> updating, including the repodata, but now some of them don't work. Even
> if I remove the repodata directory and rebuild the repodata manually
> they fail. 
> 
> For example, if I have my local atrpms enabled I get this when I do a
> yum update:
> 
> Reading repository metadata in from local files
> primary.xml.gz            100% |=========================| 243 kB    00:00
> http://192.168.1.2/repomirror/fedora/linux/5/i386/atrpms/i386/stable/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum

This sounds like the metadata was changed during your syncing, or your
syncing did not catch some new files. ATrpms has atomic changes,
e.g. both data and metadata changes are swapped in
instantaneously. But if you started syncing shortly before the update
and finished afterwards you will have a mixed copy.

The same will happen with http and ftp transfers if you have some
"transparent" proxy between you and the the source that will give you
old content. rsync is therefore safer.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070111/07c629d0/attachment-0001.sig>


More information about the fedora-list mailing list