[Aptitude-devel] Bug#312920: Bug#312920: marked as done (writes when nothing should be written)

Daniel Hartwig mandyke at gmail.com
Wed Mar 21 02:17:21 UTC 2012


>
> The following command takes a long time to execute. It should read
> very little, compute very little, and write absolutely nothing.
>
> # aptitude install some-package-that-does-not-exist
> Reading Package Lists... Done

>
> ---------- Forwarded message ----------
> From: "Manuel A. Fernandez Montecelo" <manuel.montezelo at gmail.com>

>
> The current version of aptitude doesn't show the packages being held,
> just shows the count.
>

Note that it still takes over ten times longer than apt-get even in
the trivial situation:

# time apt-get install foobar
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package foobar

real	0m2.115s
user	0m1.300s
sys	0m0.032s
# time aptitude install foobar
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Couldn't find any package matching "foobar".  However, the following
packages contain "foobar" in their description:
  lxmusic man2html
Couldn't find any package matching "foobar".  However, the following
packages contain "foobar" in their description:
  lxmusic man2html
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 508 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] n
Abort.

real	0m29.014s
user	0m13.509s
sys	0m4.744s





More information about the Aptitude-devel mailing list