python-tz issue with 9.04, 9.10

Marius Gedminas marius at pov.lt
Tue Aug 10 12:57:16 UTC 2010


On Tue, Aug 10, 2010 at 12:47:11AM -0700, david todd wrote:
> I am running Ubuntu 9.04 and have been running into an issue whenever I try
> to install software (latest fixes, etc), I get the following in the synaptic
> package manager:
> 
> E: python-tz: subprocess post-installation script returned error exit status
> 1

It looks pretty similar to
https://bugs.launchpad.net/ubuntu/+source/python-tz/+bug/320059

> And get the following from a command line:
> 
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following NEW packages will be installed:
>   python-wxglade
> 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
> 1 not fully installed or removed.
> Need to get 0B/516kB of archives.
> After this operation, 3142kB of additional disk space will be used.
> Selecting previously deselected package python-wxglade.
> (Reading database ... 274948 files and directories currently installed.)
> Unpacking python-wxglade (from .../python-wxglade_0.6.3-0.1ubuntu3_all.deb)
> ...
> Processing triggers for man-db ...
> Setting up python-tz (2008i-1) ...
> pycentral: pycentral pkginstall: Not overwriting local files:
>    dpkg: /usr/lib/python2.5/site-packages/pytz/__init__.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/reference.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/tzfile.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/tzinfo.py not found.
> pycentral pkginstall: Not overwriting local files:
>    dpkg: /usr/lib/python2.5/site-packages/pytz/__init__.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/reference.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/tzfile.py not found.
>    dpkg: /usr/lib/python2.5/site-packages/pytz/tzinfo.py not found.

I wonder what that means.  Could you or anyone else have ever run
'sudo easy_install pytz' on this machine?  That would explain the error.

> dpkg: error processing python-tz (--configure):
>  subprocess post-installation script returned error exit status 1
> Setting up python-wxglade (0.6.3-0.1ubuntu3) ...
> 
> Errors were encountered while processing:
>  python-tz
> 
> I tried to reinstall python-tz but that did not work, as it ran into the
> same error.

You may want to try

  sudo apt-get remove python-tz
  sudo apt-get install python-tz

one user claims (in the bug report I linked above) that this worked for
them.

> I upgraded to 9.10 on my computer at work, but that did not fix the issue.
> FYI, My symbolic link to python is pointing to python2.6.
> 
> Any ideas?
> 
> Thanks, David

Marius Gedminas
-- 
Unix is an operating system, OS/2 is half an operating system, Windows
is a shell, and DOS is a boot partition virus.
                -- Peter H. Coffin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100810/062f99ad/attachment.sig>


More information about the ubuntu-users mailing list