Ubuntu – Problem installing build-essential on 14.04.1 LTS


I'm trying to install VM Player on Ubuntu 14.04.1 LTS.

I've seen threads for earlier versions of Ubuntu that say to install build-essential and linux headers first. It appears that linux headers is already the newest version. However build-essential will not install for me.

sudo apt-get install build-essential

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essential

Is there something I am missing here? Thank you in advance for your help.

Best Answer

build-essential is available on Main repository for 14.04. So first enable repository.

The main component contains applications that are free software, can be freely redistributed and are fully supported by the Ubuntu team. & The universe component is a snapshot of the free, open-source, and Linux world.

You can enable Main & Universe repository by following command:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe"

Then install package by following command in terminal:

sudo apt-get update
sudo apt-get install build-essential.