reportbug fail to install. apt-get install unusable

Help with issues regarding installation of Debian

reportbug fail to install. apt-get install unusable

Postby ggozalbes » 2009-06-11 17:26

I have Debian 4.0
I make
apt-get dist-upgrade

Download 160 Mb of modules and the install it
But it crash in reportbug installation
The when try to apt-get install "something" show a message saying reportbug is pending of installation
apt-get install reportbug

show
apt-get install reportbug
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Paquetes sugeridos:
debconf-utils debsums dlocate python-urwid
Paquetes recomendados
python-cjkcodecs python-iconvcodec
Se actualizarán los siguientes paquetes:
reportbug
1 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
2 no instalados del todo o eliminados.
Se necesita descargar 0B/142kB de archivos.
Se utilizarán 0B de espacio de disco adicional después de desempaquetar.
(Leyendo la base de datos ...
95375 ficheros y directorios instalados actualmente.)
Preparando para reemplazar reportbug 3.31 (usando .../reportbug_3.31+etch1_all.deb) ...
INFO: using old version '/usr/bin/python2.4'
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 952, in run
pkg.remove(runtimes, remove_script_files=True)
File "/usr/bin/pycentral", line 697, in remove
default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: aviso - script de `pre-removal' antiguo devolvió código de error 1
dpkg - probando el script del nuevo paquete en su lugar...
INFO: using old version '/usr/bin/python2.4'
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 952, in run
pkg.remove(runtimes, remove_script_files=True)
File "/usr/bin/pycentral", line 697, in remove
default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error al procesar /var/cache/apt/archives/reportbug_3.31+etch1_all.deb (--unpack):
el subproceso script pre-removal nuevo devolvió el código de salida de error 1
INFO: using old version '/usr/bin/python2.4'
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1373, in <module>
main()
File "/usr/bin/pycentral", line 1367, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 889, in run
self.options.exclude, byte_compile_default=True)
File "/usr/bin/pycentral", line 672, in install
self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error al reorganizar:
el subproceso post-installation script devolvió el código de salida de error 1
Se encontraron errores al procesar:
/var/cache/apt/archives/reportbug_3.31+etch1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I hate python modules installation!
how i cant remove reportbug and say to dpkg not try to install it??
i try
sudo dpkg --force-all -r /var/cache/apt/archives/reportbug

and say reportbug is not installed, but i want to exclude it from future installation
ggozalbes
 
Posts: 3
Joined: 2009-06-11 17:03

Re: reportbug fail to install. apt-get install unusable

Postby ggozalbes » 2009-06-11 17:55

I try
dpkg --remove --force-remove-reinstreq reportbug


But no solution. Apt-get continues to trying install and update reportbug...
ggozalbes
 
Posts: 3
Joined: 2009-06-11 17:03

Re: reportbug fail to install. apt-get install unusable

Postby infinitycircuit » 2009-06-12 03:09

Please post the output again in english:

Code: Select all
LANG=C aptitude install -f
I am currently a Debian Maintainer. I am also in the New Maintainers' Queue.
infinitycircuit
 
Posts: 1137
Joined: 2007-07-24 03:31
Location: California

Re: reportbug fail to install. apt-get install unusable

Postby ggozalbes » 2009-06-12 16:06

Thx infinitycircuit but I have "resolved" this issue editing:

/var/lib/dpkg/info/reportbug.prerm
/var/lib/dpkg/info/reportbug.postrm
/var/lib/dpkg/info/reportbug.postinst

and comment out all lines (really only need to comment lines calling pycentral, but i don't want to debug python now :wink: )
and then change permission to files to avoid modification

chmod 444 /var/lib/dpkg/info/reportbug.prerm
chmod 444 /var/lib/dpkg/info/reportbug.postrm
chmod 444 /var/lib/dpkg/info/reportbug.postinst

and then type again

apt-get install reportbug

The "harmless postinst, prerm and postrm" are executed and apt-get return to normal state.
ggozalbes
 
Posts: 3
Joined: 2009-06-11 17:03


Return to Installation

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable