[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1069275: apt: random display of the "Summary:" line



Hi,
I noticed this by chance, so I did some testing to find why the same command produces two different outputs (note that I ran the commands one after the other, as root, in the same session).

If you find the "apt autoremove --purge" command in the sequence of the commands I have indicated, you will notice that it appears three times:

- in second position produces this output:

$ apt autoremove --purge
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

- in seventh position it produces the same output

$ apt autoremove --purge
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

but the same command, in the fifteenth position produces a different output:

$ apt-get autoremove --purge
0 updated, 0 installed, 0 to be removed and 0 not updated.

what has changed? I would always expect the same output...

It seems like this is a random issue because it doesn't always happen (and I don't know how to reproduce it).


Il 19/04/24 13:28, Julian Andres Klode ha scritto:
On Fri, Apr 19, 2024 at 10:06:31AM +0200, Antonio wrote:
Package: apt
Version: 2.9.1
Severity: minor
X-Debbugs-Cc: antdev66@gmail.com

Dear Maintainer,
I report a minor bug on apt that I sometimes get by running the commands
below
in sequence.

Note that in the last commands the "Summary:" line is not displayed whereas
previously, with the same commands, it was displayed.

I tried this sequence as root; as a user I see that the word "Summary" never
appears.

Seems to be a random problem.
Thank you for your bug report,

looking at your output, everything seems to be in order:

All your apt(8) executions use the apt(8) modern interface,
and all your apt-get(8) executions use the classic interface
- as they should for backwards-compatibility.

Is it possible your muscle memory is playing tricks on you, making
you type sudo apt-get whereas you use apt as a user?

But maybe I missed it, so do double check.

Have a nice day!

-- SEQUENCE --

$ apt autoremove
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

$ apt autoremove --purge
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

$ sudo apt autoremove --purge
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

$ (sudo apt autoremove --purge)
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

These are all apt(8) with the modern interface.

$ gawk '{print}'< <(sudo apt-get autoremove; sudo apt-get clean; sudo
apt-get
autoclean; sudo apt-get -f install; sudo apt-get check)
Lettura elenco dei pacchetti...
Generazione albero delle dipendenze...
Lettura informazioni sullo stato...
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
Lettura elenco dei pacchetti...
Generazione albero delle dipendenze...
Lettura informazioni sullo stato...
Lettura elenco dei pacchetti...
Generazione albero delle dipendenze...
Lettura informazioni sullo stato...
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
Lettura elenco dei pacchetti...
Generazione albero delle dipendenze...
Lettura informazioni sullo stato...
These are all apt-get(8) with the classic interface.

$ apt autoremove
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

$ apt autoremove --purge
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

$ (sudo apt autoremove --purge)
Summary:
   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
These are all apt(8) and all have the summary line.

$ sudo apt-get autoremove; sudo apt-get clean; sudo apt-get autoclean; sudo
apt-get -f install; sudo apt-get check
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ sudo apt-get autoremove
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ sudo apt-get autoremove
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ sudo apt-get autoremove --purge
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ sudo apt-get autoremove --purge
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ apt-get autoremove
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

$ apt-get autoremove --purge
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
These are all apt-get(8) which uses the classic interface.



Reply to: