Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Created June 19, 2026 08:49
Show Gist options
  • Select an option

  • Save julian-klode/1facd46d957f7bc7e0b123f52673aef9 to your computer and use it in GitHub Desktop.

Select an option

Save julian-klode/1facd46d957f7bc7e0b123f52673aef9 to your computer and use it in GitHub Desktop.
--- a/DistUpgradeQuirks.py 2026-01-19 14:22:43.000000000 +0000
+++ DistUpgradeQuirks.py 2026-06-19 08:48:21.997346301 +0000
@@ -1794,6 +1794,9 @@
"""
LP: #2061175
"""
+
+ replacements = []
+
for package in self.controller.cache:
if not package.is_installed:
continue
@@ -1848,6 +1851,7 @@
# Transition the automatically installed bit
from_user = not package.is_auto_installed
+ replacements.append(replacement)
replacement.mark_install(auto_fix=False, auto_inst=False,
from_user=from_user)
package.mark_delete(auto_fix=False)
@@ -1862,6 +1866,13 @@
f'Failed to find a replacement for {package.name}'
)
+ # Install dependencies of replacements
+ for replacement in replacements:
+ from_user = not replacement.is_auto_installed
+ replacement.mark_install(auto_fix=False, auto_inst=True,
+ from_user=from_user)
+
+
def _handle_ufw_breaks(self):
"""
LP: #2061891
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment