Skip to content

Instantly share code, notes, and snippets.

@kritik
Created October 26, 2014 11:00
Show Gist options
  • Save kritik/9f81934f5e28c7875536 to your computer and use it in GitHub Desktop.
Save kritik/9f81934f5e28c7875536 to your computer and use it in GitHub Desktop.
failing ruby install
pi@raspberrypi ~ $ sudo apt-get install ruby2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-freefont-ttf libclass-isa-perl libswitch-perl ttf-dejavu-core
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
javascript-common libjs-jquery libruby2.1 libyaml-0-2 rubygems-integration
Suggested packages:
bundler
The following NEW packages will be installed:
javascript-common libjs-jquery libruby2.1 libyaml-0-2 ruby2.1 rubygems-integration
0 upgraded, 6 newly installed, 0 to remove and 412 not upgraded.
1 not fully installed or removed.
Need to get 3388 kB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libyaml-0-2 armhf 0.1.6-2 [40.5 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main javascript-common all 11 [6120 B]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libjs-jquery all 1.7.2+dfsg-3.2 [97.5 kB]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libruby2.1 armhf 2.1.2-4
404 Not Found
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main rubygems-integration all 1.8 [4514 B]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby2.1 armhf 2.1.2-4
404 Not Found
Fetched 149 kB in 0s (149 kB/s)
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/r/ruby2.1/libruby2.1_2.1.2-4_armhf.deb 404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/r/ruby2.1/ruby2.1_2.1.2-4_armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
pi@raspberrypi ~ $ sudo apt-get update
Get:1 http://mirrordirector.raspbian.org jessie Release.gpg [490 B]
Get:2 http://archive.raspberrypi.org wheezy Release.gpg [490 B]
Get:3 http://raspberrypi.collabora.com wheezy Release.gpg [836 B]
Get:4 http://mirrordirector.raspbian.org jessie Release [14.4 kB]
Get:5 http://raspberrypi.collabora.com wheezy Release [7502 B]
Get:6 http://archive.raspberrypi.org wheezy Release [10.2 kB]
Get:7 http://download.opensuse.org Release.gpg [189 B]
Get:8 http://mirrordirector.raspbian.org jessie/main armhf Packages [8872 kB]
Hit http://repository.wolfram.com stable Release.gpg
Get:9 http://raspberrypi.collabora.com wheezy/rpi armhf Packages [2214 B]
Get:10 http://download.opensuse.org Release [1021 B]
Hit http://repository.wolfram.com stable Release
Get:11 http://archive.raspberrypi.org wheezy/main armhf Packages [99.4 kB]
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Get:12 http://download.opensuse.org Packages [675 B]
Hit http://repository.wolfram.com stable/non-free armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://download.opensuse.org Translation-en
Ign http://repository.wolfram.com stable/non-free Translation-en
Get:13 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [36.4 kB]
Get:14 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [68.2 kB]
Get:15 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [592 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9115 kB in 45s (202 kB/s)
Reading package lists... Done
pi@raspberrypi ~ $ sudo apt-get install ruby2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-freefont-ttf libclass-isa-perl libswitch-perl ttf-dejavu-core
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
javascript-common libjs-jquery libruby2.1 libyaml-0-2 rubygems-integration
Suggested packages:
bundler
The following NEW packages will be installed:
javascript-common libjs-jquery libruby2.1 libyaml-0-2 ruby2.1 rubygems-integration
0 upgraded, 6 newly installed, 0 to remove and 474 not upgraded.
1 not fully installed or removed.
Need to get 3275 kB/3423 kB of archives.
After this operation, 14.0 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libruby2.1 armhf 2.1.3-1 [3002 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main ruby2.1 armhf 2.1.3-1 [273 kB]
Fetched 3275 kB in 2s (1298 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "et_EE.UTF-8",
LC_MONETARY = "et_EE.UTF-8",
LC_ADDRESS = "et_EE.UTF-8",
LC_TELEPHONE = "et_EE.UTF-8",
LC_NAME = "et_EE.UTF-8",
LC_MEASUREMENT = "et_EE.UTF-8",
LC_IDENTIFICATION = "et_EE.UTF-8",
LC_NUMERIC = "et_EE.UTF-8",
LC_PAPER = "et_EE.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libyaml-0-2:armhf.
(Reading database ... 58416 files and directories currently installed.)
Unpacking libyaml-0-2:armhf (from .../libyaml-0-2_0.1.6-2_armhf.deb) ...
Selecting previously unselected package javascript-common.
Unpacking javascript-common (from .../javascript-common_11_all.deb) ...
Selecting previously unselected package libjs-jquery.
Unpacking libjs-jquery (from .../libjs-jquery_1.7.2+dfsg-3.2_all.deb) ...
Selecting previously unselected package rubygems-integration.
Unpacking rubygems-integration (from .../rubygems-integration_1.8_all.deb) ...
Selecting previously unselected package libruby2.1:armhf.
Unpacking libruby2.1:armhf (from .../libruby2.1_2.1.3-1_armhf.deb) ...
Selecting previously unselected package ruby2.1.
Unpacking ruby2.1 (from .../ruby2.1_2.1.3-1_armhf.deb) ...
Message from syslogd@raspberrypi at Oct 26 10:52:39 ...
kernel:[ 812.875676] journal commit I/O error
dpkg: error processing /var/cache/apt/archives/ruby2.1_2.1.3-1_armhf.deb (--unpack):
unable to create `/usr/share/man/man1/gem2.1.1.gz.dpkg-new' (while processing `./usr/share/man/man1/gem2.1.1.gz'): Input/output error
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/gem2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/ruby2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/ri2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/rake2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/irb2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/share/man/man1/erb2.1.1.gz': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/ruby2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/testrb2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/ri2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/rdoc2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/rake2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/irb2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/gem2.1': Read-only file system
dpkg: error while cleaning up:
unable to remove newly-extracted version of `/usr/bin/erb2.1': Read-only file system
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: error while cleaning up:
unable to securely remove '/var/lib/dpkg/tmp.ci': Read-only file system
dpkg: error while cleaning up:
unable to securely remove '/var/lib/dpkg/reassemble.deb': Read-only file system
Processing triggers for man-db ...
dpkg: unrecoverable fatal error, aborting:
unable to flush updated status of `man-db': Read-only file system
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@raspberrypi ~ $ sudo apt-get install ruby2.1
-bash: /usr/bin/sudo: No such file or directory
pi@raspberrypi ~ $ df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment