Debian Bug report logs - #479620
"aptitude update" broke Packages.gz when internet wasn't available

version graph

Package: aptitude; Maintainer for aptitude is Aptitude Development Team <>; Source for aptitude is src:aptitude.

Reported by: "Eugene V. Lyubimkin" <>

Date: Mon, 5 May 2008 19:42:01 UTC

Severity: normal

Merged with 201842, 470135

Found in versions 0.2.13-1, aptitude/, aptitude/0.4.4-4

Fixed in version aptitude/

Done: Daniel Burrows <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Daniel Burrows <>:
Bug#479620; Package aptitude. Full text and rfc822 format available.

Acknowledgement sent to "Eugene V. Lyubimkin" <>:
New Bug report received and forwarded. Copy sent to Daniel Burrows <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: "Eugene V. Lyubimkin" <>
To: Debian Bug Tracking System <>
Subject: "aptitude update" broke Packages.gz when internet wasn't available
Date: Mon, 05 May 2008 22:33:51 +0300
Package: aptitude
Severity: grave
Justification: causes non-serious data loss

Today i tried to run 'aptitude update', but forgot to up the internet
Aptitude wrote:

$ sudo aptitude update
Err sid Release.gpg
Could not resolve ''
Err sid/main Translation-en_US
Could not resolve ''
Err sid/contrib Translation-en_US
Could not resolve ''
Err sid/non-free Translation-en_US
Could not resolve ''
Err experimental Release.gpg
Could not resolve ''
Err experimental/main
Could not resolve ''
Err experimental/contrib
Could not resolve ''
Err experimental/non-free
Could not resolve ''
Reading package lists... Done       
Updating debtags database...... Done

After that it seems the Packages.gz became broken, because:

$ apt-cache stats
Total package names: 3471 (167k)
Normal packages: 1272
Pure virtual packages: 28
Single virtual packages: 308
Mixed virtual packages: 6
Missing: 1857
Total distinct versions: 1278 (66.5k)
Total distinct descriptions: 1278 (30.7k)
Total dependencies: 10670 (299k)
Total ver/file relations: 1278 (20.4k)
Total Desc/File relations: 1278 (20.4k)
Total Provides mappings: 398 (7960)
Total globbed strings: 43 (337)
Total dependency version space: 49.6k
Total slack space: 84.0k
Total space accounted for: 645k
While previously archive contained ~22k packages.

$ apt-show-versions
Error: No information about packages! (Maybe no deb entries?)

$ apt-cache show mutt
And nothing appeared.

Fortunately, after setting up the internet connection it seems that
'aptitude update' downloaded Packages.gz and previous errors
disappeared, but it was really bad.

-- Package-specific info:
aptitude compiled at Apr 12 2008 15:24:40
Compiler: g++ 4.2.3 (Debian 4.2.3-3)
Compiled against:
  apt version 4.6.0
  NCurses version 5.6
  libsigc++ version: 2.0.18
  Ept support enabled.

Current library versions:
  NCurses version: ncurses 5.6.20071124
  cwidget version: 0.5.11
  Apt version: 4.6.0 =>  (0x00007fff84bfe000) => /usr/lib/ (0x00007f2e7c640000) => /lib/ (0x00007f2e7c3f7000) => /usr/lib/ (0x00007f2e7ca0e000) => /usr/lib/ (0x00007f2e7c0fc000) => /usr/lib/ (0x00007f2e7be80000) => /usr/lib/ (0x00007f2e7bafb000) => /usr/lib/ (0x00007f2e7b8e4000) => /lib/ (0x00007f2e7b6c9000) => /usr/lib/ (0x00007f2e7b3bd000) => /lib/ (0x00007f2e7b13e000) => /lib/ (0x00007f2e7af27000) => /lib/ (0x00007f2e7abdf000) => /lib/ (0x00007f2e7a9dc000) => /lib/ (0x00007f2e7a7d8000)
	/lib64/ (0x00007f2e7c90f000)
