Bug#949069: "apt autoremove" doesn't remove an automatic package with 0 dependents

2020-01-16 Thread Mario E. Weisz
package: apt
version: 1.8.2

I'm refiling this report since it was wrongly marked as resolved.

to reproduce the problem, run these commands on a fresh Ubuntu or Debian 
installation:
$ apt install postgresql-11
$ apt purge postgresql-11
$ apt autoremove

a dependency named "postgresql-client-11" doesn't get autoremoved despite 
having 0 dependents:
$ apt rdepends "postgresql-client-11 --installed

returns nothing.

*these commands were executed literally after installing the distro (Ubuntu and 
Debian)
*the dependency can be removed manually
*this doesn't happen with aptitude

Bug#948728: (No Subject)

2020-01-15 Thread Mario E. Weisz
In case anyone is interested, I filed a bug report for APT:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948735

>postgresql-client-11
sounds like a bug but the dev seems to be ignoring it.

>postgresql-common
I found this:
https://www.postgresql.org/message-id/cabuevewgx16f-%2bwpk-rkh%2brufgcpveg0xjcwazoobyzka_j...@mail.gmail.com

Bug#948735: (No Subject)

2020-01-15 Thread Mario E. Weisz
if you can't explain this behavior or don't have time to look into it then at 
least don't keep this bug report marked as resolved.

Bug#948735: (No Subject)

2020-01-14 Thread Mario E. Weisz
Julian? Anyone?

Bug#948735: apt doesn't completely remove "postgresql-11" dependencies

2020-01-12 Thread Mario E. Weisz
Thank you for your response.

>Probably something installed depends, recommends, or suggests the 
>postgresql-client that it provides.

$ apt rdepends postgresql-client-11 --installed

returns nothing (empty result).

The install/remove/autoremove sequence was executed right after a fresh 
installation.



Bug#948735: apt doesn't completely remove "postgresql-11" dependencies

2020-01-12 Thread Mario E. Weisz
package: apt
version: 1.8.2

Note: This was attempted on *fresh* Debian and Ubuntu installations.

$ apt install postgresql-11
$ apt purge postgresql-11
$ apt autoremove

leaves these packages behind:
postgresql-client-11
postgresql-client-common
postgresql-common

I checked the dependents using "apt rdepends $package"
postgresql-client-11: no dependents
postgresql-client-common: postgresql-client-11, postgresql-common
postgresql-common: logrotate

It makes no sense that "postgresql-client-11" was not removed. It's an 
automatic package with no dependents. (aptitude removes it automatically).

As for "postgresql-common" becoming a dependency for "logrotate", it doesn't 
make sense to me either, but I don't know if it's a bug or not.

I contacted a Postgres package maintainer and he believes APT is to blame here.

Bug#948728: (No Subject)

2020-01-12 Thread Mario E. Weisz
Sorry, I skimmed through the bug report instructions page, didn't realize this 
was going to be forwarded to team+postgre...@tracker.debian.org.

Bug#948728: apt doesn't completely remove "postgresql-11" dependencies

2020-01-12 Thread Mario E. Weisz
package: postgresql-11
version: 11.5-1+deb10u1

Note: This was attempted on *fresh* Debian and Ubuntu installations.


$ sudo apt install postgresql-11
$ sudo apt purge postgresql-11
$ sudo apt autoremove

leaves these packages behind:
postgresql-client-11
postgresql-client-common
postgresql-common


I checked the dependents using "apt rdepends $package"
postgresql-client-11: no dependents
postgresql-client-common: postgresql-client-11, postgresql-common
postgresql-common: logrotate



It makes no sense that "postgresql-client-11" was not removed. It's an 
automatic package with no dependents. (aptitude removes it automatically).

As for "postgresql-common" becoming a dependency for "logrotate", it doesn't 
make sense to me either, but I don't know if it's a bug or not.



I contacted a Postgres package maintainer and he believes APT is to blame here.