dpkg: error: parsing file '/var/lib/dpkg/updates/0002' near line 0:newline in field name `#padding'

出现如题的错误时,输入如下命令:

sudo rm /var/lib/dpkg/updates/*

sudo apt-get update

sudo apt-get upgrade

你可能感兴趣的:(linux)