I have deleted python files in usr/bin and cant reinstall it

Posted by Plonkaa on Ask Ubuntu See other posts from Ask Ubuntu or by Plonkaa
Published on 2012-06-16T16:00:12Z Indexed on 2012/06/16 21:23 UTC
Read the original article Hit count: 265

Filed under:

I am a novice at Ubuntu and unfortunately i have deleted 3 files in the usr/bin folder

python 2.7
python
python 2.6

Now my update manager wont work and when i type in python into gnome it says that it is no longer there.

Please help me ive tried loads of different things but it just wont work.

The closest i got was the following:

I typed in sudo apt-get -f install

and i thought i had fixed it but then i got a error message -

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-folks-0.6 gir1.2-polkit-1.0 libcogl5 mutter-common gir1.2-json-1.0
  libcaribou0 gir1.2-accountsservice-1.0 gir1.2-clutter-1.0 gir1.2-gkbd-3.0
  gir1.2-networkmanager-1.0 caribou libcogl-common libmutter0
  gir1.2-mutter-3.0 gjs gir1.2-caribou-1.0 libclutter-1.0-0
  gir1.2-telepathylogger-0.2 libclutter-1.0-common cups-pk-helper
  gir1.2-upowerglib-1.0 gir1.2-cogl-1.0 libmozjs185-1.0
  gir1.2-telepathyglib-0.12 gir1.2-gee-1.0 libgjs0c gnome-shell-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  ubuntu-sso-client
The following packages will be upgraded:
  ubuntu-sso-client
1 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
2 not fully installed or removed.
Need to get 0 B/57.7 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-minimal (2.7.2-7ubuntu2) ...
/var/lib/dpkg/info/python-minimal.postinst: 4: python2.7: not found
dpkg: error processing python-minimal (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 python-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

any advice is appreciated!

© Ask Ubuntu or respective owner

Related posts about ubuntu-netbook