Deleted /usr/bin/python* by mistake, how can I recover it?
<p>By a slip of the keys I issued the command:</p>

<pre><code>sudo rm /usr/bin/python*
</code></pre>

<p>and with that the problems started. Python still starts, but when I now want to do anything with dpkg I get this error (entire error message not included as it is long):</p>

<pre><code>AttributeError: 'module' object has no attribute 'pydebug'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-papyon_0.5.5-1ubuntu3.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
</code></pre>

<p>so basically papyon/pydebug or dpkg seems to be causing a problem. I have tried things like</p>

<pre><code>sudo apt-get -f install
sudo apt-get --fix-missing install
</code></pre>

<p>following the same problem mentioned in another forum: <a href="http://superuser.com/questions/292920/on-ubuntu-i-deleted-usr-bin-python2-7-please-help">http://superuser.com/questions/292920/on-ubuntu-i-deleted-usr-bin-python2-7-please-help</a></p>

<p>but to no avail. It seems no matter what I do with dpkg I get the same error. I naively tried to this:</p>

<pre><code>sudo cp /usr/lib/python2.7 /usr/bin/python2.7
sudo ln -s /usr/bin/python2.7 /usr/bin/python
</code></pre>

<p>but that did not work.</p>

<p>Any help here would be appriciated.</p>
