然后我输入的sudo apt install ufw
是:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
于是我写道sudo dpkg --configure -a
:
dpkg: error: parsing file '/var/lib/dpkg/updates/0006' near line 0:
newline in field name '#padding'
答案1
使用以下方法删除有问题的文件
sudo rm /var/lib/dpkg/updates/0006
然后重试
sudo apt-get upgrade
sudo apt-get install ufw
sudo apt-get install -f
sudo dpkg --configure -a