Hi, I get this same error calling aptitude with "sudo", and more
surprisingly maybe when calling apt-get with sudo too. Following is the
output of the command, the locale is French but you'll get the idea:
sudo apt-get -f install
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Correction des dépendances... Fait
Les paquets suivants seront ENLEVÃS :
apt-listbugs libgettext-ruby1.8 liblocale-ruby1.8
0 mis à jour, 0 nouvellement installés, 3 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 4 216 ko d'espace disque seront libérés.
Souhaitez-vous continuer [O/n] ?
/usr/lib/ruby/vendor_ruby/locale.rb:239:in `collect_candidates':
undefined method `size' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/vendor_ruby/locale.rb:222:in `candidates'
from
/usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:78:in
`each_textdomains'
from
/usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:102:in
`translate_singluar_message'
from /usr/lib/ruby/1.8/gettext.rb:128:in `_'
from /usr/share/apt-listbugs/apt-listbugs/logic.rb:324
from /usr/sbin/apt-listbugs:258:in `require'
from /usr/sbin/apt-listbugs:258
E: Le sous-processus /usr/sbin/apt-listbugs apt || exit 10 a renvoyé un
code d'erreur (10)
E: Failure running script /usr/sbin/apt-listbugs apt || exit 10
So to really get out of this using sudo it's necessary to use dpkg
directly to remove apt-listbugs and associated ruby packages:
sudo dpkg -r apt-listbugs libgettext-ruby1.8 liblocale-ruby1.8 ruby-locale
Then aptitude and apt-get are usable again.
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org