Add command to mark software-properties-gtk as held after installation

This commit is contained in:
Anduin Xue 2025-05-17 08:55:19 +00:00
parent 8def16532a
commit ccc8eb1996
No known key found for this signature in database
GPG Key ID: D33FA9407A6BE728
1 changed files with 4 additions and 0 deletions

View File

@ -46,3 +46,7 @@ sudo sed -i '/^from \.UbuntuProPage import UbuntuProPage$/d' "$FILE"
sudo sed -i '/^[[:space:]]*def init_ubuntu_pro/,/^[[:space:]]*$/d' "$FILE"
sudo sed -i '/^[[:space:]]*if is_current_distro_lts()/,/self.init_ubuntu_pro()/d' "$FILE"
judge "Edit $FILE"
print_ok "Marking software-properties-gtk as held..."
apt-mark hold software-properties-gtk
judge "Mark software-properties-gtk as held"