I accidentally overwrote my /usr/bin/python2.7 executable. When I try to reinstall with
aptitude reinstall python2.7
It fails because, python2.7 is required to install python2.7. I'm in a bind. I do have python2.6 installed, but aptitude isn't work with that.
Anyideas? I really just need to replace that executable, but I can't find it anywhere.
python2.7-minimalor similar. You can find out viadpkg -S /usr/bin/python2.7which package you need to reinstall. Since I'm not using Ubuntu myself, I can't give a definite answer at the moment. – Sven Marnach Jun 4 '11 at 16:24$ dpkg -S /usr/bin/python2.7python2.7-minimal: /usr/bin/python2.7@user475119 If you try aptitude install python2.7-minimal, does it work? – Jacinda Jun 4 '11 at 16:29python-minimal_2.7.1-0ubuntu5_all.debto an empty directory and calldpkg -x python-minimal_2.7.1-0ubuntu5_all.deb .in this directory. This will unpack the package contents. Then dosudo cp -a usr/bin/python2.7 /usr/bin/. – Sven Marnach Jun 4 '11 at 18:01