Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question

migrated from stackoverflow.com Jun 16 at 14:16

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. –  TeTeT Jun 13 at 7:42
    
ask ubuntu is the place not SO to ask this question –  M4ver1k Jun 13 at 13:21
add comment

1 Answer 1

Try doing a:

sudo apt-get update

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.

http://linux.die.net/man/8/apt-get

share|improve this answer
    
That doesn't help! –  Shashank Jun 13 at 6:41
    
I might be wrong, but why are you using --ignore-missing? Wouldn't that mean that if a dependency is not present, the system tries to install the package anyhow? –  Charles Green Jun 16 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.