[Aptitude-devel] Bug#816497: aptitude: problems with (un)markauto

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Thu Mar 3 01:57:51 UTC 2016


Control: tags -1 + moreinfo


Hi Jörg,

2016-03-02 11:03 Jörg-Volker Peetz:
>Package: aptitude
>Version: 0.7.7-1
>Severity: normal
>
>Dear Maintainer Team,
>
>after upgrading to gnupg2 (from gnupg) due to upgrading enigmail,
>the command "aptitude unmarkauto gnupg2" does not work according
>to the output of
>
>  aptitude -F '%M %p' search gnupg2
>
>and
>
>  apt-mark showmanual gnupg2
>
>After commanding
>
>  apt-mark manual gnupg2
>
>only "apt-mark" shows that package gnupg2 is now marked as "manually
>installed".

Seems to work fine around here:

  # aptitude -F '%M %p' search '~n^gnupg2$~ramd64'
  A gnupg2

  # aptitude markauto '~n^gnupg2$~ramd64'
  No packages will be installed, upgraded, or removed.
  0 packages upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
  Need to get 0 B of archives. After unpacking 0 B will be used.

  # aptitude -F '%M %p' search '~n^gnupg2$~ramd64'
  A gnupg2

  # aptitude unmarkauto '~n^gnupg2$~ramd64'
  No packages will be installed, upgraded, or removed.
  0 packages upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
  Need to get 0 B of archives. After unpacking 0 B will be used.

  # aptitude -F '%M %p' search '~n^gnupg2$~ramd64'
    gnupg2

  # aptitude markauto '~n^gnupg2$~ramd64'
  No packages will be installed, upgraded, or removed.
  0 packages upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
  Need to get 0 B of archives. After unpacking 0 B will be used.

  # aptitude -F '%M %p' search '~n^gnupg2$~ramd64'
  A gnupg2

  # aptitude unmarkauto '~n^gnupg2$~ramd64'
  No packages will be installed, upgraded, or removed.
  0 packages upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
  Need to get 0 B of archives. After unpacking 0 B will be used.

  # aptitude -F '%M %p' search '~n^gnupg2$~ramd64'
    gnupg2


If by not working you mean that it doesn't show messages like apt-mark:

  # apt-mark manual gnupg2
  gnupg2 was already set to manually installed.

this is because aptitude is more quiet by default, and you need to pass
"-v" or similar to get it to tell you something.


>In /var/lib/aptitude/pkgstates also the "State" of gnupg2 does not
>change.

This is out-sourced to apt, in the file:

  /var/lib/apt/extended_states


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



More information about the Aptitude-devel mailing list