1

I type sudo apt install ufw then is says:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

So I write sudo dpkg --configure -a then It says:

dpkg: error: parsing file '/var/lib/dpkg/updates/0006' near line 0:
 newline in field name '#padding'
graham
  • 10,436
Mark T
  • 11

1 Answers1

0

Remove problematic file with

sudo rm /var/lib/dpkg/updates/0006

and then retry

sudo apt-get upgrade
sudo apt-get install ufw
sudo apt-get install -f
sudo dpkg --configure -a
N0rbert
  • 99,918
  • I tried to write sudo rm /var/lib/dpkg/updates/0006 but it said rm: cannot remove '/var/lib/dpkg/updates/0006': No such file or directory – Mark T Mar 24 '21 at 15:37
  • 1
    I did this https://askubuntu.com/a/213738/1195405 and it works – Mark T Mar 24 '21 at 16:05