python2.7: no encontrado: no se puede instalar ni eliminar ningún paquete

python2.7: no encontrado: no se puede instalar ni eliminar ningún paquete

Actualmente no puedo instalar ningún paquete. Al principio comenzó con quejas de que no podía encontrar /usr/bin/python(no estoy 100% seguro de la ruta aquí), así que intenté reinstalar Python usando Synaptic. La reinstalación también falló.

Ahora no puedo acceder a la barra lateral en Unity y no funcionan los atajos de teclado. Puedo acceder a Chrome haciendo clic derecho en un archivo y seleccionando "Abrir con..." y acceder a la línea de comando usando Alt- Ctrl- f#pero eso es todo.

Lo hice sudo apt-get installcon los resultados:

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 apturl : Depends: gconf2 (>= 2.28.1-2)
 gwibber : Depends: libgwibber-gtk2 (>= 3.1.4.1+r1119) but it is not installed
    Depends: libgwibber2 (>= 3.1.4.1) but it is not installed
 ibus : Depends: gconf2 (>= 2.28.1-2)
 libgksu2-0 : Depends: gconf2 (>= 2.28.1-2)
 update-manager : Depends: gksu but it is not installed

y sudo apt-get -f installcon los resultados:

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libgtkspell0 liblaunchpad-integration1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  gconf2 gksu gwibber gwibber-service language-selector-common
  language-selector-gnome libgwibber-gtk2 libgwibber2
Suggested packages:
  gconf-defaults-service gwibber-service-flickr gwibber-service-digg
  gwibber-service-statusnet gwibber-service-foursquare
  gwibber-service-friendfeed gwibber-service-pingfm gwibber-service-qaiku
  unity-lens-gwibber
Recommended packages:
  gwibber-service-facebook gwibber-service-twitter gwibber-service-identica
The following NEW packages will be installed:
  gconf2 gksu libgwibber-gtk2 libgwibber2
The following packages will be upgraded:
  gwibber gwibber-service language-selector-common language-selector-gnome
4 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
15 not fully installed or removed.
Need to get 0 B/866 kB of archives.
After this operation, 1,281 kB of additional disk space will be used.
Do you want to continue [Y/n]? Setting up python-minimal (2.7.3-0ubuntu2) ...
/var/lib/dpkg/info/python-minimal.postinst: 4: /var/lib/dpkg/info/python-minimal.postinst: 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

Cualquier ayuda sería genial. Parece que estoy 100% jodido.

Revisé mi /usr/bin directory:

lrwxrwxrwx 1 nolando nolando 9 Apr 17  2012 python -> python2.7  
lrwxrwxrwx 1 nolando nolando 9 Apr 17  2012 python2 -> python2.7

Estoy usando 12.04.

Respuesta1

Ooh, algo salió terriblemente mal al desempacar tu .deb de Python. Intente dpkg -i /var/cache/apt/archives/python2.7-minimal*debver si eso soluciona el error dpkg.

Respuesta2

Problema similar aquíhttp://ubuntuforums.org/showthread.php?t=1721421Se resolvió reinstalándolo ya que Python tiene amplias dependencias.

pero prueba la solución de este foro.http://ubuntuforums.org/showthread.php?t=1425619, podría tratarse solo de la configuración y las versiones de Python

Intente /usr/bin/pythony si el resultado es extraño, envíenos una nota o intente buscar Python manualmente. Quizás el enlace simbólico sería suficiente.

información relacionada