O Update Manager não será atualizado, embora eu tenha mais de 100 atualizações para instalar. Recebo uma mensagem de erro como esta:
installArchives() failed:
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 189751 files and directories currently installed.)
Preparing to replace python-problem-report 2.0.1-0ubuntu7 (using .../python-problem-report_2.0.1-0ubuntu9_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace python-apport 2.0.1-0ubuntu7 (using .../python-apport_2.0.1-0ubuntu9_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace apport 2.0.1-0ubuntu7 (using .../apport_2.0.1-0ubuntu9_all.deb) ...
apport stop/waiting
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/apport_2.0.1-0ubuntu9_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
apport start/running
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace gnome-orca 3.4.1-0ubuntu0.1 (using .../gnome-orca_3.4.2-0ubuntu0.1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/gnome-orca_3.4.2-0ubuntu0.1_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace python-piston-mini-client 0.7.2-0ubuntu1 (using .../python-piston-mini-client_0.7.2+bzr57-0ubuntu1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-piston-mini-client_0.7.2+bzr57-0ubuntu1_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace oneconf 0.2.8 (using .../oneconf_0.2.8.1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/oneconf_0.2.8.1_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace software-center 5.2.2 (using .../software-center_5.2.2.2_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
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/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/software-center_5.2.2.2_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/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace libglade2-0 1:2.6.4-1ubuntu1 (using .../libglade2-0_1%%3a2.6.4-1ubuntu1.1_amd64.deb) ...
Unpacking replacement libglade2-0 ...
Preparing to replace libv4l-0 0.8.6-1ubuntu1 (using .../libv4l-0_0.8.6-1ubuntu2_amd64.deb) ...
De-configuring libv4l-0:i386 ...
Unpacking replacement libv4l-0 ...
Preparing to replace libv4l-0:i386 0.8.6-1ubuntu1 (using .../libv4l-0_0.8.6-1ubuntu2_i386.deb) ...
Unpacking replacement libv4l-0:i386 ...
Preparing to replace libv4lconvert0:i386 0.8.6-1ubuntu1 (using .../libv4lconvert0_0.8.6-1ubuntu2_i386.deb) ...
De-configuring libv4lconvert0 ...
Unpacking replacement libv4lconvert0:i386 ...
Preparing to replace libv4lconvert0 0.8.6-1ubuntu1 (using .../libv4lconvert0_0.8.6-1ubuntu2_amd64.deb) ...
Unpacking replacement libv4lconvert0 ...
Errors were encountered while processing:
/var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/apport_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/gnome-orca_3.4.2-0ubuntu0.1_all.deb
/var/cache/apt/archives/python-piston-mini-client_0.7.2+bzr57-0ubuntu1_all.deb
/var/cache/apt/archives/oneconf_0.2.8.1_all.deb
/var/cache/apt/archives/software-center_5.2.2.2_all.deb
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up libglade2-0 (1:2.6.4-1ubuntu1.1) ...
dpkg: error processing gnome-orca (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
dpkg: error processing python-problem-report (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Setting up libv4lconvert0 (0.8.6-1ubuntu2) ...
Setting up libv4lconvert0:i386 (0.8.6-1ubuntu2) ...
dpkg: error processing python-piston-mini-client (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Setting up libv4l-0 (0.8.6-1ubuntu2) ...
Setting up libv4l-0:i386 (0.8.6-1ubuntu2) ...
dpkg: dependency problems prevent configuration of python-apport:
python-apport depends on python-problem-report (>= 0.94); however:
Package python-problem-report is not configured yet.
dpkg: error processing python-apport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-center:
software-center depends on python-piston-mini-client (>= 0.1+bzr29); however:
Package python-piston-mini-client is not configured yet.
dpkg: error processing software-center (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of oneconf:
oneconf depends on python-piston-mini-client (>= 0.3+bzr32-0ubuntu1); however:
Package python-piston-mini-client is not configured yet.
dpkg: error processing oneconf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport:
apport depends on python-apport (>= 2.0.1-0ubuntu7); however:
Package python-apport is not configured yet.
dpkg: error processing apport (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Isso já dura duas semanas e não consigo obter nenhuma atualização. Qualquer ajuda seria ótimo.
12.04
updates
update-manager
raz7588
fonte
fonte
Respostas:
Você precisa forçar a substituição dos arquivos que causam os erros:
No seu caso, será:
Então corra:
Fonte: http://www.absolutelytech.com/2010/06/30/solved-error-dpkg-error-processing-filename-unpack-trying-to-overwrite/
fonte
Você pode tentar o seguinte comando:
Se você ainda acabar com o mesmo erro, tente:
Mesmo que isso não funcione e você ainda receba o mesmo erro, verifique novamente e podemos resolver isso.
fonte
sudo dpkg --configure -a
isso significa?Pode ser um erro no pacote python-problem-report ou no pacote python-minimal ou uma cópia incorreta do pacote.
Vejo que este é um pacote de proposta precisa. Você pode excluir este repositório da sua lista de fontes de software e executar a
apt-get update
partir de uma sessão do terminal ( Ctrl- Alt- T) para recuperar.Você também pode tentar apagar
python-problem-report_2.0.1-0ubuntu9_all.deb
a partir de/var/cache/apt/archives
entãoapt-get upgrade
terá que baixar uma nova cópia novamente. No terminal ( Ctrl- Alt- T), digite:Como alternativa, você pode usar:
para apagar todos os arquivos baixados no cache.
Tente a atualização novamente.
Se nenhuma dessas ajuda, você deve deixar um comentário em https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944 descrevendo sua experiência no uso deste pacote proposto ou quando o pacote for geralmente liberado, arquivo um bug no pacote apport.
Deixei um comentário sobre esta questão em https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944, mas você deve adicionar um comentário descrevendo as etapas pelas quais você passou e a saída do apt- obtenha atualização de cima.
fonte
python-problem-report
, não me sinto confortável em recomendar osudo rm
comando. Definitivamente esse deve ser o último recurso. Bom trabalho de outra maneira!sudo rm ...
comando não seja digitado incorretamente, ele deve estar correto e não precisa ser considerado um último recurso: os arquivos/var/cache/apt/archives
são apenas arquivos de pacote arquivados (ou seja, sobra). Como John S Gruber diz, osudo apt-get clean
comando geralmente recomendado exclui todos esses arquivos. A exclusão de um arquivo .deb armazenado em cache é uma maneira segura e eficaz de garantir que um novo .deb novo (e possivelmente não corrompido) seja baixado na próxima vez que o pacote for instalado (ou reinstalado).Existem 2 opções para o python alternativo (fornecendo / usr / bin / python).
Selecione a opção python2.7.
fonte
Como alternativa, você pode tentar remover o pacote e adicioná-lo posteriormente. Isso funcionou para mim no cliente Citrix. Tenha cuidado com o que você está removendo (é claro).
fonte
Eu encontrei um problema semelhante em um sistema que tinha o python 2.7 e o python 3.4 instalados. O problema foi um problema de compatibilidade com o pacote python-subversion , que aparentemente só funciona com o python 2 devido a uma alteração no ConfigParser . Eu lidei com isso fazendo
Para confirmar que o executável python no meu caminho era um link simbólico para o python 3. Então
Para usar o python 2. Depois disso, o apt-get conseguiu concluir normalmente e eu reverti minha alteração no link simbólico.
fonte
ln -rs /usr/bin/python3.4 /usr/bin/python
. Além disso, se você já tiver outro link simbólico/usr/bin/python3
apontando para apython3
versão mais recente , como geralmente acontece, poderá dar outro passo adianteln -rs /usr/bin/python3 /usr/bin/python
. Enfim, obrigado pela solução, funcionou para mim depois de um problema namercurial
instalação.Tente o seguinte:
Funcionou para mim.
fonte