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)
Este problema ocurre cada vez que intento usar apt-get install para actualizar mi Ubuntu. Estoy en 12.04.01 LTS.
También instalé python-debian desde este enlace: http://pkgs.org/ubuntu-12.04/ubuntu-main-i386/python-debian_0.1.21ubuntu1_all.deb.html Pero no funciona.
¿Puede alguien ayudarme? Muchas gracias. Busqué en Google pero parece que esto ya debería estar solucionado en la versión anterior.
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 *
Puede ver que debian.deb822 en /usr/local/lib/python2.6, pero aún no puede encontrarlo.
------ última actualización el 2/20 ----------------
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
Todavía no puedo instalar. El sys.path es:
['/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 actualización ---------------
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
fuente
fuente
Respuestas:
Intente reinstalar el paquete que se supone que contiene debian.deb822:
fuente
En mi caso tuve que desinstalar todos los paquetes en conflicto como
update-notifier
,update-notifier-common
, etc. y luego me encontré:fuente
sudo apt install python3-debian python3-chardet python3-six
y todo está bien.Utilizo el comando apt-get remove para eliminar update-notifier-common , flashplugin-installer y luego la solución del problema.
Aquí está el comando:
fuente
Tenía instalado Python 2.6 y 2.7, así que necesitaba volver a 2.7 que tenía debian.deb822
fuente
Probablemente eliminó el paquete python debian, ejecute estos comandos para reinstalar python-debian y luego instalar el paquete update-notifier.
fuente
En mi caso, lo que lo arregló en ubuntu 16.04 (el problema persiste muchos años después de la publicación original) es arreglar los enlaces simbólicos de python:
Entonces ahora tengo:
Anteriormente
python3
estaba apuntando apython3.5
. Una vez que lo volví a vincular apython3.6
apt
trabajado nuevamente.Por el momento tengo python 2.7, 3.5 y 3.6 instalados uno al lado del otro.
fuente
python3.7
que tenía unpython3
punto enpython3.7
lugar depython3.6
Mi solución
Anatomía del problema.
en mi plataforma
dpkg -L python-chardet
afirmó quepython-chardet
estaría usando estos archivos:pero el problema es que ninguno de estos existía:
Otra prueba que puedes hacer
También puede verificar chardet utilizando el binario:
Si genera algo como esto, la lib está rota :
Mi mensaje de error original:
así que como dije anteriormente, simplemente reinstale chardet:
fuente
Para mí, se resolvió instalando el
python-debian
paquete parapython3
:fuente