[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#535182: apt-get update uses bzip on Packages.gz when no .bz2 is available



Subject: apt-get update uses bzip on Packages.gz when no .bz2 is available
Package: apt
Version: 0.7.21
Severity: normal

*** Please type your report below this line ***

This is a repeat of bug #316337. However, history with that bug
indicates that it was resolved as of apt 0.6.44;
however, it seems to have reappeared as of 0.7.21. I am seeing this
error on multiple boxes.

Direct examination of the archive indicates that it contains only a
Package.gz file, not a Package.bz2 file.
This is consistent with it last being updated in about 2005; the
software in it is still functional, however,
as at least one of my boxes has this version installed and it works perfectly.

Output from apt-get update, restricted only to the problem archive:

rnbwpnt@bareback:~$ sudo apt-get update
Get:1 http://etree.org unstable Release.gpg
Get:2 http://etree.org unstable/contrib Translation-en_US
99% [2 Translation-en_US bzip2 0] [Connecting to etree.org]bzip2:
(stdin) is not a bzip2 file.
Ign http://etree.org unstable/contrib Translation-en_US
Get:3 http://etree.org unstable Release
Ign http://etree.org unstable Release
Get:4 http://etree.org unstable/contrib Packages
75% [4 Packages bzip2 0]bzip2: (stdin) is not a bzip2 file.
Err http://etree.org unstable/contrib Packages
  Sub-process bzip2 returned an error code (2)
Fetched 303kB in 17s (17.8kB/s)
W: GPG error: http://etree.org unstable Release: The following
signatures were invalid: NODATA 1 NODATA 2
W: Failed to fetch
http://etree.org/debian/dists/unstable/contrib/binary-i386/Packages.bz2
 Sub-process bzip2 returned an error code (2)

E: Some index files failed to download, they have been ignored, or old
ones used instead.


This repository is known to not support translations or a gpg key.
Even so, it would appear that the Packages.gz
file is somehow being mishandled again, resulting in a failure to
include the respository in the index, making
it impossible to install software.

This bug has appeared within the last couple of versions of apt. I
only noticed it because I tried to install
software from the etree repository on a new squeeze machine; an
existing squeeze machine, which was brought
online in March 2009, did not exhibit this issue when it was
installed, because I installed the same
stuff from the same etree repository at that time. It too is now
exhibiting this error.

It would appear from the error that the download tool is creating a
0-length file instead of no file when encountering a 404, and thus
bzip is returning an error on a 0-length file.


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb http://ftp.us.debian.org/debian/ squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb http://etree.org/debian/ unstable contrib

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring        2009.01.31 GnuPG archive keys of the Debian a
ii  libc6                         2.9-12     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.0-5  GCC support library
ii  libstdc++6                    4.4.0-5    The GNU Standard C++ Library v3

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                   <none>         (no description available)
ii  aptitude                  0.4.11.11-1+b1 terminal-based package manager
ii  bzip2                     1.0.5-2        high-quality block-sorting file co
pn  dpkg-dev                  <none>         (no description available)
ii  lzma                      4.43-14        Compression method of 7z format in
pn  python-apt                <none>         (no description available)

-- no debconf information



Reply to: