When creating the Ubuntu Budgie Pi image, we ran into this same issue. The packages are removed through /usr/sbin/oem-config-remove-gtk but leave behind these same packages. If we mount and chroot into the image, and modify oem-config-remove-gtk and change:
this seems to "fix" the issue. After setup, there are no packages to autoremove. I have tested this not only on our Budgie Kinetic Pi image, but also on the Ubuntu Kinetic RasPi Preinstalled Desktop image.
When creating the Ubuntu Budgie Pi image, we ran into this same issue. The packages are removed through /usr/sbin/ oem-config- remove- gtk but leave behind these same packages. If we mount and chroot into the image, and modify oem-config- remove- gtk and change:
def _on_transaction (trans) : og(trans)
apt_dialog = AptProgressDial
...
to:
def _on_transaction (trans) :
trans. set_remove_ obsoleted_ depends( remove_ obsoleted_ depends= True) og(trans)
apt_dialog = AptProgressDial
this seems to "fix" the issue. After setup, there are no packages to autoremove. I have tested this not only on our Budgie Kinetic Pi image, but also on the Ubuntu Kinetic RasPi Preinstalled Desktop image.