[Aptitude-devel] Bug#934541: aptitude: upgraded a package to experimental without notice, though SolutionCost has "safety" first

Vincent Lefevre vincent at vinc17.net
Tue Mar 18 14:32:45 GMT 2025


On 2025-03-18 15:17:08 +0100, Vincent Lefevre wrote:
> To reproduce, at
> 
>   --\ editors        Text editors and word processors (2)
>     --\ main           The main Debian archive (2)
> i A emacs-bin-common           1:30.1+1-4               1:30.1+1-4+b1
> i   emacs-gtk                  1:30.1+1-4               1:30.1+1-4+b1
> 
> type '+' over "main", then type '.' until an upgrade is proposed
> without removals:
[...]
> Same issue if I type '+' over "emacs-gtk" instead of "main".

Actually, the '+' over "emacs-gtk" is fine since the proposed
removal is just libtree-sitter0, which is OK.

This is clearer with "examine". When typing '+' over "main":

[...]
    --\ main           The main Debian archive (2)
idA emacs-bin-common -364 kB   1:30.1+1-4               1:30.1+1-4+b1
iB  emacs-gtk                  1:30.1+1-4               1:30.1+1-4
[...]
[1(1)/...] Actions: 1 keep
e: Examine  !: Apply  .: Next  ,: Previous

then 'e' to examine:

  --\ Keep the following packages at their current version:
    emacs-bin-common                                 [1:30.1+1-4 (now, testing)]
[...]
[1(1)/...] Actions: 1 keep

and '.' several times:

  --\ Remove the following packages:
    emacs-gtk                                        [1:30.1+1-4 (now, testing)]
    libtree-sitter0                                   [0.22.6-4 (now, unstable)]
  --\ Install the following packages:
    emacs-pgtk                                        [1:30.1+1-4+b1 (unstable)]
    libtree-sitter0.22                                     [0.22.6-6 (unstable)]
  --\ Upgrade the following packages:
    emacs-bin-common         [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
[...]
[2(2)/...] Actions: 2 installs, 2 removals, 1 upgrade

  --\ Remove the following packages:
    emacs-gtk                                        [1:30.1+1-4 (now, testing)]
    libtree-sitter0                                   [0.22.6-4 (now, unstable)]
  --\ Install the following packages:
    emacs-nox                                         [1:30.1+1-4+b1 (unstable)]
    libtree-sitter0.22                                     [0.22.6-6 (unstable)]
  --\ Upgrade the following packages:
    emacs-bin-common         [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
[...]
[3(3)/...] Actions: 2 installs, 2 removals, 1 upgrade

  --\ Remove the following packages:
    emacs-gtk                                        [1:30.1+1-4 (now, testing)]
    libtree-sitter0                                   [0.22.6-4 (now, unstable)]
  --\ Install the following packages:
    emacs-lucid                                       [1:30.1+1-4+b1 (unstable)]
    libtree-sitter0.22                                     [0.22.6-6 (unstable)]
    xaw3dg                                      [1.5+F-2+b1 (testing, unstable)]
  --\ Upgrade the following packages:
    emacs-bin-common         [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
[...]
[4(4)/...] Actions: 3 installs, 2 removals, 1 upgrade

  --\ Remove the following packages:
    emacs-calfw                     [1.6+git20180118-2 (now, testing, unstable)]
    emacs-gtk                                        [1:30.1+1-4 (now, testing)]
    emacs                                  [1:30.1+1-4 (now, testing, unstable)]
  --\ Leave the following recommendations unresolved:
    apel recommends emacs-nox | emacs
    flim recommends emacs-nox | emacs
    w3m-el recommends emacs-nox | emacs
[...]
[5(5)/...] Actions: 3 removals

  --\ Install the following packages:
    libtree-sitter0.22                                 [0.22.6-5 (experimental)]
  --\ Upgrade the following packages:
    emacs-bin-common         [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
    emacs-gtk                [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
[...]
[6(6)/...] Actions: 1 install, 2 upgrades

This is the first one without the removal of emacs-gtk, but with
the upgrade of libtree-sitter0.22 to 0.22.6-5 (experimental).

The expected solution is obtained only at 10:

  --\ Remove the following packages:
    libtree-sitter0                                   [0.22.6-4 (now, unstable)]
  --\ Install the following packages:
    libtree-sitter0.22                                     [0.22.6-6 (unstable)]
  --\ Upgrade the following packages:
    emacs-bin-common         [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
    emacs-gtk                [1:30.1+1-4 now, testing -> 1:30.1+1-4+b1 unstable]
[...]
[10(10)/...] Actions: 1 install, 1 removal, 2 upgrades

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)



More information about the Aptitude-devel mailing list