[Aptitude-devel] Bug#769758: aptitude: autoclean reports zero cleaned size on armel

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sat Aug 29 15:58:32 UTC 2015

Control: reassign -1 src:apt

Hello Alexander, APT deities,

2014-11-16 07:22 Alexander Galanin:
>Package: aptitude
>Severity: minor
>Steps to reproduce:
># du -hs /var/cache/apt/archives/
>484M    /var/cache/apt/archives
># aptitude autoclean
>Del tzdata 2013i-0wheezy1 [0 B]
>Del dpkg-dev 1.16.13 [0 B]
>Del apache2.2-common 2.2.22-13+deb7u1 [0 B]
>[...]>Del libdbus-1-dev 1.6.8-1+deb7u1 [0 B]
>Del multiarch-support 2.13-38+deb7u1 [0 B]
>Freed 0 B of disk space
># du -hs /var/cache/apt/archives/
>219M    /var/cache/apt/archives
>Directory size is decreased to 265M, but aptitude reports that 0 B was
>The same version of aptitude on amd64 machine works well.

aptitude autoclean uses SizeToStr() from apt's strutl.h file and the
same basic code at least for a decade (the same for all architectures),
so I am reassigning the bug report for their consideration, in the case
that they know if there is/was some known problem under this
architecture to explain that behaviour (please reassign back if you
confirm that all is well within apt).

I tried to reproduce it in an armel machine but was unable to set it up
properly (do not own root on it).

For reference, the relevant code from cmdline_clean.cc is:

class LogCleaner : public pkgArchiveCleaner
  virtual void Erase(const char *File,string Pkg,string Ver,struct stat &St)
    printf(_("Del %s %s [%sB]\n"),

Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>

More information about the Aptitude-devel mailing list