python2.7: não é possível abrir o arquivo '/usr/lib/python2.7/py_compile.py'

3

Estou recebendo muitos erros com o apt-get. Eu tentei instalar o pacote manualmente mas tudo parece preso.

mio@vm:~$ sudo apt-get install --reinstall python2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of python2.7-minimal is not possible, it cannot be downloaded.
The following packages were automatically installed and are no longer required:
  aspell-en libkdc2-heimdal libroken18-heimdal aspell libhdb9-heimdal libpython2.7 libtdb1 libasn1-8-heimdal libgssapi3-heimdal tdb-tools libwind0-heimdal libenchant1c2a libtevent0 libhcrypto4-heimdal
  libhx509-5-heimdal libheimbase1-heimdal libhunspell-1.3-0 libldb1 libheimntlm0-heimdal libaspell15 libkrb5-26-heimdal
Use 'apt-get autoremove' to remove them.
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.5-8) ...
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
Setting up mysql-server-5.5 (5.5.33+dfsg-1) ...
configured to not write apport reports
[ ok                                  [....] Stopping MySQL database server: mysqld.
Usage: /etc/init.d/mongod {start|stop|force-stop|restart|force-reload|status}
insserv: warning: script 'mongodb' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script 'mongodb'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script 'mongodb'
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up mongodb-10gen (2.4.8) ...
[FAIL] Starting database: mongod failed!
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.5; however:
  Package mysql-server-5.5 is not configured yet.

dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      Errors were encountered while processing:
 python2.7-minimal
 mysql-server-5.5
 mongodb-10gen
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Para o Python2.7-minimal, tentei

apt-get install --reinstall python2.7-minimal

Sem sucesso. Todo o comando como

apt-get clean apt-get -f install

Retorne o mesmo.

Qualquer ajuda será muito apreciada para python, também para outros pacotes também.

    
por Mio 12.11.2013 / 15:54

1 resposta

0

Quase encontrei e apresentei a ajuda encontrada aqui link .

Simplesmente fazendo dpkg -P --force depends <packages who fail>

Mais informações sobre esses argumentos: link

E depois de instalá-lo com o aptitude sudo aptitude install mysql-server-5.1

Não é o caminho mais limpo, mas não há mais erros!

    
por 20.11.2013 / 18:49