[Bug 1144373] Re: Workaround apt-ftparchive generating empty Packages.gz
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Thu Jan 29 22:21:26 UTC 2015
Removing ubuntu-reviewers: I looked at the code and it seems that this
is already covered by other parts; for instance, when gzipping the files
they are touched first, and a quick test of that shows that it indeed
properly creates an empty compressed container; for a file size of 20
bytes.
Are you still seeing this happening without your patch, assuming there
may have been release upgrades on your systems since then?
** Changed in: debian-cd (Ubuntu)
Status: New => Incomplete
** Changed in: debian-cd (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-cd in Ubuntu.
https://bugs.launchpad.net/bugs/1144373
Title:
Workaround apt-ftparchive generating empty Packages.gz
Status in debian-cd package in Ubuntu:
Incomplete
Bug description:
Hello,
On my system with apt-ftparchive version 0.9.7.7, empty Packages.gz
have size 0 instead of 20 bytes for empty gzip file.
Steps to reproduce:
1) cat > apt-ftparchive.conf <<EOF
Dir::ArchiveDir ".";
Dir::OverrideDir ".";
Dir::CacheDir ".";
Default::Packages::Compress "gzip";
TreeDefault::Contents " ";
Tree "dists/whatever" {
FileList "empty.list";
Sections "main";
Architectures "amd64";
}
EOF
2) > empty.list
3) mkdir -p dists/whatever/main/binary-amd64
4) apt-ftparchive generate apt-ftparchive.conf
5) ls -l dists/whatever/main/binary-amd64/
This cause troubles installing my custom CDROM, apt-cdrom fails with:
Mar 1 16:06:15 base-installer: gzip:
Mar 1 16:06:15 base-installer: stdin: unexpected end of file
Then base installer fails to install lvm2 because it does not find it.
My workaround makes my custom CDROM work again.
Regards.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-cd/+bug/1144373/+subscriptions
More information about the foundations-bugs
mailing list