
自從最近幾天以來,我在從軟體中心安裝任何軟體包時收到此錯誤。我嘗試用 /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.