Erro na atualização do dh-python e oneconf
macedoleo
Leonardo Macedo
Bom dia galera,
estou tentando atualizar o Rafaela 17.2 pelo terminal e apresenta esse erro:
Preparing to unpack .../dh-python_1.20140128-1ubuntu8.2_all.deb ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: aviso: sub-processo antigo script pre-removal retornou estado de saída de erro 1
dpkg: em vez disso a tentar script do novo pacote ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: error processing archive /var/cache/apt/archives/dh-python_1.20140128-1ubuntu8.2_all.deb (--unpack):
sub-processo novo script pre-removal retornou estado de saída de erro 1
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: erro enquanto efetuava a limpeza:
sub-processo script post-installation instalado retornou estado de saída de erro 1
Preparing to unpack .../python3-oneconf_0.3.7.14.04.1_all.deb ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: aviso: sub-processo antigo script pre-removal retornou estado de saída de erro 1
dpkg: em vez disso a tentar script do novo pacote ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: error processing archive /var/cache/apt/archives/python3-oneconf_0.3.7.14.04.1_all.deb (--unpack):
sub-processo novo script pre-removal retornou estado de saída de erro 1
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: erro enquanto efetuava a limpeza:
sub-processo script post-installation instalado retornou estado de saída de erro 1
Erros foram encontrados durante o processamento de:
/var/cache/apt/archives/dh-python_1.20140128-1ubuntu8.2_all.deb
/var/cache/apt/archives/python3-oneconf_0.3.7.14.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
como proceder? obrigado
estou tentando atualizar o Rafaela 17.2 pelo terminal e apresenta esse erro:
Preparing to unpack .../dh-python_1.20140128-1ubuntu8.2_all.deb ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: aviso: sub-processo antigo script pre-removal retornou estado de saída de erro 1
dpkg: em vez disso a tentar script do novo pacote ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: error processing archive /var/cache/apt/archives/dh-python_1.20140128-1ubuntu8.2_all.deb (--unpack):
sub-processo novo script pre-removal retornou estado de saída de erro 1
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: erro enquanto efetuava a limpeza:
sub-processo script post-installation instalado retornou estado de saída de erro 1
Preparing to unpack .../python3-oneconf_0.3.7.14.04.1_all.deb ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: aviso: sub-processo antigo script pre-removal retornou estado de saída de erro 1
dpkg: em vez disso a tentar script do novo pacote ...
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: error processing archive /var/cache/apt/archives/python3-oneconf_0.3.7.14.04.1_all.deb (--unpack):
sub-processo novo script pre-removal retornou estado de saída de erro 1
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.4/site.py", line 78, in <module>
import os
File "/usr/lib/python3.4/os.py", line 57, in <module>
import posixpath as path
File "/usr/lib/python3.4/posixpath.py", line 16, in <module>
import genericpath
ImportError: No module named 'genericpath'
dpkg: erro enquanto efetuava a limpeza:
sub-processo script post-installation instalado retornou estado de saída de erro 1
Erros foram encontrados durante o processamento de:
/var/cache/apt/archives/dh-python_1.20140128-1ubuntu8.2_all.deb
/var/cache/apt/archives/python3-oneconf_0.3.7.14.04.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
como proceder? obrigado
Entre ou Registre-se para fazer um comentário.
Comentários
[b]sudo rm -Rf /var/lib/apt/lists/* ; sudo rm -Rf /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo dpkg --configure -a ; sudo apt-get update ; sudo apt-get dist-upgrade : sudo apt-get clean ; sudo apt-get autoclean ; sudo apt-get autoremove[/b]
Coso persista com o erro posta ai.