Received Sat 12 May 2007 12:52am +1000 from Thomas Quas:
> Hm, what I get here is this:
> 
> $ sudo apt-get remove wajig
> Reading package lists... Done
> Building dependency tree... Done
> The following packages will be REMOVED:
>   wajig
> 0 upgraded, 0 newly installed, 1 to remove and 79 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B of archives.
> After unpacking 446kB disk space will be freed.
> Do you want to continue [Y/n]? 
> dpkg: error processing wajig (--remove):
>  Package is in a very bad inconsistent state - you should
>  reinstall it before attempting a removal.
> Errors were encountered while processing:
>  wajig
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> $ sudo apt-get install wajig
> Reading package lists... Done
> Building dependency tree... Done
> Suggested packages:
>   dpkg-repack gkdebconf gnome-tasksel apt-show-versions
> The following packages will be upgraded:
>   wajig
> 1 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/96.7kB of archives.
> After unpacking 0B of additional disk space will be used.
> Reading changelogs... Done
> Selecting previously deselected package wajig.
> (Reading database ... 360163 files and directories currently installed.)
> Preparing to replace wajig 2.0.35
> (using .../archives/wajig_2.0.36_all.deb) ...
> 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: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> 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 /var/cache/apt/archives/wajig_2.0.36_all.deb
> (--unpack):
>  subprocess new 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:
>  /var/cache/apt/archives/wajig_2.0.36_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)


Received Sat 12 May 2007 12:49am +1000 from Thomas Quas:
> It worked. I figured that the
>
> $ sudo rm /var/lib/dpkg/wajig.prerm
>
> as described on the issue report should really be
>
> $ sudo rm /var/lib/dpkg/info/wajig.prerm
>
>
> My fault. Sorry for the inconvenience.
>
>
> -tom


Actually, my fault! Sorry about the bad information. You are
absolutely correct that I missed the "info" bit in the path.

Sorry for that.

Regards,
Graham


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to