trabalhando com libs do sistema de 64 bits no sistema de 32 bits

1

Eu tinha um sistema Ubuntu 10 bits de 64 bits. Eu baguncei o ubuntu-desktop , que estava me recusando a fazer o login. Então eu instalei o sistema de 32 bits do ubuntu 12.04 através da imagem ISO em um DVD, mantendo o mesmo nome de usuário.Enquanto instalando, eu reutilizei as partições do sistema anterior e escolhi o mesmo nome de usuário para manter os dados em /home intactos.

Instalei mercurial através de sudo apt-get no Ubuntu 12.04.Mas quando estou executando, estou recebendo este rastreamento de pilha. Tenho certeza que o mercurial está tentando acessar o sistema anterior de 64 bits. Porque, eu achei que em /usr/local/lib/ há duas instalações python - 2.6 e 2.7.

Ajuda necessária para corrigir isso.

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 95, in _demandimport
    return _import(name, globals, locals, fromlist, level)
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 114, in _demandimport
    mod = _origimport(name, globals, locals)
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 155, in <module>
    class Report(problem_report.ProblemReport):
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 93, in <module>
    class ProblemReport(UserDict):
TypeError: Error when calling the metaclass bases
    module.__init__() takes at most 2 arguments (3 given)

Original exception was:
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 36, in <module>
    mercurial.util.setbinary(fp)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 67, in <module>
    statfiles = getattr(osutil, 'statfiles', platform.statfiles)
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 86, in __getattribute__
    self._load()
  File "/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: /usr/local/lib/python2.6/dist-packages/mercurial/osutil.so: wrong ELF class: ELFCLASS64
    
por Srinivas Reddy Thatiparthy 25.02.2013 / 16:16

1 resposta

0

Bem,        Eu encontrei a resposta, eu removi as pastas /usr/local/lib/python2.6 e python2.7 . Copiei /usr/lib/python2.6 e python2.7 over /usr/local/lib/ location.That fez o truque.

cp -Rp /usr/lib/python2.6  /usr/local/lib/
cp -Rp /usr/lib/python2.7   /usr/local/lib/
    
por 25.02.2013 / 16:46