Terminal: xterm
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-1-amd64 (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 aptitude depends on:
ii  apt [libapt-pkg-libc6. 0.7.13            Advanced front-end for dpkg
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libcwidget3            0.5.11-1          high-level terminal interface libr
ii  libept0                0.5.17            High-level library for managing De
ii  libgcc1                1:4.3.0-1         GCC support library
ii  libncursesw5           5.6+20071124-1    Shared libraries for terminal hand
ii  libsigc++-2.0-0c2a     2.0.17-2          type-safe Signal Framework for C++
ii  libstdc++6             4.3.0-1           The GNU Standard C++ Library v3
ii  libxapian15            1.0.4-1           Search engine library
ii  zlib1g                 1: compression library - runtime

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc English manual for aptitude, a ter
ii  libparse-debianchangelog-perl 1.1.1-1    parse Debian changelogs and output

-- no debconf information

Forcibly Merged 201842 479620. Request was from Daniel Burrows <> to (Mon, 09 Jun 2008 13:45:06 GMT) Full text and rfc822 format available.

Merged 201842 470135 479620. Request was from Sven Joachim <> to (Wed, 02 Jul 2008 09:09:03 GMT) Full text and rfc822 format available.

Information forwarded to
Bug#479620; Package aptitude. Full text and rfc822 format available.

Acknowledgement sent to Daniel Burrows <>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #14 received at (full text, mbox):

From: Daniel Burrows <>
Subject: Re: 答复: Stunned by aptitude.
Date: Wed, 2 Jul 2008 06:39:26 -0700
On Wed, Jul 02, 2008 at 11:09:18AM +0300, Andrei Popescu <> was heard to say:
> Not really. See #201842 and #479620. Unfortunately Daniel Burrows still 
> didn't comment on them. Maybe he will show up here?

  The main reason I haven't touched those bugs is that there are many
more important things to work on.  This behavior might be annoying when
it hits you, but the files that are wiped out are all cache files that
you can download from the network when your connection is re-established.

  A secondary reason is that I can't figure out what's going on, because
whenever I try taking my network down and running an update, my package
lists are still around afterwards.  I've read over the code and it looks
to me like it only deletes the old package lists when it successfully
downloaded new ones.  Until I get more of a clue to go on, this looks to
me like a way to waste a great deal of time.

  I put the apt-get and aptitude code up side-by-side and I can only see
one difference in the conditions they use to determine whether to clean
the lists.  I don't see why this would matter (surely pkgAcquire::Run
returns Failure if files can't be downloaded?), but if there's anyone
who *can* reproduce this on demand, it would be interesting to know if
the attached patch helps.


Reply sent to Daniel Burrows <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Eugene V. Lyubimkin" <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #19 received at (full text, mbox):

From: Daniel Burrows <>
Subject: Bug#479620: fixed in aptitude
Date: Fri, 04 Jul 2008 17:17:04 +0000
Source: aptitude

We believe that the bug you reported is fixed in the latest version of
aptitude, which is due to be installed in the Debian FTP archive:

  to pool/main/a/aptitude/aptitude-dbg_0.4.11.8-1_i386.deb
  to pool/main/a/aptitude/aptitude-doc-cs_0.4.11.8-1_all.deb
  to pool/main/a/aptitude/aptitude-doc-en_0.4.11.8-1_all.deb
  to pool/main/a/aptitude/aptitude-doc-fi_0.4.11.8-1_all.deb
  to pool/main/a/aptitude/aptitude-doc-fr_0.4.11.8-1_all.deb
  to pool/main/a/aptitude/aptitude-doc-ja_0.4.11.8-1_all.deb
  to pool/main/a/aptitude/aptitude_0.4.11.8-1.diff.gz
  to pool/main/a/aptitude/aptitude_0.4.11.8-1.dsc
  to pool/main/a/aptitude/aptitude_0.4.11.8-1_i386.deb
  to pool/main/a/aptitude/aptitude_0.4.11.8.orig.tar.gz

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Daniel Burrows <> (supplier of updated aptitude package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA1

Format: 1.8
Date: Fri, 04 Jul 2008 09:34:16 -0700
Source: aptitude
Binary: aptitude aptitude-dbg aptitude-doc-cs aptitude-doc-en aptitude-doc-fi aptitude-doc-fr aptitude-doc-ja
Architecture: source all i386
Distribution: unstable
Urgency: low
Maintainer: Daniel Burrows <>
Changed-By: Daniel Burrows <>
 aptitude   - terminal-based package manager
 aptitude-dbg - Debug symbols for the aptitude package manager
 aptitude-doc-cs - Czech manual for aptitude, a terminal-based package manager
 aptitude-doc-en - English manual for aptitude, a terminal-based package manager
 aptitude-doc-fi - Finnish manual for aptitude, a terminal-based package manager
 aptitude-doc-fr - French manual for aptitude, a terminal-based package manager
 aptitude-doc-ja - Japanese manual for aptitude, a terminal-based package manager
Closes: 201842 479620
 aptitude ( unstable; urgency=low
   * New upstream release.
     - Fix an annoying and long-standing bug that caused aptitude
       to sometimes delete package lists if downloading new copies
       failed.  (Closes: #201842, #479620)
 3ace09e545806b7b51cb78db4196b0505732068b 1391 aptitude_0.4.11.8-1.dsc
 c8d60ab56a1fba4d8b97fc93c72408f58f9989a6 5737925 aptitude_0.4.11.8.orig.tar.gz
 877886e874b125c3c5ee8eecc0fb704973a86541 35015 aptitude_0.4.11.8-1.diff.gz
 8a7b0db1ab45f3b9d4ad305c7426ee5bfb275320 345350 aptitude-doc-cs_0.4.11.8-1_all.deb
 6edd7814285a4397aa96ba77aa052ecd88a2cc98 353470 aptitude-doc-en_0.4.11.8-1_all.deb
 8b14b13e47dfd7f025e68b42926a4dddcac22461 263796 aptitude-doc-fi_0.4.11.8-1_all.deb
 2eec02a466470fc2824b12ce0c511d8cdf239b0c 298252 aptitude-doc-fr_0.4.11.8-1_all.deb
 497e8d3edafc6ef894c3f0592c527641564d5643 363822 aptitude-doc-ja_0.4.11.8-1_all.deb
 277189e2445e49093f421658893d7b494752f9d3 2788980 aptitude_0.4.11.8-1_i386.deb
 30a789a0fac9ab8fc039edbfb7001129031d011e 5902788 aptitude-dbg_0.4.11.8-1_i386.deb
 99b28380adafaf84a179830a5e979a1fc21d8d14f6a8489f4b9e885a239efc69 1391 aptitude_0.4.11.8-1.dsc
 37b3cc2aa47a3a0d85f850d84758c23adb0b9e4d798feb81f089925486c88444 5737925 aptitude_0.4.11.8.orig.tar.gz
 b6661297f28365ca379c88ef8ea283f4965cacc70edd5a358f6fc59606082719 35015 aptitude_0.4.11.8-1.diff.gz
 5ac7a96e202404db3b8839ae9e5bb93d7946fb102e711d0f92eb8baa5c912885 345350 aptitude-doc-cs_0.4.11.8-1_all.deb
 03b51eb2e864e821a4b85044ca3e98a37737b4bfcffa45015a6752e1d4119eec 353470 aptitude-doc-en_0.4.11.8-1_all.deb
 b0e4a762f84ab503d6340f04e94c6755b4d51c5296ea76676a0e63de942da5f8 263796 aptitude-doc-fi_0.4.11.8-1_all.deb
 1555188ed05a7184dddb2f154b806a85b0aed657d038132ad31f25aae52c0709 298252 aptitude-doc-fr_0.4.11.8-1_all.deb
 ae2be11536be165743bf3216ae42566dd461e8ec232f2a890afacb7253c2b7f9 363822 aptitude-doc-ja_0.4.11.8-1_all.deb
 83f86c4fa5fffcec98161099afc1077eda5a7a7a106f4a0331b0c7795764b6fd 2788980 aptitude_0.4.11.8-1_i386.deb
 2c968c6a79b8fbe42b8aa463d11dad67dc6187d85b893999ec4dcb8549e7492f 5902788 aptitude-dbg_0.4.11.8-1_i386.deb
 2b5259653087c5605c402f36258e28b8 1391 admin - aptitude_0.4.11.8-1.dsc
 4982e46d4e9d2b3b05d0620c64225a00 5737925 admin - aptitude_0.4.11.8.orig.tar.gz
 ca9cb0119f488818d01d7c383005034a 35015 admin - aptitude_0.4.11.8-1.diff.gz
 35735502065a48b7d5b616da1ac30371 345350 doc optional aptitude-doc-cs_0.4.11.8-1_all.deb
 06b1fb97d0d170c1b9af58e3e24ff841 353470 doc optional aptitude-doc-en_0.4.11.8-1_all.deb
 1316b440402e19c26908269af78282b4 263796 doc optional aptitude-doc-fi_0.4.11.8-1_all.deb
 d32f88aa49cfac1aefa653194724942e 298252 doc optional aptitude-doc-fr_0.4.11.8-1_all.deb
 49f121bc880dc8ead8b5caa733f55e15 363822 doc optional aptitude-doc-ja_0.4.11.8-1_all.deb
 09c3c241717f92c022f3f32f69ff04e4 2788980 admin important aptitude_0.4.11.8-1_i386.deb
 3e78059cb7f28937cd310b45faca574e 5902788 devel extra aptitude-dbg_0.4.11.8-1_i386.deb

Version: GnuPG v1.4.6 (GNU/Linux)


Reply sent to Daniel Burrows <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Dan Jacobson <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Reply sent to Daniel Burrows <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to giuseppe bonacci <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <> to (Wed, 14 Oct 2009 07:32:44 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Wed Apr 16 19:41:47 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.