apt-ftparchive release generates broken Release file

Joe Cooper joe at virtualmin.com
Wed Aug 29 18:27:37 BST 2007

Turns out this was a bug in apt-ftparchive that leads to a space before 
the MD5SUM section (the docs also don't explain that Release has to be 
built out-of-path to leave itself out of the Release file).  I'll see if 
this bug has already been noted at Launchpad or upstream, and if not, 
I'll file one.

The workaround is to manually remove the extra space between the Release 
description fields and MD5Sum: (and to generate Release outside of the 
root directory and move it into place after generating it).

Joe Cooper wrote:
> In the root of my ubuntu repository tree, the resulting Release file 
> lists itself as a zero length file, with an invalid MD5 sum, like this:
> MD5Sum:
>   d41d8cd98f00b204e9800998ecf8427e                0 Release
>   068f132aef8266fb88fa5e33ff8dab54            38252 
> main/binary-amd64/Packages
> ...
> Everything else looks legit, but I can't figure out what to do to make 
> that Release entry go away (the official Ubuntu repos don't have 
> self-referential entries like that, so obviously somebody knows how to 
> do it).

More information about the ubuntu-devel mailing list