Bug#1110938: apt autoremove remove network-manager-gnome and netwok-manager-applet after migration to trixie

Antoine Le Gonidec <[email protected]> Sun, 17 Aug 2025 23:58:35 +0200
Newsgroups gmane.linux.debian.user.testing
Message-ID <aKJQi0T4ijuO9K99__34243.1382554182$1755468092$gmane$org@hal9000.vv221.fr>
--ihnMLuhFf1iykIay
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I finally took some time to try and reproduce the described bug, but got
no success with that. Here is how it happened for me:
1. I create a bookworm chroot with network-manager-gnome installed in it.
2. I check that network-manager-gnome is marked as manually installed.
3. I update the sources, and upgrade the systen to Trixie. As expected,
   network-manager-applet is pulled as a dependency.
4. I check that network-manager-gnome is a candidate for removal.

And at step 4. is where I get a difference: while network-manager-gnome
is indeed a candidate for removal, network-manager-applet on the other
hand is not. So this package inherited the "manually installed" status
=66rom its parent package.

The end result is that the obsolete package is removed, and the new
package replacing it is kept. Exactly what we want.

Finding configuration differences between the system where this bug has
been noticed and the chroot I used to try (and fail) to reproduce it
might tell use what trigger the unwanted autoremoval.

If it can help, here is how I generated the chroot used to run my tests:
mmdebstrap --aptopt=3D'Acquire::http::Proxy "http://apt.vv221.fr:3142"' --i=
nclude=3Dnetwork-manager-gnome bookworm /tmp/test-chroot http://mirror.gito=
yen.net/debian
Removing options that are specific to my system, that would become:
mmdebstrap --include=3Dnetwork-manager-gnome bookworm /tmp/test-chroot

The only commands run in that chroot are:
apt-mark showmanual network-manager-gnome
sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
apt-get update
apt-get full-upgrade
apt-get autoremove
apt-mark showmanual network-manager-applet

--ihnMLuhFf1iykIay
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSUsdxM90hewW6X7Jhja3j5HOuA2AUCaKJQhwAKCRBja3j5HOuA
2J+jAP49HUTmwU3kvJcisZGg0ngBEe1TB3YmgGtiqCg5yAqCiwD/Q8hQR6KtPvHW
8cF4SSbDxs2HU35SkP1A0RzdPvZchQk=
=E40D
-----END PGP SIGNATURE-----

--ihnMLuhFf1iykIay--