[Aptitude-devel] Bug#1061734: aptitude: in TUI, incorrect "will be automatically removed because of dependency errors" message

Vincent Lefevre vincent at vinc17.net
Mon Jan 29 11:18:48 GMT 2024


Note that there was a similar bug in the past (2005, fixed in 2016):

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342835

with title:

  aptitude: "X will be automatically removed because of dependency errors:"
  then no errors shown

On 2024-01-29 11:20:45 +0100, Vincent Lefevre wrote:
> When I choose to upgrade swig from the TUI, I get the incorrect message
> 
> ------------------------------------------------------------
> swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of
> dependency errors:
> ------------------------------------------------------------
> 
> with nothing else.

I cannot reproduce this issue on another machine, which doesn't have
a foreign architecture. I get just after 'g' and putting the cursor
over the swig4.0 line:

------------------------------------------------------------
swig4.0 (remove, 4.1.0-0.3) will be automatically removed because of dependency
errors:

  * swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) conflicts with swig4.0
------------------------------------------------------------

However, AFAIK, it will be automatically removed not because of the
conflict, but because the new swig package no longer depends on it
(on both machines, swig4.0 is marked as automatically installed).

This is a different message from

> Then, when I type ':' over the swig4.0 line, this message changes to:
> 
> ------------------------------------------------------------
> swig4.0 (remove, 4.1.0-0.3) was installed automatically; it is being removed
> because all of the packages which depend upon it are being removed:
> 
>   * swig (upgrade, 4.1.0-0.3 -> 4.2.0-1) depends on swig4.0 (>= 4.1.0-0.3)
>     (provided by swig4.0:i386 4.1.0-0.3)
> ------------------------------------------------------------

-- 
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 / AriC project (LIP, ENS-Lyon)



More information about the Aptitude-devel mailing list