2
0
I had an issue (Question 199582) which was resolved. Unfortunately I am stuck at this point now.
Running
root@X100e:/var/cache/apt/archives# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
file libexpat1 libmagic1 libreadline6 libsqlite3-0 mime-support python python-minimal python2.6 python2.6-minimal readline-common
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/5,204kB of archives.
After this operation, 19.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 6108 files and directories currently installed.)
Unpacking python2.6-minimal (from .../python2.6-minimal_2.6.6-5ubuntu1_i386.deb) ...
new installation of python2.6-minimal; /usr/lib/python2.6/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.6/dist-packages.
please find the package shipping files in /usr/lib/python2.6/site-packages and
file a bug report to ship these in /usr/lib/python2.6/dist-packages instead
aborting installation of python2.6-minimal
dpkg: error processing /var/cache/apt/archives/python2.6-minimal_2.6.6-5ubuntu1_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python2.6-minimal_2.6.6-5ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
results in above error.
Running
root@X100e:/var/cache/apt/archives# dpkg -i python2.6-minimal_2.6.6-5ubuntu1_i386.deb
(Reading database ... 6108 files and directories currently installed.)
Unpacking python2.6-minimal (from python2.6-minimal_2.6.6-5ubuntu1_i386.deb) ...
new installation of python2.6-minimal; /usr/lib/python2.6/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.6/dist-packages.
please find the package shipping files in /usr/lib/python2.6/site-packages and
file a bug report to ship these in /usr/lib/python2.6/dist-packages instead
aborting installation of python2.6-minimal
dpkg: error processing python2.6-minimal_2.6.6-5ubuntu1_i386.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
python2.6-minimal_2.6.6-5ubuntu1_i386.deb
results in above error.
Running
root@X100e:/var/cache/apt/archives# dpkg -i --force-depends python2.6-minimal_2.6.6-5ubuntu1_i386.deb
(Reading database ... 6108 files and directories currently installed.)
Unpacking python2.6-minimal (from python2.6-minimal_2.6.6-5ubuntu1_i386.deb) ...
new installation of python2.6-minimal; /usr/lib/python2.6/site-packages is a directory
which is expected a symlink to /usr/local/lib/python2.6/dist-packages.
please find the package shipping files in /usr/lib/python2.6/site-packages and
file a bug report to ship these in /usr/lib/python2.6/dist-packages instead
aborting installation of python2.6-minimal
dpkg: error processing python2.6-minimal_2.6.6-5ubuntu1_i386.deb (--install):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
python2.6-minimal_2.6.6-5ubuntu1_i386.deb
is not able to fix this.
Any clues how to fix this?
thanks Gilles, unfortunately running dpkg -S /usr/lib/python2.6/site-packages/ returns an error. note: there is no deb package in here (maybe that's the reason?) -> I prefer the easy solution ;) -> do you intend a apt-get remove/purge python2.6? – udo – 2010-10-16T11:44:24.170
@udo: Sorry, I goofed, run
dpkg -S /usr/lib/python2.6/site-packages
(no trailing slash). If the directory is empty, just remove it. Otherwise, what does it contain? – Gilles 'SO- stop being evil' – 2010-10-16T11:59:44.400no prob, tried both... the dir contains file git_remote_helpers-0.1.0-py2.6.egg-info and dir git_remote_helpers -> guess I can delete /usr/lib/python2.6/site-packages/* -> correct? – udo – 2010-10-16T12:03:31.613
@udo: If these are python packages you installed manually (i.e. they're python packages, but not dpkg packages), they should be in
/usr/local/lib/python2.6/dist-packages
. You can just move them there (see my edit). – Gilles 'SO- stop being evil' – 2010-10-16T12:35:32.613You are the man! worked! -> this is strange though, because I don't remember that I manually installed those packages... thanks a lot! – udo – 2010-10-16T12:54:49.920