Can't DU due to Ruby

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
pottzie
Cam Whore
Posts: 91
Joined: Fri May 24, 2013 3:51 am

Can't DU due to Ruby

Unread post by pottzie » Sun Jan 19, 2014 2:49 am

Running 3.12-6.towo-siduction-amd64. Just tried a dist-upgrade, and it won't run, getting an error about:

/usr/lib/ruby/vendor_ruby/debian.rb:24:in `require': no such file to load -- debian_version (LoadError)
from /usr/lib/ruby/vendor_ruby/debian.rb:24
from /usr/sbin/apt-listbugs:289:in `require'
from /usr/sbin/apt-listbugs:289
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (1)
E: Failure running script /usr/sbin/apt-listbugs apt

Came across a bug report that said it was due to a wrong version of Ruby, but when I try to install ruby1.9.1, the install stops, and the same warning keeps anything from installing or the upgrade from working.

Came across this post in the Siduction forum.
http://forum.siduction.org/index.php?topic=4123.0
Seems to be the same problem, and was solved by running

Code: Select all

dpkg -i --force-all ruby-gettext_3.0.3-1_all.deb
dpkg -i --force-all ruby-locale_2.1.0-2_all.deb
Not sure how they arrived at the version numbers, or what's locking me out. Any way to know what version number ruby/debian.rb:24 is?

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Can't DU due to Ruby

Unread post by machinebacon » Sun Jan 19, 2014 3:23 am

I'd first purge apt-listbugs, this locks in ruby as dependency.
The version numbers of ruby-gettext and ruby-locale do not correspond 1:1 to ruby, there are three versions in the repos: 1.8, 1.9 and 2.0, hence the confusion (see Python)
..gnutella..

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: Can't DU due to Ruby

Unread post by ivanovnegro » Sun Jan 19, 2014 3:25 am

That is an old problem, what about this:

http://forum.siduction.org/index.php?to ... 6#msg34716

Ah, Machine is on its way.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Can't DU due to Ruby

Unread post by machinebacon » Sun Jan 19, 2014 3:25 am

http://www.linuxbbq.org/bbs/viewtopic.php?f=9&t=926

Just as reference... seems that it is indeed apt-listbugs.

Edit: thanks Ivan :)
..gnutella..

pottzie
Cam Whore
Posts: 91
Joined: Fri May 24, 2013 3:51 am

Re: Can't DU due to Ruby

Unread post by pottzie » Sun Jan 19, 2014 7:48 am

So..commented out all of /etc/apt/apt.conf.d/10apt-listbugs. Tried DU, made it to 'setting up..' all the files, then crapped out showing; Errors were encountered while processing:
console-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then tried both of the "dpkg -i --force-all ruby-gettext_" scripts, neither worked. Ran "# LANG=C apt-get -s remove ruby-locale," that worked, but DU still shows

Code: Select all

Looking for keymap to install:
NONE
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Failed to issue method call: Unit keymap.sh.service failed to load: No such file or directory. See system logs and 'systemctl status keymap.sh.service' for details.
invoke-rc.d: initscript keymap.sh, action "start" failed.
dpkg: error processing package console-common (--configure):
 subprocess installed post-installation script returned error exit status 6



Went back and uncommented /etc/apt/apt.conf.d/10apt-listbugs, still won't go. Ran "dpkg -i /var/cache/apt/archives/ruby-gettext_3.0.3-1_all.deb /var/cache/apt/archives/ruby-locale_2.1.0-2_all.deb" and that went as far as

Code: Select all

Failed to issue method call: Unit keymap.sh.service failed to load: No such file or directory. See system logs and 'systemctl status keymap.sh.service' for details.
invoke-rc.d: initscript keymap.sh, action "start" failed.
dpkg: error processing package console-common (--configure):
 subprocess installed post-installation script returned error exit status 6
Setting up ruby-gettext (3.0.3-2) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: Can't DU due to Ruby

Unread post by ivanovnegro » Sun Jan 19, 2014 8:30 am

Looks like this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723987

Maybe a systemd issue.

User avatar
gurtid
Uninstaller
Posts: 239
Joined: Thu Oct 18, 2012 7:53 am

Re: Can't DU due to Ruby

Unread post by gurtid » Sun Jan 19, 2014 10:11 am

Could be Ivan. I've had apt-listbugs removed/purged or disabled on my bakewell installs for about the last 2 weeks.

Oh the key map thing? . . . that was from a while back, before the lastest ruby bollocks . . . you rename keymap.sh, do the upgrade and then restore the name - all sorted.

[EDIT] i just skim read threads. apologies if of what I've said isn't relevant. I saw apt-listbugs, ruby, locale, keymap.sh (not necessarily in that order) and took it from there \o/
The Beaver Destroys Forests

Post Reply