Debian Bug report logs - #686492
apt: option Apt::Cache::Generate=false is broken

version graph

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Panayiotis Karabassis <panayk@gmail.com>

Date: Sun, 2 Sep 2012 10:45:01 UTC

Severity: normal

Found in version apt/0.8.15.10

Fixed in version apt/0.9.7.2

Done: David Prévot <taffit@debian.org>

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 debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#686492; Package apt. (Sun, 02 Sep 2012 10:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Panayiotis Karabassis <panayk@gmail.com>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>. (Sun, 02 Sep 2012 10:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Panayiotis Karabassis <panayk@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt: option Apt::Cache::Generate=false is broken
Date: Sun, 02 Sep 2012 13:42:36 +0300
Package: apt
Version: 0.8.15.10
Severity: normal

Dear Maintainer,

The option Apt::Cache::Generate when given a false value (for example apt-cache
--no-generate  pkgnames) results in the error:

E: The package cache file is an incompatible version

I believe this is the source of a regression in the bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547550

Cleaning and recreating the cache does not help.

It would seem to me that either there is some bug in the code that checks for
compatibility in the headers of the cache, or that indeed a corrupted version
of the cache is written to disk.

Thanks, Best regards, Panayiotis



-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update "";
APT::Update::Post-Invoke "";
APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
APT::Archives "";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
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::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/cdrom";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi ";
Unattended-Upgrade "";
Unattended-Upgrade::Origins-Pattern "";
Unattended-Upgrade::Origins-Pattern:: "origin=Debian,archive=stable,label=Debian-Security";
CommandLine "";
CommandLine::AsString "apt-config dump";

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


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

deb http://ftp.gr.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.gr.debian.org/debian/ wheezy main contrib non-free

deb http://ftp.gr.debian.org/debian/ experimental main contrib non-free
deb-src http://ftp.gr.debian.org/debian/ experimental main contrib non-free

deb http://ftp.gr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.gr.debian.org/debian/ squeeze main contrib non-free

deb http://ftp.gr.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.gr.debian.org/debian/ sid main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free

deb http://www.debian-multimedia.org wheezy main non-free
deb-src http://www.debian-multimedia.org wheezy main non-free

deb http://panayk.endofinternet.org/apt wheezy-testing main
deb-src http://panayk.endofinternet.org/apt wheezy-testing main

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-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/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-4+b1
ii  libc6                   2.13-33
ii  libgcc1                 1:4.7.1-2
ii  libstdc++6              4.7.1-2
ii  zlib1g                  1:1.2.7.dfsg-13

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc          <none>
ii  aptitude         0.6.8-1
ii  bzip2            1.0.6-3
ii  dpkg-dev         1.16.4.3
ii  lzma             9.22-2
ii  python-apt       0.8.4
ii  synaptic         0.75.12
ii  xz-utils [lzma]  5.1.1alpha+20120614-1

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#686492; Package apt. (Sun, 02 Sep 2012 12:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Panayiotis Karabassis <panayk@gmail.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Sun, 02 Sep 2012 12:51:03 GMT) (full text, mbox, link).


Message #10 received at 686492@bugs.debian.org (full text, mbox, reply):

From: Panayiotis Karabassis <panayk@gmail.com>
To: 686492@bugs.debian.org
Subject: Invalid
Date: Sun, 02 Sep 2012 15:48:44 +0300
Sorry, this has been fixed in 0.9.7.2. Please mark as invalid.



Marked as fixed in versions apt/0.9.7.2. Request was from David Prévot <taffit@debian.org> to control@bugs.debian.org. (Sun, 02 Sep 2012 13:39:10 GMT) (full text, mbox, link).


Marked Bug as done Request was from David Prévot <taffit@debian.org> to control@bugs.debian.org. (Sun, 02 Sep 2012 13:39:11 GMT) (full text, mbox, link).


Notification sent to Panayiotis Karabassis <panayk@gmail.com>:
Bug acknowledged by developer. (Sun, 02 Sep 2012 13:39:12 GMT) (full text, mbox, link).


Message sent on to Panayiotis Karabassis <panayk@gmail.com>:
Bug#686492. (Sun, 02 Sep 2012 13:39:14 GMT) (full text, mbox, link).


Message #19 received at 686492-submitter@bugs.debian.org (full text, mbox, reply):

From: David Prévot <taffit@debian.org>
To: control@bugs.debian.org
Cc: 686492-submitter@bugs.debian.org
Subject: closing 686492
Date: Sun, 02 Sep 2012 08:55:24 -0400
close 686492 0.9.7.2
thanks

As per submitter request




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 01 Oct 2012 07:30:23 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:51:49 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.