# dpkg --force-remove-reinstreq --remove wajig
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 288659 files and directories currently installed.)
Removing wajig ...
INFO: using old version '/usr/bin/python2.3'
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in ?
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 945, in run
pkg.read_version_info()
File "/usr/bin/pycentral", line 539, in read_version_info
raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error processing wajig (--remove):
subprocess pre-removal script returned error exit status 1
INFO: using old version '/usr/bin/python2.3'
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in ?
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 869, in run
pkg.read_version_info()
File "/usr/bin/pycentral", line 539, in read_version_info
raise PyCentralError, "package has no field Python-Version"
__main__.PyCentralError: package has no field Python-Version
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
wajig
Каквото и да се опитвах да направя, резултата беше един и същ.
Но все пак намерих решение на проблема. Ето го:
1. Създаване на бек-ъп на /var/lib/dpkg/status:
- Код за потвърждение: Избери целия код
# cp /var/lib/dpkg/status /var/lib/dpkg/status.bak
2. Отваряме /var/lib/dpkg/status с текстови редактор:
- Код за потвърждение: Избери целия код
# kate /var/lib/dpkg/status
3. Намираме къде е описан пакета wajig и изтриваме редовете:
Package: wajig
Status: deinstall reinstreq half-configured
Priority: optional
Section: admin
Installed-Size: 436
Maintainer: Graham Williams <Graham>
Architecture: all
Version: 2.0.35
Config-Version: 2.0.34
Depends: python, python-central (>= 0.5.8), apt, python-apt, dselect
Suggests: wget, fping, debconf, reportbug, apt-move, dpkg-repack, alien, fakeroot, gkdebconf, lynx, python-gtk2, python-glade2, python-gnome2, gnome-terminal, locales, gnome-tasksel, deborphan, vrms, sudo, apt-show-versions
Conffiles:
/etc/bash_completion.d/wajig 89ddd4478b26223ca3858de6e18cfd6a
Description: simplified Debian package management front end
Wajig is a single commandline wrapper around apt, apt-cache, dpkg,
/etc/init.d scripts and more, intended to be easy to use and providing
extensive documentation for all of its functions.
.
With a suitable sudo(1) configuration, most (if not all) package installation
as well as creation tasks can be done from a user shell. Wajig is also
suitable for general system administration.
.
A Gnome GUI command 'gjig' is also included in the package.
4. Инсталираме отново wajig:
- Код за потвърждение: Избери целия код
# apt-get update
# apt-get install wajig
Toва е. Дано да ви помогне при подобни проблеми.
Източник