Blog2013 ≫ seg fault installing ruby on my raspberry pi

trying to rebuild my raspberry pi and it won't let me install ruby I get a segmentation fault :-(

sudo apt-get install [ruby](/wiki/#ruby)
[Reading](/wiki/#reading) package lists... Done
Building dependency [tree](/wiki/#family/tree)       
[Reading](/wiki/#reading) state information... Done
The following extra packages will be installed:
  libruby1.9.1 libyaml-0-2 [ruby1](/wiki/#ruby).9.1
Suggested packages:
  ri [ruby](/wiki/#ruby)-dev [ruby1](/wiki/#ruby).9.1-examples ri1.9.1 graphviz [ruby1](/wiki/#ruby).9.1-dev [ruby](/wiki/#ruby)-switch
The following NEW packages will be installed:
  libruby1.9.1 libyaml-0-2 [ruby](/wiki/#ruby) [ruby1](/wiki/#ruby)).9.1
0 upgraded, 4 newly installed, 0 to remove and 177 not upgraded.
Need to get 0 B/4,454 kB of archives.
After this [operation](/wiki/#operation), 12.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing /var/cache/apt/archives/libyaml-0-2_0.1.4-2_armhf.deb (--unpack):
 subprocess rm cleanup was killed by signal (Segmentation fault)
dpkg: error processing /var/cache/apt/archives/libruby1.9.1_1.9.3.194-5_armhf.deb (--unpack):
 subprocess rm cleanup was killed by signal (Segmentation fault)
dpkg: error processing /var/cache/apt/archives/ruby1.9.1_1.9.3.194-5_armhf.deb (--unpack):
 subprocess rm cleanup was killed by signal (Segmentation fault)
dpkg: error processing /var/cache/apt/archives/ruby_4.9_all.deb (--unpack):
 subprocess rm cleanup was killed by signal (Segmentation fault)
Errors were encountered while processing:
 /var/cache/apt/archives/libyaml-0-2_0.1.4-2_armhf.deb
 /var/cache/apt/archives/libruby1.9.1_1.9.3.194-5_armhf.deb
 /var/cache/apt/archives/ruby1.9.1_1.9.3.194-5_armhf.deb
 /var/cache/apt/archives/ruby_4.9_all.deb
E: Sub-process /usr/bin/dpkg returned an error 

(/wiki/#code) (1)

Great!
Hoping it is just that I did not do

sudo apt-get update sudo apt-get upgrade

before trying to install [ruby](/wiki/#ruby), will try again and see...

raspberry pi: Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

Paul Clarke's weblog - I live in Hythe in the deep South. Married to Clare + father to 2, I'm a full stack web engineer, + I do js / nodejs, some ruby, python, php ect ect. I like pubs, running, eating, home-automation and other diy jiggery-pokery, history, tree stuff, Television, squirrels, pirates, lego, and TIME TRAVEL.