Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwoolweaver opened this issue Jun 16, 2024 · 4 comments · May be fixed by #17
Open

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

mwoolweaver opened this issue Jun 16, 2024 · 4 comments · May be fixed by #17

Comments

@mwoolweaver
Copy link

mwoolweaver commented Jun 16, 2024

apt-cache show distro-info

Package: distro-info
Architecture: amd64
Version: 1.7build1
Priority: important
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Benjamin Drung <[email protected]>
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 #17

@Skyedra
Copy link
Owner

Skyedra commented Jun 16, 2024

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
Copy link
Author

mwoolweaver commented Jun 16, 2024

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
Copy link

notwa commented Jul 3, 2024

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

@mwoolweaver
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants