[Bug 1552792] Re: gnome software leaves dependencies installed
Ken VanDine
ken.vandine at canonical.com
Fri Nov 16 19:53:07 UTC 2018
I've verified this fixes the issue with the following versions:
packagekit=1.1.9-1ubuntu2.18.04.4
gnome-software=3.28.1-0ubuntu4.18.04.7
** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to packagekit in Ubuntu.
https://bugs.launchpad.net/bugs/1552792
Title:
gnome software leaves dependencies installed
Status in GNOME Software:
Invalid
Status in Release Notes for Ubuntu:
Fix Released
Status in gnome-software package in Ubuntu:
Fix Released
Status in packagekit package in Ubuntu:
Fix Released
Status in gnome-software source package in Bionic:
Fix Committed
Status in packagekit source package in Bionic:
Fix Committed
Status in gnome-software source package in Cosmic:
Fix Released
Status in packagekit source package in Cosmic:
Fix Released
Bug description:
[Impact]
Installing an application them removing it leaves dependencies behind.
[Test Case]
1. Ensure that GNOME Sudoku is not installed:
$ sudo apt remove gnome-sudoku libqqwing2v5
2. Check if you have any packages that need autoremoval:
$ sudo apt autoremove --no-act
3. Open GNOME Software.
4. Search for and install GNOME Sudoku (make sure to install the .deb, not the snap).
5. Uninstall GNOME Sudoku.
6. Check if you have any packages that need autoremoval:
$ sudo apt autoremove --no-act
Expected result:
The packages in step 6 are the same as in step 2 (which might be none).
Observed result:
The packages in step 6 includes libqqwing2v5, which is a dependency of gnome-sudoku and not useful without the game installed.
[Regression Potential]
This requires a fix to PackageKit which used to autoremove all packages (too aggressive), not just the ones related to the current transaction. A bug in the code could cause more packages to be removed than is suitable. GNOME Software previously didn't use this autoremove functionality, so by enabling it we could trigger a problem in either the existing code or the new fix.
To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-software/+bug/1552792/+subscriptions
More information about the foundations-bugs
mailing list