This command was reported to successfully work around this bug: sudo sed -i 's/^Automatically/# Automatically/g' /var/lib/dpkg/info /base-files.postinst
It changes any lines starting with "Automatically" into comments, which lets the script finish properly when you run: sudo dpkg --configure base-files Or just run this afterwards: sudo apt -f install -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836236 Title: 9.4ubuntu4.9: Broken package because of missing "#" @ /var/lib/dpkg/info/base-files.postinst +131 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1836236/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs