Skyedra / UnspamifyUbuntu

Remove spam from Ubuntu
MIT License
160 stars 9 forks source link

after installing fake-ubuntu-advantage-tools.deb apt wants to autoremove distro-info #16

Open mwoolweaver opened 3 months ago

mwoolweaver commented 3 months ago

apt-cache show distro-info

Package: distro-info
Architecture: amd64
Version: 1.7build1
Priority: important
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Benjamin Drung <bdrung@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 78
Depends: distro-info-data (>= 0.59~), libc6 (>= 2.34)
Suggests: shunit2
Filename: pool/main/d/distro-info/distro-info_1.7build1_amd64.deb
Size: 19874
MD5sum: 28fec9de2f02a2f91bef1c1d978c7f0c
SHA1: 353dda4b023623e4e9a94c210772f0cce065692c
SHA256: e93fb6f8e178de630c64abe15982d1695f6dadbd6b36617dc08cbda1b72b223c
SHA512: b3e280ab15176431891845cea33e11ce7349a2c143ef75ec38c00ffba11909238a448d0db4cdfdcf54c873fbb749cc16d42eeed5d1d82b94b95dd79199a9a7ae
Description-en: provides information about the distributions' releases
 Information about all releases of Debian and Ubuntu. The distro-info script
 will give you the codename for e.g. the latest stable release of your
 distribution. To get information about a specific distribution there are the
 debian-distro-info and the ubuntu-distro-info scripts.
Description-md5: 5671943e370fd3dd7449d885e6363cee
Task: cloud-minimal, minimal

Launchpad.net link: https://packages.ubuntu.com/noble-updates/ubuntu-pro-client

it seems that distro-info is a dependency of ubuntu-pro-client

should this package be added as a dependency??

if so see Pull Request https://github.com/Skyedra/UnspamifyUbuntu/pull/17

Skyedra commented 3 months ago

Thank you;

IMO, it seems weird for this package to introduce it as a dependency if we don't actually depend on it.

Using reverse dependency search, I can see that distro-info depends on distro-info-data which is depended on update-manager-core (along with others like debdate, python3-apt, etc). So my thought is that it would be better to not force the user into arbitrarily having this package -- they can still install it manually, or it shouldn't be autoremoved if something else is using it.

mwoolweaver commented 3 months ago

Using reverse dependency search, I can see that distro-info depends on distro-info-data which is depended on update-manager-core (along with others like debdate, python3-apt, etc).

I only mentioned adding cause after installing fake-ubuntu-advantage-tools.deb apt upgrade prompted me to use 'apt autoremove` to remove it.

So my thought is that it would be better to not force the user into arbitrarily having this package -- they can still install it manually, or it shouldn't be autoremoved if something else is using it.

works for me and I'll close #17

notwa commented 3 months ago

fwiw, I noticed the autoremove prompt as well, and settled on running sudo apt-mark manual distro-info before (or after) installing package.

mwoolweaver commented 3 months ago

hopefully this issue will help people figure why it started happening and also provides a couple options for a fix as well.