3

I am trying to install packages using apt-get:

root@ubuntu:/# sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-gnutls-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

E: Unable to locate package build-essential E: Unable to locate package libssl-dev E: Package 'libcurl4-gnutls-dev' has no installation candidate E: Unable to locate package libexpat1-dev E: Unable to locate package gettext E: Unable to locate package unzip

My main goal is to install package make , which I need to manually install a lower version of PHP

This is what happened:

root@ubuntu:~/php-5.4.31# make
The program 'make' is currently not installed. You can install it by typing:
apt-get install make

And then I go on and do apt-get install make

root@ubuntu:/# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make 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 'make' has no installation candidate

I am running Ubuntu 14.04.1 LTS on a virtual machine (Hyper-V) if that helps

Zanna
  • 70,465

1 Answers1

2

I had the sme problem only before a few days. Try to run

# apt-get update

Your apt-repository is outdated. This might be the problem.

LittleByBlue
  • 943
  • 2
  • 10
  • 26
  • here is another problem I think: when I do apt-get update it installs just some of the updates but not all of it, I am thinking this is the problem? I am using sudo su – user3170899 Jul 31 '14 at 20:36
  • this is the error: Err http://us.archive.ubuntu.com raring-backports/main i386 Packages 404 Not Found [IP: 91.189.91.15 80] (could Ubuntu be down???) (there are a lot more of these with the same errors just posting one for example) – user3170899 Jul 31 '14 at 20:38
  • Ok, the 404 error code is like mine. I don't now why there raring-backports sources are. Try $ ping -c 2 91.189.91.15 – LittleByBlue Jul 31 '14 at 20:43
  • No drops 0% packet loss, Time was 1007 ms – user3170899 Jul 31 '14 at 20:46
  • @user3170899 raring-backports? 13.04 is an EOL release. your VM is not running 14.04 but 13.04, you can quickly check it with lsb_release -d – Sylvain Pineau Jul 31 '14 at 20:58
  • try to get make from here and install it using dpkghttp://packages.ubuntu.com/search?keywords=make&searchon=names&suite=trusty§ion=all – LittleByBlue Jul 31 '14 at 20:58
  • @LittleByBlue I did the command. please see the screenshot – user3170899 Jul 31 '14 at 21:08
  • 1
    that's not a command. He meant to go to that website, download the .deb and use dpkg -i /path/to/downloaded.deb to install it – ElefantPhace Jul 31 '14 at 21:24