dpkg:error: 解析文件 '/var/lib/dpkg/status' 靠近 1146 行包 'python-minimal'

elv*_*ite 5 server package-management apt dpkg 12.04

我正在升级 sudo apt-get upgrade

我按下后Enter

do you want to continue [y/n]? y
debconf: apt-extracttemplates failed:No such file or directory
extracting templates from package: 100%
dpkg:error:parsing file '/var/lib/dpkg/status' near line 1146 package 'python-minimal'
'break' field, invalid package name 'python-de~': Character '~' not allowed (only letters,digits and character '-+._')
E:Sub-process /usr/bin/dpkg returned an error code (2)
Run Code Online (Sandbox Code Playgroud)

如何修复或编辑这个???

Jam*_*ude 1

Python 安装后脚本中似乎存在拼写错误。这可能是由某种互联网错误引起的......

尝试这个:

(按CTRL- ALT-T进入终端)

sudo apt-get purge python-minimal
sudo apt-get update
sudo apt-get install python-minimal
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

如果这不起作用,请尝试使用 Aptitude 而不是apt-get.

如果不起作用,请发表评论并告诉我出了什么问题。