Erro Python2.7 e 3.2

1. Erro Python2.7 e 3.2

Rondineli
rondineli.araujo

(usa Fedora)

Enviado em 05/05/2012 - 22:32h

;Ae galera, instalei o ubuntu 12.04 na minha maquina recentemente, e tive um pequeno incidente que nao consegui resolver, já olhei o gerenciador de pacotes, desinstalei, reinstalei, utilizei o update-alternatives --config, --install, troquei a sources.list, enfim....sem resultados.

Qaundo dou um comando pra instalação de qualquer aplicativo:
$apt-get install QUALQUER PROGRAMA


ele retorna o seguinte erro:

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version.
The following packages were automatically installed and are no longer required:
python-central dkms libgsoap1 patch
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 561 not upgraded.
7 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.3-0ubuntu3) ...
Traceback (most recent call last):
File "/usr/bin/lib/python2.7/site.py", line 562, in <module>
main()
File "/usr/bin/lib/python2.7/site.py", line 544, in main
known_paths = addusersitepackages(known_paths)
File "/usr/bin/lib/python2.7/site.py", line 271, in addusersitepackages
user_site = getusersitepackages()
File "/usr/bin/lib/python2.7/site.py", line 246, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/bin/lib/python2.7/site.py", line 236, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/bin/lib/python2.7/sysconfig.py", line 577, in get_config_var
return get_config_vars().get(name)
File "/usr/bin/lib/python2.7/sysconfig.py", line 476, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/bin/lib/python2.7/sysconfig.py", line 355, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/bin/local/include/python2.7/pyconfig.h (No such file or directory)
dpkg: error processing python2.7-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.7:
python2.7 depends on python2.7-minimal (= 2.7.3-0ubuntu3); however:
Package python2.7-minimal is not configured yet.
dpkg: error processing python2.7 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpython2.7:
libpython2.7 depends on python2.7 (= 2.7.3-0ubuntu3); however:
Package python2.7 is not configured yet.
dpkg: error processing libpython2.7 (--configure):
dependency problems - leaving unconfigured
Setting up python3.2-minimal (3.2.3-0ubuntu1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Traceback (most recent call last):
File "/usr/bin/lib/python3.2/sysconfig.py", line 363, in _init_posix
with open(config_h) as f:
IOError: [Errno 2] No such file or directory: '/usr/bin/include/python3.2mu/pyconfig.h'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/lib/python3.2/site.py", line 549, in <module>
main()
File "/usr/bin/lib/python3.2/site.py", line 537, in main
known_paths = addusersitepackages(known_paths)
File "/usr/bin/lib/python3.2/site.py", line 269, in addusersitepackages
user_site = getusersitepackages()
File "/usr/bin/lib/python3.2/site.py", line 244, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/bin/lib/python3.2/site.py", line 234, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/bin/lib/python3.2/sysconfig.py", line 597, in get_config_var
return get_config_vars().get(name)
File "/usr/bin/lib/python3.2/sysconfig.py", line 494, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/bin/lib/python3.2/sysconfig.py", line 369, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/bin/include/python3.2mu/pyconfig.h (No such file or directory)
dpkg: error processing python3.2-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of python3.2:
python3.2 depends on python3.2-minimal (= 3.2.3-0ubuntu1); however:
Package python3.2-minimal is not configured yet.
dpkg: error processing python3.2 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.2-minimal (>= 3.2.3); however:
Package python3.2-minimal is not configured yet.
dpkg: error processing python3-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.2 (>= 3.2.3); however:
Package python3.2 is not configured yet.
No apport report written because MaxReports is reached already
python3 depends on python3-minimal (= 3.2.3-0ubuntu1); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
python2.7-minimal
python2.7
libpython2.7
python3.2-minimal
python3.2
python3-minimal
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)

Alguem tem um norte do que seja?


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts