Não é possível instalar nem remover do Ubuntu 16.04.7 -- and-line campo com 16.04 campo com apt campo com python3 camp askubuntu Relacionado O problema

Cannot Install nor remove from ubuntu 16.04.7


1
vote

problema

português

Depois de executar uma atualização mais recente e atualizar o PC não permite instalar nem atualizar me dando erro

  synaptic1   

reinicialização Tentava e tentava synaptic2 , synaptic3 , synaptic4 , synaptic5 , synaptic6 , mas esses comandos dão o mesmo resultado

Então, há uma solução diferente de reinstalar o Ubuntu?

english

After running a latest update and upgrade the PC doesn't allow to install nor update giving me error

[sudo] password for velukutty:  Reading package lists... Done Building dependency tree        Reading state information... Done gettext is already the newest version (0.19.7-2ubuntu3.1).  The following additional packages will be installed:   python3-apport python3-problem-report python3-software-properties software-properties-common software-properties-gtk Suggested packages:   python3-launchpadlib  The following packages will be upgraded:   python3-apport python3-problem-report python3-software-properties software-properties-common software-properties-gtk  5 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 27 not fully installed or removed.  Need to get 0 B/168 kB of archives.  After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y  (Reading database ... 255140 files and directories currently installed.) Preparing to unpack .../python3-problem-report_2.20.1-0ubuntu2.24_all.deb ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error processing archive /var/cache/apt/archives/python3-problem-report_2.20.1-0ubuntu2.24_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 1 Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../python3-apport_2.20.1-0ubuntu2.24_all.deb ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error processing archive /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.24_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 1 Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../software-properties-common_0.96.20.10_all.deb ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error processing archive /var/cache/apt/archives/software-properties-common_0.96.20.10_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 1 Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../software-properties-gtk_0.96.20.10_all.deb ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error processing archive /var/cache/apt/archives/software-properties-gtk_0.96.20.10_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 1 No apport report written because MaxReports is reached already                                                               Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../python3-software-properties_0.96.20.10_all.deb ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg: trying script from the new package instead ... Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3clean", line 25, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error processing archive /var/cache/apt/archives/python3-software-properties_0.96.20.10_all.deb (--unpack):  subprocess new pre-removal script returned error exit status 1 No apport report written because MaxReports is reached already                                                               Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>     import subprocess, tempfile, os.path, re, pwd, grp, os, time, io   File "/usr/lib/python3.5/tempfile.py", line 44, in <module>     import shutil as _shutil ValueError: source code string cannot contain null bytes  Original exception was: Traceback (most recent call last):   File "/usr/bin/py3compile", line 26, in <module>     import optparse   File "/usr/lib/python3.5/optparse.py", line 89, in <module>     from gettext import gettext, ngettext ValueError: source code string cannot contain null bytes dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  /var/cache/apt/archives/python3-problem-report_2.20.1-0ubuntu2.24_all.deb  /var/cache/apt/archives/python3-apport_2.20.1-0ubuntu2.24_all.deb  /var/cache/apt/archives/software-properties-common_0.96.20.10_all.deb  /var/cache/apt/archives/software-properties-gtk_0.96.20.10_all.deb  /var/cache/apt/archives/python3-software-properties_0.96.20.10_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 

Tried rebooting and tried sudo apt-get autoclean,sudo apt-get --fix missing,sudo apt-get --fix-broken,sudo apt-get autoremove,sudo apt-get install --reinstall python,but these commands give the same result

So is there a solution other than reinstalling ubuntu ?

           
         
         

Lista de respostas


Perguntas relacionadas

0  Problema na invocar sudo fazer instalar no script python  ( Problem in invoke sudo make install in python script ) 
Eu escrevi o seguinte código para configurar o pacote Yara no meu script, mas quando ligar para a instalação de sudo, Python me dá erro. Como posso consertar ...

104  Como faço para instalar o Python 3.3?  ( How do i install python 3 3 ) 
Eu baixei o Python 3.3 do site oficial, mas não há ideia de como instalá-lo. Estou usando o Ubuntu 12.04 ...

2  Como criar o botão Multi estilo em Python GTK3  ( How to create multi style button in gtk3 python ) 
Eu li documento GTK3 Python e sua parte do botão. Bem, estou tentando fazer um botão como este (é software Klavaro): Mas eu não encontrei nada sobre con...

0  Python usa apenas um fio  ( Python use only one thread ) 
Eu tenho i7 8550U e 18.04.1. O Python ao usar o Notebook Jupyter está usando apenas um core 8 possível. Para outras tarefas, ou seja,. Java usa todos os núcle...

4  pycharm não consegue encontrar python  ( Pycharm cant find python ) 
Quando eu tento executar pycharm, mostra este erro: ERROR: Cannot start PyCharm No JDK found. Please validate either PYCHARM_JDK, JDK_HOME or JAVA_HOME env...

2  Problemas ao instalar o pacote EDX-DL com PIP  ( Issues while installing edx dl package with pip ) 
Eu queria fazer o maior download de alguma palestra do YouTube e do EDX, então eu dei uma olhada no projeto aqui: https://github.com/coursera-dl/edx-dl < ...

0  Instalando pacotes do Ubuntu no script Python  ( Installing ubuntu packages within python script ) 
Eu quero instalar os seguintes pacotes dentro do meu script Python: python-pip python-sqlalchemy mongodb python-bson python-dpkt python-jinja2 python-magi...

4  O comando "Pip Install Requere.txt.txt" retorna muitos erros, incluindo 404 não encontrados  ( Pip install requirements txt command returns many errors including 404 not fo ) 
(myenv1) root@p-VirtualBox:~/online-exam/onlineexam# pip install requirements.txt Collecting requirements.txt Exception: Traceback (most recent call last): ...

0  Por que o Ubuntu 16.04 vem com Python 3.5, mas não pip3?  ( Why does ubuntu 16 04 come with python 3 5 but not pip3 ) 
Esta é provavelmente uma pergunta básica, mas eu sou muito novo para o Ubuntu. Tanto quanto eu entendo, o Ubuntu 16.04 (e as seguintes versões) vêm com o Pyth...

2  Instalando Python3.6 (e purgando cerca de 3,5 pacotes) bagunçados com o meu terminal  ( Installing python3 6 and purging some 3 5 packages messed up with my terminal ) 
Eu estava seguindo as instruções para instalar o Python3.6 na minha máquina Ubuntu 16.04 de Aqui e no processo eu também fiz alguns sudo apt-get purge em ...




© 2022 pergunte.org All Rights Reserved. Casa de perguntas e respostas todos os direitos reservados


Licensed under cc by-sa 3.0 with attribution required.