I flashed the latest version of raspbian-lite to an SD card and booted my Model B from it. I changed the hostname and other config settings in
raspi-config, then reboted and tried to run
sudo apt update && sudo apt upgrade which failed:
Extracting templates from packages: 100% Preconfiguring packages ... dpkg: error: fgets gave an empty string from '/var/lib/dpkg/triggers/File' E: Sub-process /usr/bin/dpkg returned an error code (2)
I noticed this post, which instructed me to run
sudo apt-get clean to resolve the issue, but the problem still persists. What can I do to make aptitude function properly?