/var/lib/dpkg/status 中的解析错误:“Depends”字段,无效的包名称“python:any”

/var/lib/dpkg/status 中的解析错误:“Depends”字段,无效的包名称“python:any”

我该如何修复以下错误?

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 194 MB disk space will be freed.
Do you want to continue? [Y/n] y

dpkg: parse error, in file '/var/lib/dpkg/status' near line 142 package 'python-pkg-resources':
 `Depends' field, invalid package name `python:any': character `:' not allowed (only letters, digits and characters `-+._')

E: Sub-process /usr/bin/dpkg returned an error code (2)

我运行了这个命令

head -142 /var/lib/dpkg/status | tail

并得到这个输出:

Status: install ok installed
Priority: optional
Section: python
Installed-Size: 182
Maintainer: Ubuntu Developers <[email protected]>
Architecture: all
Source: python-setuptools
Version: 3.3-1ubuntu1
Provides: python2.7-setuptools
Depends: python:any (>= 2.7), python:any (<< 2.8)

相关内容