[Aptitude-devel] Bug#816229: Packages marked to keep in Preview screen, after quitting, are marked as pending to delete w/auto flag when restarting

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sun Feb 28 22:34:22 GMT 2016


Package: aptitude
Version: 0.7.6-1
Severity: normal

(Note: please, do not reply with submit@ in the address).
 
Submitting here new bug originally #638049, because this issue is
significantly different from the other and its merged bugs (generic
"auto-install flag" problems), and having to read the old/obsolete
information again (after one forgets what the bug is about, a few
days/weeks later) gets very tiresome.

So please post related information in this address, once it's assigned,
I will close the other report.


2016-02-04 11:42 Harald Dunkel:
>I think I know how to reproduce:
>
>- install minimal Debian unstable (a container or chroot should do)
>- boot it or chroot to it
>- configure networking
>- enter aptitude and install a package with a huge list of
>  dependencies (e.g. owncloud)
>- leave aptitude
>- enter aptitude
>- mark "owncloud" to be removed (using "_")
>- hit "g" once to get the list of packages to be removed
>- mark "php5" to be kept (using "+")
>- press q
>
>Now the dependencies of php5 should have lost their "automatically
>installed" flag.
>
>Maybe you already knew, but I never saw it happening live before.
>
>
>Regards
>Harri


