• Bug#1076788: adequate: Messes up the console apt was running from

    From Guillem Jover@21:1/5 to Antti Kultanen on Fri Aug 9 00:10:02 2024
    Control: forcemerge -1 1077210
    Control: reassign -1 adequate
    Control: affects -1 apt
    Control: severity -1 serious
    Control: retitle -1 adequate: Messes up the console apt was running from

    Hi!

    [ Merged both bugs, as I see adequate being setup in both systems. ]

    On Tue, 2024-07-23 at 13:08:19 +0300, Antti Kultanen wrote:
    Package: apt
    Version: 2.9.6
    Severity: important

    apt-get has started misbehaving. Installing any package on the text console terminates the session and throws me back to the login screen when the installation process is done.

    Steps to reproduce:
    1) Login to text console as root (or as a user & then su/sudo to root)
    2) install or reinstall any package, for example:
    apt-get -y --reinstall install bash

    expected result:
    3) package gets installed and nothing else

    actual result:
    3) package gets installed, shell terminates & returns to console login.

    Some notes: Not dependent on shell (tested zsh, bash, sash). Not dependent
    on the package (using bash just as an example). dpkg -i works fine. If running inside screen or ssh session, does not terminate shell but job control (CTRL-C, CTRL-Z) stops working. Same result when using apt instead
    of apt-get.

    I am attaching an strace of running 'strace apt-get -y --reinstall install bash' in a text console root sash shell session in case it helps.

    [ Nice debugging session, BTW! :) ]

    I had also seen this, and after some arduous bisecting and comparison
    with a freshly installed system I finally was able to track it down to adequate. Removing the packages gets rid of the misbehavior.

    I've not looked further whether the adequate code itself is messing up
    the console, or something else, but removing it definitely fixes this,
    which I also got confirmation of from gregor herrmann.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antti Kultanen@21:1/5 to Guillem Jover on Fri Aug 9 09:40:02 2024
    On Fri, 9 Aug 2024, Guillem Jover wrote:

    I had also seen this, and after some arduous bisecting and comparison
    with a freshly installed system I finally was able to track it down to adequate. Removing the packages gets rid of the misbehavior.

    I've not looked further whether the adequate code itself is messing up
    the console, or something else, but removing it definitely fixes this,
    which I also got confirmation of from gregor herrmann.

    Yes! I can verify that uninstalling 'adequate' fixes my apt problem too.
    Thank you for your time and effort in figuring out this annoyance.

    --Antti

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)