在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
...
网友评论