Blog ≫ 2013 ≫ seg fault installing ruby on my raspberry pi

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

sudo apt-get install [ruby](/wiki/#ruby)
    Reading package lists... Done
    Building dependency [tree](/wiki/#tree)       
    Reading state information... Done
    The following extra packages will be installed:
      libruby1.9.1 libyaml-0-2 ruby1.9.1
    Suggested packages:
      ri [ruby](/wiki/#ruby)-dev ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev [ruby](/wiki/#ruby)-switch
    The following NEW packages will be installed:
      libruby1.9.1 libyaml-0-2 [ruby](/wiki/#ruby) ruby1).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...
  1. Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

Paulʼs weblog - I live in A sleepy town in Kent. Married + father to 2, I'm a full stack web engineer, + I do js / nodejs, some ruby, python, php ect ect. My hobbies are pubs, parkrun, restaurants, home-automation and other diy jiggery-pokery, history, tree stuff, telly 📺, squirrels, pirates ☠️, lego, and TIME TRAVEL.