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
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