tedshaw
April 4th, 2011, 07:21 PM
Python (2.6) is messed up and everything dependent on python is messed up also.
I can not reinstall any of these packages via synaptic package manager.
This is my error:
sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
9 not fully installed or removed.
Need to get 0B/898kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 137448 files and directories currently installed.)
Preparing to replace python-gtk2 2.21.0-0ubuntu1 (using .../python-gtk2_2.21.0-0ubuntu1_amd64.deb) ...
/var/lib/dpkg/info/python-gtk2.prerm: 6: update-python-modules: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: update-python-modules: not found
dpkg: error processing /var/cache/apt/archives/python-gtk2_2.21.0-0ubuntu1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-gtk2.postinst: 10: update-python-modules: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/python-gtk2_2.21.0-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks!
I can not reinstall any of these packages via synaptic package manager.
This is my error:
sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
9 not fully installed or removed.
Need to get 0B/898kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 137448 files and directories currently installed.)
Preparing to replace python-gtk2 2.21.0-0ubuntu1 (using .../python-gtk2_2.21.0-0ubuntu1_amd64.deb) ...
/var/lib/dpkg/info/python-gtk2.prerm: 6: update-python-modules: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: update-python-modules: not found
dpkg: error processing /var/cache/apt/archives/python-gtk2_2.21.0-0ubuntu1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python-gtk2.postinst: 10: update-python-modules: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/python-gtk2_2.21.0-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks!