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 new to ubuntu, I am using ubuntu 13.10, and trying to install NS-2.

During the installation I am facing the following error;

X11/Xlib.h: No such file or directory

Then I tried to install

sudo apt-get install libx11-dev

This time I am facing the following error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libx11-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: Package 'libx11-dev' has no installation candidate

I have no idea how to deal it, Please help Thanks in advance

share|improve this question
Sorry I am new user and unable to understand what you said –  user2592799 Nov 15 '13 at 12:04

Your Answer


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

Browse other questions tagged or ask your own question.