sys.path:
['/ usr / lib / update-notifier', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/ plat-linux3 ',' /usr/local/lib/python2.6/lib-tk ',' /usr/local/lib/python2.6/lib-old ',' /usr/local/lib/python2.6 / lib-dynload ',' /usr/local/lib/python2.6/site-packages ']
terry@terrylaptop:/usr/lib$ sudo apt-get install python-debian
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-debian is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 239 not upgraded.
2 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 update-notifier-common (0.119ubuntu8.6) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 26, in <module>
import debian.deb822
ImportError: No module named debian.deb822
dpkg: error processing update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing flashplugin-installer (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-notifier-common
flashplugin-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
Esse problema ocorre sempre que tento usar o apt-get install para atualizar meu Ubuntu. Estou em 12.04.01 LTS.
Também instalei o python-debian a partir deste link: http://pkgs.org/ubuntu-12.04/ubuntu-main-i386/python-debian_0.1.21ubuntu1_all.deb.html Mas não funciona.
Alguém pode me ajudar? Muito obrigado. Eu pesquisei no Google, mas parece que isso já deve estar corrigido na versão antiga.
terry@terrylaptop:/usr/lib$ sudo apt-get install dolphin
Reading package lists... Done
Building dependency tree
Reading state information... Done
dolphin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 239 not upgraded.
2 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 update-notifier-common (0.119ubuntu8.6) ...
['/usr/lib/update-notifier', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux3', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages']
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 29, in <module>
import debian.deb822
ImportError: No module named debian.deb822
dpkg: error processing update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing flashplugin-installer (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
update-notifier-common
flashplugin-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
terry@terrylaptop:/usr/lib$ ls /usr/local/lib/python2.6/debian.deb822.py
/usr/local/lib/python2.6/debian.deb822.py
terry@terrylaptop:/usr/lib$ cat /usr/local/lib/python2.6/debian.deb822.py
import warnings
warnings.warn("please use 'debian.deb822' instead", DeprecationWarning,
stacklevel=2)
from debian.deb822 import *
Você pode ver o debian.deb822 em /usr/local/lib/python2.6, mas ainda não consegue encontrá-lo.
------ última atualização em 20/02 ----------------
terry@terrylaptop:/usr/local/bin$ ls -l /usr/bin/py*
-rwxr-xr-x 1 root root 3752 May 2 2012 /usr/bin/py3_compilefiles
-rwxr-xr-x 1 root root 97759 May 2 2012 /usr/bin/pycentral
-rwxr-xr-x 1 root root 4124 Apr 18 2012 /usr/bin/pyclean
-rwxr-xr-x 1 root root 11933 Apr 18 2012 /usr/bin/pycompile
-rwxr-xr-x 1 root root 3723 May 2 2012 /usr/bin/py_compilefiles
lrwxrwxrwx 1 root root 8 Apr 27 2012 /usr/bin/pydoc -> pydoc2.7
-rwxr-xr-x 1 root root 79 Aug 1 2012 /usr/bin/pydoc2.7
lrwxrwxrwx 1 root root 12 Apr 27 2012 /usr/bin/pygettext -> pygettext2.7
-rwxr-xr-x 1 root root 22103 Aug 1 2012 /usr/bin/pygettext2.7
-rwxr-xr-x 1 root root 217 Mar 9 2012 /usr/bin/pyhtmlizer
lrwxrwxrwx 1 root root 24 Feb 20 07:24 /usr/bin/python -> /usr/loca/bin/python2.7
lrwxrwxrwx 1 root root 24 Jun 14 2012 /usr/bin/python2 -> /usr/local/bin/python2.6
lrwxrwxrwx 1 root root 24 Jun 14 2012 /usr/bin/python2.6 -> /usr/local/bin/python2.6
lrwxrwxrwx 1 root root 29 Apr 27 2012 /usr/bin/pyversions -> ../share/python/pyversions.py
terry@terrylaptop:/usr/local/bin$ ls -l /usr/local/bin/py*
-rwxrwxr-x 1 root root 84 Feb 20 07:21 /usr/local/bin/pydoc
lrwxrwxrwx 1 root root 24 Feb 20 07:31 /usr/local/bin/python -> /usr/local/bin/python2.7
lrwxrwxrwx 1 root root 9 Feb 20 07:23 /usr/local/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 4610075 Jun 14 2012 /usr/local/bin/python2.6
-rwxr-xr-x 1 root root 1424 Jun 14 2012 /usr/local/bin/python2.6-config
-rwxr-xr-x 1 root root 4917197 Feb 20 07:22 /usr/local/bin/python2.7
-rwxr-xr-x 1 root root 1624 Feb 20 07:23 /usr/local/bin/python2.7-config
lrwxrwxrwx 1 root root 16 Feb 20 07:23 /usr/local/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root 14 Feb 20 07:23 /usr/local/bin/python-config -> python2-config
Ainda não consigo instalar. O sys.path é:
['/usr/lib/update-notifier', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages']
------ 2013/2/22 atualização ---------------
terry@terrylaptop:/data$ sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version.
The following packages were automatically installed and are no longer required:
libnepomukdatamanagement4 libkexiv2-10 libkdegames5a libboost-program-options1.46.1 libkdecorations4 libkwinglutils1 libnepomuksync4 libokularcore1abi1 libssl0.9.8 libattica0.3 liblastfm0 libkwineffects1abi3
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
apt
package-management
Terry
fonte
fonte
Respostas:
Tente reinstalar o pacote que deveria conter debian.deb822:
fonte
No meu caso eu tive que desinstalar todos os pacotes conflitantes como
update-notifier
,update-notifier-common
etc, e, em seguida, eu corri:fonte
sudo apt install python3-debian python3-chardet python3-six
e está tudo bem.Eu uso o comando apt-get remove para remover o update- notifier- common , flashplugin-installer e a solução alternativa do problema.
Aqui está o comando:
fonte
Eu tinha o python 2.6 e 2.7 instalado, então precisava voltar ao 2.7, que tinha o debian.deb822
fonte
Você provavelmente removeu o pacote debian python, execute esses comandos para reinstalar o python-debian e depois instalar o pacote update-notifier.
fonte
No meu caso, o que o corrigiu no ubuntu 16.04 (o problema ainda persiste muitos anos desde o post original) é corrigir os links simbólicos do python:
Então agora eu tenho:
Anteriormente
python3
estava apontando parapython3.5
. Depois que eu opython3.6
apt
vinculei novamente, funcionou novamente.No momento, tenho o python 2.7, 3.5 e 3.6 instalado lado a lado.
fonte
python3.7
quepython3
apontou para empython3.7
vez depython3.6
Minha solução
Anatomia da questão
na minha plataforma
dpkg -L python-chardet
alegou quepython-chardet
estaria usando esses arquivos:mas o problema é que nenhum deles existia:
Outro teste que você pode fazer
você também pode verificar o chardet usando o binário:
Se gerar algo parecido com isto, a lib está quebrada :
Minha mensagem de erro original:
Então, como eu disse acima, basta reinstalar o chardet:
fonte
Para mim, foi resolvido instalando o
python-debian
pacote parapython3
:fonte