On Mon, 2 Sep 2013 05:38:56 +0200 tor...@riseup.net wrote: [...] > Running apt-get dist-upgrade i ran into following error message: > Do you want to continue? [Y/n] y > /usr/lib/ruby/vendor_ruby/gettext/mo.rb:46: undefined method `force_encoding' > for "\225\004\022\336":String (NoMethodError) [...]
Hi tornow, thanks for your bug report. The issue you experienced actually depends on ruby-gettext/3.0.0-1 which dropped support [1] for Ruby 1.8 (still needed by apt-listbugs, which does not yet support Ruby 1.9 [2]). [1] http://bugs.debian.org/721574 [2] http://bugs.debian.org/432200 Jérémy (which is in Cc) promptly fixed the issue [1] in ruby-gettext/3.0.0-2 Thanks a lot Jérémy for your super-fast reaction! > > Doing further checks (also with aptitude) all actions to remove or > install packages fail. > > Trying to remove apt-listbugs (to remove ruby-gettext after that) give > the same error message. You do not need to remove apt-listbugs to temporarily disable it. Please try the following: • as root, backup /etc/apt/apt.conf.d/10apt-listbugs # cp -a /etc/apt/apt.conf.d/10apt-listbugs /root • edit /etc/apt/apt.conf.d/10apt-listbugs and prefix the DPkg::Pre-Install-Pkgs line with a comment symbol, so that it becomes // DPkg::Pre-Install-Pkgs {"/usr/sbin/apt-listbugs apt || exit 10";}; • upgrade ruby-gettext to version 3.0.0-2 (or later): if you use apt-get # apt-get update && apt-get install ruby-gettext similarly for those who prefer aptitude # aptitude update && aptitude install ruby-gettext • after upgrading ruby-gettext to version 3.0.0-2 (or later), restore the original configuration file # mv /root/10apt-listbugs /etc/apt/apt.conf.d/10apt-listbugs At this point apt-listbugs should work again, as usual. Please let me know, in case something didn't work as expected. I hope this helps. -- http://www.inventati.org/frx/frx-gpg-key-transition-2010.txt New GnuPG key, see the transition document! ..................................................... Francesco Poli . GnuPG key fpr == CA01 1147 9CD2 EFDF FB82 3925 3E1C 27E1 1F69 BFFE
pgp3BLobCdoVE.pgp
Description: PGP signature