LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get is not working properly (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-is-not-working-properly-4175512928/)

shariefbe 08-01-2014 12:33 AM

apt-get is not working properly
 
Dear Friends

I am trying to install my ncurses package in my Ubuntu Distro.

I am getting the following error. But i dont know what is the problem. Can anyone help me

Code:

mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$ sudo apt-get install ncurses-develReading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package ncurses-devel
mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$


pan64 08-01-2014 12:52 AM

probably it is called ncurses-dev, there is no such package (apt-get is working properly).

k3lt01 08-01-2014 12:54 AM

Let's break this down cause from what you are saying here apt-get isn't the problem
Quote:

Originally Posted by shariefbe (Post 5212954)
I am trying to install my ncurses package in my Ubuntu Distro.

Your ncurses package? where do you have it? Is it in a folder already on your machine or is it in a repository somewhere?
Quote:

Originally Posted by shariefbe (Post 5212954)
I am getting the following error. But i dont know what is the problem. Can anyone help me
Code:

mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$ sudo apt-get install ncurses-develReading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package ncurses-devel
mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$


This indicates a couple of possibilities.
1. The package is on your machine in a folder(e.g. downloads) and apt-get is not what you use for that.
2. The package is located in a repository and the fact apt-get cannot locates may indicate your sources.list is incorrect OR
3. the packages file for the repository is not correct.

Dealing with 1. If the file is on your machine you should either dpkg or gdebi.
dpkg is a command line tool so the command will be
Code:

dpkg -i ncurses-devel.deb
but you must be in the folder (so your terminal will have been cd'd to the folder already.
Dealing with 2. If 1 is not correct please post where this particular package you want is supposed to be located and post your sources.list
Dealing with 3. If 1 is not correct and 2 is partially correct leading to 3. you will have to downlaod the package manually and use dpkg to install it.

k3lt01 08-01-2014 12:57 AM

Quote:

Originally Posted by pan64 (Post 5212965)
probably it is called ncurses-dev, there is no such package (apt-get is working properly).

Looking at Ubuntu packages there is no such thing as ncurses-dev either.

pan64 08-01-2014 01:01 AM

here is the list: http://packages.ubuntu.com/search?keywords=ncurses
anyway, there is no such package

k3lt01 08-01-2014 01:16 AM

Quote:

Originally Posted by pan64 (Post 5212973)
here is the list: http://packages.ubuntu.com/search?keywords=ncurses
anyway, there is no such package

Which is why I think it is his own package just like his 1st post suggest when he says
Quote:

I am trying to install my ncurses package in my Ubuntu Distro.
I am sure when he replies this will be cleared up.

pan64 08-01-2014 01:24 AM

in that case OP need to use dpkg instead of apt-get

shariefbe 08-01-2014 02:00 AM

Actually i am trying to compile kernel. so i am getting these line when i give "make menuconfig"

Code:

mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$ make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
mamse@mamse-ThinkCentre-M80:~/linux-3.15.8$


pan64 08-01-2014 02:09 AM

that is probably named libncurses5-dev

k3lt01 08-01-2014 02:43 AM

Quote:

Originally Posted by pan64 (Post 5212982)
in that case OP need to use dpkg instead of apt-get

Which I already said.

Shadow_7 08-01-2014 08:15 AM

$ dpkg -l '*ncurses*dev*'

or

$ dpkg-query --load-avail -l '*ncurses*dev*'

or

$ apt-file find <some file you need from ncurses-dev>

although if you

$ sudo apt-get install build-essentials

the ncurses-dev element should be grabbed as part of that process. But for the record, it's likely called... libncurses-dev

EDDY1 08-01-2014 12:59 PM

http://packages.ubuntu.com/lucid/ncurses-dev


All times are GMT -5. The time now is 09:10 AM.