美文网首页
dpkg: error: parsing file '/var/

dpkg: error: parsing file '/var/

作者: 小田BSP | 来源:发表于2021-04-19 22:00 被阅读0次

Ubuntu 18.04系统下,安装python3时遇到以下问题:

root@ubuntu:/home/run/code# apt-get install python3
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
root@ubuntu:/home/run/code# dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0026' near line 0:
 newline in field name '#padding'

记录下解决方法:

root@ubuntu:/home/run/code# rm /var/lib/dpkg/updates/*
root@ubuntu:/home/run/code# apt-get update
root@ubuntu:/home/run/code# apt-get upgrade
root@ubuntu:/home/run/code# apt-get install python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
...

相关文章

网友评论

      本文标题:dpkg: error: parsing file '/var/

      本文链接:https://www.haomeiwen.com/subject/eabwlltx.html