I
I
Ilya Pavlov2016-03-12 16:03:02
linux
Ilya Pavlov, 2016-03-12 16:03:02

Ubuntu packages not installing?

# apt-get install ruby ​​libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'ruby' instead of ' irb'
Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available
from another source This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libopenssl-ruby' has no installation candidate
E: Unable to locate package libyaml-ruby
E: Unable to locate package libdl-ruby
E: Unable to locate package libiconv-ruby
E: Unable to locate package libreadline-ruby
E: Package 'rubygems' has no installation candidate
Googled about this - found nothing. How to fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2016-03-12
@AlanDrakes

apt-get update
apt-get install -f
Either take the missing packages from the repository where they are located, or add the repository, or set them manually (dpkg -i /path/to/package)

O
OnYourLips, 2016-03-12
@OnYourLips

If you need dev packages for a language, then don't install them from the package manager.
Try https://github.com/rbenv/ruby-build

R
Roman Popov, 2016-03-14
@Roman_Popov

Install RVM and it will pull everything you need. Google knows how to install RVM under Ubuntu. I once set, I don’t remember the details, but there were no problems at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question