[Aptitude-devel] Bug#729527: Bug#729527: aptitude says Error: Timeout was reached

shirish शिरीष shirishag75 at gmail.com
Tue Nov 26 10:38:04 UTC 2013

at bottom :-

On 11/26/13, Axel Beckert <abe at debian.org> wrote:
> Control: tag -1 + moreinfo
> Hi,
> Vincent Lefevre wrote:
>> On 2013-11-14 01:18:14 +0530, shirish शिरीष wrote:
>> > This has been happening for quite sometime now. I call up to update
>> > the index and aptitude updates the whole index. At the very end it
>> > gives this :-
>> >
>> > Error: Timeout was reached
>> Same problem on my machine. AFAIK, it has been occurring for a few days.
> At least I haven't this issue on any of my machine, so I suspect
> either a mirror or an APT hook issue. Since Vincent and shirish come
> from at least different cultures, I expect they use different mirrors,
> hence this is likely not a mirror issue. (Vincent: Can you still tell
> us which mirror you use?) Leaves APT hooks.
> So I'd like to know from both, shirish and Vincent the output of the
> following command:
> ls -1 /etc/apt/apt.conf.d/
> (That should suffice to get an overview over the installed and APT
> hook installing packages.
> If you're ok with it, an additional "cat /etc/apt/apt.conf
> /etc/apt/apt.conf.d/*[^~]" could be shed some additional light on the
> issue.
> Thanks in advance.
> 		Regards, Axel
> --
>  ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
> : :' :  |  Debian Developer, ftp.ch.debian.org Admin
> `. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
>   `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5

Hi all,
Below are the outputs :-

$ ls -1 /etc/apt/apt.conf.d/

$ cat /etc/apt/apt.conf /etc/apt/apt.conf.d/*[^~]
cat: /etc/apt/apt.conf: No such file or directory
Acquire::cdrom {
  mount "/media/cdrom";
Dir::Media::MountPath "/media/cdrom";
APT::Authentication::TrustCDROM "true";

// File autogenerated by /etc/kernel/postinst.d/apt-auto-removal, do not edit
// Before installing packages, check whether they have release-critical bugs.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt";};
DPkg::Tools::Options::/usr/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "3";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::InfoFD "20";
AptListbugs::Severities "critical,grave,serious";
// AptListbugs::IgnoreRegexp "FTBFS";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Update::Post-Invoke {"touch
/var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};
// If you set this to "true", adequate will run on every install, reporting the
// results via debconf.
Adequate::Enabled "true";

DPkg::Pre-Install-Pkgs {
    "adequate --help >/dev/null 2>&1 || exit 0; exec adequate --user
nobody --apt-preinst";

DPkg::Post-Invoke {
    "adequate --help >/dev/null 2>&1 || exit 0;
DEBIAN_FRONTEND=readline exec adequate --debconf --user nobody

DPkg::Tools::Options::adequate::Version "2";
// If you set this to "true", adequate will run on every install, reporting the
// results via debconf.
Adequate::Enabled "false";

DPkg::Pre-Install-Pkgs {
    "adequate --help >/dev/null 2>&1 || exit 0; exec adequate --user
nobody --apt-preinst";

DPkg::Post-Invoke {
    "adequate --help >/dev/null 2>&1 || exit 0; exec adequate
--debconf --user nobody --pending";

DPkg::Tools::Options::adequate::Version "2";
// When Apt's cache is updated (i.e. apt-cache update)
APT::Update::Post-Invoke-Success {
"test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i";
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
// Notify all clients to reload the cache
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"; };
DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";

// Whenever dpkg is called we might have different updates
// i.e. if an user removes a package that had an update
DPkg::Post-Invoke {
"/usr/bin/test -e
&& /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";

// When Apt's cache is updated (i.e. apt-cache update)
APT::Update::Post-Invoke-Success {
"/usr/bin/test -e
&& /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";
// Unattended-Upgrade::Origins-Pattern controls which packages are
// upgraded.
// Lines below have the format format is "keyword=value,...".  A
// package will be upgraded only if the values in its metadata match
// all the supplied keywords in a line.  (In other words, omitted
// keywords are wild cards.) The keywords originate from the Release
// file, but several aliases are accepted.  The accepted keywords are:
//   a,archive,suite (eg, "stable")
//   c,component     (eg, "main", "crontrib", "non-free")
//   l,label         (eg, "Debian", "Debian-Security")
//   o,origin        (eg, "Debian", "Unofficial Multimedia Packages")
//   n,codename      (eg, "jessie", "jessie-updates")
//     site          (eg, "http.debian.net")
// The available values on the system are printed by the command
// "apt-cache policy", and can be debugged by running
// "unattended-upgrades -d" and looking at the log file.
// Within lines unattended-upgrades allows 2 macros whose values are
// derived from /etc/debian_version:
//   ${distro_id}            Installed origin.
//   ${distro_codename}      Installed codename (eg, "jessie")
Unattended-Upgrade::Origins-Pattern {
        // Codename based matching:
        // This will follow the migration of a release through different
        // archives (e.g. from testing to stable and later oldstable).
//      "o=Debian,n=jessie";
//      "o=Debian,n=jessie-updates";
//      "o=Debian,n=jessie-proposed-updates";
//      "o=Debian,n=jessie,l=Debian-Security";

        // Archive or Suite based matching:
        // Note that this will silently match a different release after
        // migration to the specified archive (e.g. testing becomes the
        // new stable).
//      "o=Debian,a=stable";
//      "o=Debian,a=stable-updates";
//      "o=Debian,a=proposed-updates";

// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
//	"vim";
//	"libc6";
//	"libc6-dev";
//	"libc6-i686";

// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";

// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";

// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
//Unattended-Upgrade::InstallOnShutdown "true";

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user at example.com"
//Unattended-Upgrade::Mail "root";

// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
//Unattended-Upgrade::MailOnlyOnError "true";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";

// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
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 "; };

Hopefully the above is useful.
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17

More information about the Aptitude-devel mailing list