Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install Python 2.7 on my Ubuntu 13.04 VPS. I'm issuing;

sudo apt-get install python=2.7.4-0ubuntu1

and getting this in return

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 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python2.7-minimal (2.7.4-2ubuntu3.2) ...
# Empty sitecustomize.py to avoid a dangling symlink
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
python2.7: can't open file '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or directory
dpkg: error processing python2.7-minimal (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of python-minimal:
python-minimal depends on python2.7-minimal (>= 2.7.4-1~); however:
P ackage python2.7-minimal is not configured yet.

dpkg: error processing python-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2.7:
python2.7 depends on python2.7-minimal (= 2.7.4-2ubuntu3.2); however:
Package python2.7-minimal is not configured yet.

dpkg: error processing python2.7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python:
python depends on python2.7 (>= 2.7.4-1~); however:
 Package python2.7 is not configured yet.
python depends on python-minimal (= 2.7.4-0ubuntu1); however:
 Package python-minimal is not configured yet.

dpkg: error processing python (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python2.7-minimal
 python-minimal
 python2.7
 python
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've been staring at this for ages and just can't see a way through. Probably being a bit dim.

share|improve this question

1 Answer 1

Use the following to configure -

sudo dpkg -a --configure

hope it will work.

share|improve this answer
    
As above, didn't work, still getting the same error –  sgtbeano Nov 28 '13 at 18:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.