dpkg:解析错误

dpkg:解析错误

我从前几天开始安装软件中心的任何软件包时都收到此错误。我尝试用 /var/backups/ 中的任何备份状态文件替换状态文件,但仍然收到相同的错误。

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

由于声誉较低,我无法上传屏幕截图,但下面我已按照状态文件中的行编号。

104.Package: python-pkg-resources 
105.Status: install ok installed
106.Priority: optional 
107.Section: python
108.Installed-Size: 182
109.Maintainer: Ubuntu Developers <[email protected]>
110.Architecture: all
111.Source: python-setuptools
112.Version: 3.3-1ubuntu1
113.Provides: python2.7-setuptools
114.Depends: python:any (>= 2.7), python:any (<< 2.8)
115.Suggests: python-distribute, python-distribute-doc
116.Conflicts: python-setuptools (<< 0.6c8-3)
117.Description: Package Discovery and Resource Access using pkg_resources
118.The pkg_resources module provides an API for Python libraries to
119.access their resource files, and for extensible applications and
120.frameworks to automatically discover plugins.  It also provides
121.runtime support for using C extensions that are inside zipfile-format

我能够从源代码安装软件包,但每当我尝试从软件中心或 Synaptic 软件包管理器安装软件包时,都会出现此错误:

There seems to be a programming error in aptdaemon, the software that allows you to install/remove software and to perform other package management related tasks.

相关内容