I am trying to setup ruby on rails on a new ubuntu machine. I want to install all the dependencies at once after a sudo apt-get update, but encountered errors saying the packages has no installation candidates. Am I doing something wrong or missing something small?

sudo apt-get --ignore-missing install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libxslt1-dev 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
Package build-essential 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
Package curl 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
Package libsqlite3-dev 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
Package zlib1g-dev 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
Package sqlite3 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
E: Package 'curl' has no installation candidate
E: Package 'zlib1g-dev' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package libreadline-dev
E: Unable to locate package libyaml-dev
E: Package 'libsqlite3-dev' has no installation candidate
E: Package 'sqlite3' has no installation candidate
E: Package 'libxslt1-dev' has no installation candidate
E: Unable to locate package libcurl4-openssl-dev

This question came from our site for professional and enthusiast programmers.

You can use 'apt-cache policy <package name>' to get some details on the package selection. Maybe if you have mixed different apt repositories the versions may conflict and the autoresolver cannot fix it.
–
TeTeTJun 13 '14 at 7:42

ask ubuntu is the place not SO to ask this question
–
M4ver1kJun 13 '14 at 13:21

1 Answer
1

It doesn't download anything, just updates package lists them to get information on the newest versions of packages, their dependencies etc, I seem to remember that I was unable to apt-get curl once, and updating solved the problem.