2016-02-23 16:01 To Harald Dunkel:
>2016-02-04 11:42 Harald Dunkel:
>>I think I know how to reproduce:
>>
>>- install minimal Debian unstable (a container or chroot should do)
>>- boot it or chroot to it
>>- configure networking
>>- enter aptitude and install a package with a huge list of
>> dependencies (e.g. owncloud)
>>- leave aptitude
>>- enter aptitude
>>- mark "owncloud" to be removed (using "_")
>>- hit "g" once to get the list of packages to be removed
>>- mark "php5" to be kept (using "+")
>>- press q
>>
>>Now the dependencies of php5 should have lost their "automatically
>>installed" flag.
>
>There have been some changes in the last few versions, specially the
>last one, related with how packages marked to install/keep are handled
>that might have affected this.
>
>With 0.7.6, after following the steps above and pressing '+', this is
>the state:
>
>
>--\ Packages to be removed (1)
>ip   owncloud                            -28.2 MB  7.0.12~dfsg-2  7.0.12~dfsg-2
>--\ Packages being removed because they are no longer used (52)
>idA  fonts-font-awesome                  -1,119 kB 4.5.0~dfsg-1   4.5.0~dfsg-1
>idA  fonts-lohit-deva                    -138 kB   2.5.3-1        2.5.3-1
>idA  fonts-sil-gentium-basic             -2,186 kB 1.1-7          1.1-7
>idA  libjs-chosen                        -333 kB   0.9.11-2       0.9.11-2
>idA  libjs-dojo-core                     -4,064 kB 1.10.4+dfsg-2  1.10.4+dfsg-2
>idA  libjs-dojo-dijit                    -5,478 kB 1.10.4+dfsg-2  1.10.4+dfsg-2
>idA  libjs-dojo-dojox                    -17.7 MB  1.10.4+dfsg-2  1.10.4+dfsg-2
>idA  libjs-jcrop                         -397 kB   0.9.13+dfsg-1  0.9.13+dfsg-1
>idA  libjs-jquery-minicolors             -100 kB   1.2.1-1        1.2.1-1
>idA  libjs-jquery-mousewheel             -53.2 kB  10-2           10-2
>idA  libjs-jquery-timepicker             -134 kB   1.2-1          1.2-1
>idA  libjs-mediaelement                  -581 kB   2.15.1+dfsg-1  2.15.1+dfsg-1
>idA  libjs-pdf                           -2,329 kB 1.1.366+dfsg-1 1.1.366+dfsg-1
>i A  libonig2                                      5.9.6-1        5.9.6-1
>idA  libphp-phpmailer                    -648 kB   5.2.14+dfsg-1  5.2.14+dfsg-1
>i A  libqdbm14                                     1.8.78-6+b2    1.8.78-6+b2
>idA  owncloud-doc                        -11.6 MB  0~20151214-1   0~20151214-1
>idA  pdf.js-common                       -2,554 kB 1.1.366+dfsg-1 1.1.366+dfsg-1
>idA  php-assetic                         -368 kB   1.3.2-1        1.3.2-1
>idA  php-doctrine-annotations            -143 kB   1.2.7-1        1.2.7-1
>idA  php-doctrine-cache                  -129 kB   1.6.0-1        1.6.0-1
>idA  php-doctrine-collections            -103 kB   1.3.0-2        1.3.0-2
>idA  php-doctrine-common                 -323 kB   2.4.3-1        2.4.3-1
>idA  php-doctrine-dbal                   -1,199 kB 2.4.5-1        2.4.5-1
>idA  php-doctrine-inflector              -32.8 kB  1.1.0-1        1.1.0-1
>idA  php-doctrine-lexer                  -52.2 kB  1.0.1-3        1.0.1-3
>idA  php-getid3                          -2,174 kB 1.9.11+dfsg-1  1.9.11+dfsg-1
>idA  php-guzzle                          -1,010 kB 3.9.3+dfsg-4   3.9.3+dfsg-4
>idA  php-json-patch                      -58.4 kB  0.1.0-2        0.1.0-2
>idA  php-opencloud                       -1,411 kB 1.16.0+dfsg-1  1.16.0+dfsg-1
>idA  php-patchwork-utf8                  -3,623 kB 1.3.0-1        1.3.0-1
>idA  php-pear                            -2,224 kB 5.6.17+dfsg-3  5.6.17+dfsg-3
>idA  php-pimple                          -39.9 kB  1.1.1-1        1.1.1-1
>idA  php-psr-log                         -60.4 kB  1.0.0-3        1.0.0-3
>idA  php-sabre-dav                       -1,038 kB 1.8.12-1       1.8.12-1
>idA  php-sabre-vobject                   -233 kB   2.1.7-1        2.1.7-1
>idA  php-seclib                          -1,252 kB 1.0.1-1        1.0.1-1
>idA  php-symfony-class-loader            -133 kB   2.7.9+dfsg-1   2.7.9+dfsg-1
>idA  php-symfony-console                 -483 kB   2.7.9+dfsg-1   2.7.9+dfsg-1
>idA  php-symfony-event-dispatcher        -121 kB   2.7.9+dfsg-1   2.7.9+dfsg-1
>idA  php-symfony-process                 -165 kB   2.7.9+dfsg-1   2.7.9+dfsg-1
>idA  php-symfony-routing                 -297 kB   2.7.9+dfsg-1   2.7.9+dfsg-1
>i    php5                                          5.6.17+dfsg-3  5.6.17+dfsg-3
>i A  php5-cli                                      5.6.17+dfsg-3  5.6.17+dfsg-3
>i A  php5-common                                   5.6.17+dfsg-3  5.6.17+dfsg-3
>idA  php5-curl                           -112 kB   5.6.17+dfsg-3  5.6.17+dfsg-3
>i A  php5-fpm                                      5.6.17+dfsg-3  5.6.17+dfsg-3
>idA  php5-gd                             -136 kB   5.6.17+dfsg-3  5.6.17+dfsg-3
>i A  php5-json                                     1.3.7-1        1.3.7-1
>idA  php5-mysql                          -274 kB   5.6.17+dfsg-3  5.6.17+dfsg-3
>idA  webfs                               -182 kB   1.21+ds1-10+b1 1.21+ds1-10+b1
>idA  zendframework                       -44.0 MB  1.12.17+dfsg-1 1.12.17+dfsg-1
>
>
>The only one causing losing 'A' now is "php5", obviously, since this is
>the one marked to install/keep with '+'.
>
>If I understand correctly, the behaviour that you were/are getting is
>packages such as php5-cli and -common to be "i " instead of "i A"?
>
>
>Cheers.
>-- 
>Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>


(This was changed due to changes in the release 0.7.6).


2016-02-25 10:20 Harald Dunkel:
>I tried it, too: On first sight the problem seems to be gone.
>But after removing owncloud (press "g" in the preview and wait
>for it to finish) php5 and its dependencies are still marked
>for removal Apparently the "+" on php5 in the preview window
>has been lost.
>
>Can you reproduce?
>
>Harri

This seems to be due to a problem different from previous (losing the A
flag).  Instead of deps of php5 losing the Auto flag as before, in 0.7.6
it doesn't loose it due to a fix of other bugs (that works fine).  But
php5 itself gets the Auto flag when it shouldn't (and as a consequence
it's immediately marked for removal upon start, due to auto-flag and no
rev-deps).  This is due to a new bug, caused because of a change to fix
yet another bug related with auto-flags being ruined.

A lot of this mess is caused by extra code of aptitude to work around
problems with how apt handled auto-flags years ago, some of which have
been fixed, and now the workarounds themselves cause problems elsewhere,
as in this case.

I have got some idea about what's going wrong, so hopefully I will fix
this soonish.


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



More information about the Aptitude-devel mailing list