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'

1 Answer 1

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
2
  • 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, 2021 at 15:37
  • 1
    I did this askubuntu.com/a/213738/1195405 and it works
    – Mark T
    Mar 24, 2021 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .