RVM Ruby 2.0.0 installation fails in Ubuntu 11 - ruby

$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/11.10/i386/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.
Requirements installation successful.
Installing Ruby from source to: /home/unik/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
The requested url does not exist(22): 'http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.bz2'
Trying ftp:// URL instead.
curl: (6) Couldn't resolve host 'ftp'
There was an error(6), please check /home/unik/.rvm/log//*.log
There has been an error fetching the ruby interpreter. Halting the installation.
$ cat /home/unik/.rvm/log/ruby-2.0.0-p247/1375803282_package_install_libyaml-dev_libsqlite3-dev_libgdbm-dev.log
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
sqlite3-doc
The following NEW packages will be installed:
libgdbm-dev libsqlite3-dev libyaml-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 530 kB of archives.
After this operation, 1,610 kB of additional disk space will be used.
Get:1 http://ua.archive.ubuntu.com/ubuntu/ oneiric/main libgdbm-dev i386 1.8.3-10 [25.1 kB]
Get:2 http://ua.archive.ubuntu.com/ubuntu/ oneiric/main libsqlite3-dev i386 3.7.7-2ubuntu2 [438 kB]
Get:3 http://ua.archive.ubuntu.com/ubuntu/ oneiric/main libyaml-dev i386 0.1.4-1 [66.4 kB]
Fetched 530 kB in 0s (1,089 kB/s)
Selecting previously deselected package libgdbm-dev.
(Reading database ... 709975 files and directories currently installed.)
Unpacking libgdbm-dev (from .../libgdbm-dev_1.8.3-10_i386.deb) ...
Selecting previously deselected package libsqlite3-dev.
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.7-2ubuntu2_i386.deb) ...
Selecting previously deselected package libyaml-dev.
Unpacking libyaml-dev (from .../libyaml-dev_0.1.4-1_i386.deb) ...
Processing triggers for man-db ...
Setting up libgdbm-dev (1.8.3-10) ...
Setting up libsqlite3-dev (3.7.7-2ubuntu2) ...
Setting up libyaml-dev (0.1.4-1) ...
$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p374]
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p320]
[ruby-]1.9.3[-p448]
[ruby-]2.0.0-p195
[ruby-]2.0.0[-p247]
[ruby-]2.0.0-head
ruby-head
Already tried to reinstall RVM with rm -rf all configs - didn't help, the problem persists.
What's the proper way to install ruby through RVM in Ubuntu?!
Also done sudo chown -R unik:unik /home/unik/.rvm, installed all necessary packages recommended here. Any tries to explicitly throw p247 gives nothing.

ok, thanks. Really ruby-lang.org is down

Related

Ruby installation with rbenv fails on WSL2 with openssl/openyaml error

I'm trying to install Ruby in Windows using Windows Linux Subsystem and rbenv following these instructions.
$ rbenv install 3.0.1
Downloading ruby-3.0.1.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.gz
Installing ruby-3.0.1...
BUILD FAILED (Ubuntu 20.04 using ruby-build 20210423)
Inspect or clean up the working tree at /tmp/ruby-build.20210428105920.7360.VTYCTG
Results logged to /tmp/ruby-build.20210428105920.7360.log
Last 10 log lines:
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libyaml-dev` to fetch missing dependencies.
Configure options used:
--prefix=/home/skarcher/.rbenv/versions/3.0.1
--enable-shared
LDFLAGS=-L/home/skarcher/.rbenv/versions/3.0.1/lib
CPPFLAGS=-I/home/skarcher/.rbenv/versions/3.0.1/include
Nothing more helpful in the log -- it looks like most of the install is working and the error seems quite straightforward, but libssl-dev and libyaml-dev are installed:
$ sudo apt-get install -y libssl-dev libyaml-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libyaml-dev is already the newest version (0.2.2-1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I couldn't find any reference to this issue other than posts referring to rbenv on Mac OS with older ruby versions. Any help/thoughts much appreciated.

Errors were encountered while processing: /var/cache/apt/archives/dpkg_1.18.25_armhf.deb

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
python3-cairo python3-gi-cairo
The following packages will be upgraded:
ca-certificates dpkg dpkg-dev file libcups2 libcupsimage2 libdpkg-perl
libexiv2-14 libfaad2 libgs9 libgs9-common libmagic-mgc libmagic1
libpam-systemd libsoup-gnome2.4-1 libsoup2.4-1 libsystemd0 libudev1 patch
sense-emu-tools shared-mime-info systemd systemd-sysv tzdata udev
25 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,650 kB/19.2 MB of archives.
After this operation, 471 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.raspbian.org/raspbian stretch/main armhf dpkg armhf 1.18.25 [2,055 kB]
Get:2 http://archive.raspbian.org/raspbian stretch/main armhf dpkg-dev all 1.18.25 [1,595 kB]
Fetched 3,650 kB in 11s (311 kB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 116530 files and directories currently installed.)
Preparing to unpack .../dpkg_1.18.25_armhf.deb ...
Unpacking dpkg (1.18.25) over (1.18.24) ...
dpkg: error processing archive /var/cache/apt/archives/dpkg_1.18.25_armhf.deb (--unpack):
unable to stat './usr/share/man/de' (which I was about to install): Structure needs cleaning
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/dpkg_1.18.25_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

PHP5-GD - package missing

I am not sure i I need to ask this here.
I trying to install php5-gd with this command
sudo apt-get install php5-gd
But, system says that there is no this package
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: php5-gd 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 28,3 kB of archives.
After this operation, 163 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated!
php5-gd Install these packages without verification? [y/N] Y
Err http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/ trusty/main php5-gd amd64 5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1 404 Not Found [IP: 91.189.95.83 80] E: Failed to fetch
http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu/pool/main/p/php5/php5-gd_5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1_amd64.deb 404 Not Found [IP: 91.189.95.83 80]111
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
I tried also --fix-mising but still no progress.
The repository is outdated, follow this guide on how to update it: https://github.com/oerdnj/deb.sury.org/wiki/PPA-migration-to-ppa:ondrej-php#compatibility-php5--packages

rvm throws following error while installing ruby 2.0.0

I am getting the following error while installing the fresh ruby 2.0.0-p648 through rvm
$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.0.0-p648.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..bob password required for 'apt-get --quiet --yes update':
...........
Installing required packages: libgmp-dev....
Error running 'requirements_debian_libs_install libgmp-dev',
showing last 15 lines of /home/rank/.rvm/log/1467783851_ruby-2.0.0-p648/package_install_libgmp-dev.log
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install libgmp-dev'\'': ' apt-get --no-install-recommends --yes install libgmp-dev
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgmp-dev : Depends: libgmp10 (= 2:5.0.2+dfsg-2ubuntu1) but 2:5.1.3+dfsg-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
++ return 100
++ return 100
Requirements installation failed with status: 100.
Please help

pkg-config --version always gives 0.26

So, was reading about pkg-config (I think it's included by default on Debian, which I'm on). But every time I try to find the version for something, it gives me 0.26.
santeyio#Amadeus:/$ pkg-config --version python
0.26
santeyio#Amadeus:/$ pkg-config --version libre-office
0.26
santeyio#Amadeus:/$ pkg-config --version alsdkfj
0.26
santeyio#Amadeus:/$ pkg-config --version firefox
0.26
santeyio#Amadeus:/$
So, I tried sudo apt-get removing it, then installing it again. But I get the same results. I know I'm missing something stupid here... can anyone point me in the right direction?
Here's the output from my re-installing, if that's helpful...
santeyio#Amadeus:/$ sudo apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
calligra-l10n-engb cdparanoia comerr-dev k3b k3b-data k3b-i18n kdevelop-php-docs-l10n
kdevelop-php-l10n krb5-multidev language-pack-kde-en libasprintf0c2:i386 libcroco3:i386
libgcrypt11-dev libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgomp1:i386 libgpg-error-dev
libgssrpc4 libk3b6 libkadm5clnt-mit8 libkadm5srv-mit8 libkcddb4 libkdb5-6 libkrb5-dev libldap2-dev
libp11-kit-dev librtmp-dev libtasn1-3-dev linux-headers-3.5.0-17 postgresql-client-9.2
postgresql-common python-xkit screen-resolution-extra
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
pkg-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.3 kB of archives.
After this operation, 136 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ quantal/main pkg-config amd64 0.26-1ubuntu2 [41.3 kB]
Fetched 41.3 kB in 0s (66.2 kB/s)
Selecting previously unselected package pkg-config.
(Reading database ... 247983 files and directories currently installed.)
Unpacking pkg-config (from .../pkg-config_0.26-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Setting up pkg-config (0.26-1ubuntu2) ...
Use --modversion.
$ pkg-config --modversion python
2.7
pkg-config is meant to be used when compiling against a library -- if you're trying to check the version of a package, use dpkg -s
$ dpkg -s firefox
Package: firefox
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 48531
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam#lists.ubuntu.com>
Architecture: amd64
Version: 17.0.1+build1-0ubuntu0.12.04.1
Or apt-cache policy
$ apt-cache policy firefox
firefox:
Installed: 17.0.1+build1-0ubuntu0.12.04.1
Candidate: 20.0+build1-0ubuntu0.12.04.3
...

Resources