[Bug 1144373] [NEW] Workaround apt-ftparchive generating empty Packages.gz

Daniel Dehennin 1144373 at bugs.launchpad.net
Mon Mar 4 13:29:33 UTC 2013


Public bug reported:

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.

** Affects: debian-cd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: cdimage lucid

** Patch added: "Workaround for empty gzip files"
   https://bugs.launchpad.net/bugs/1144373/+attachment/3556545/+files/scanpackages.diff

-- 
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:
  New

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