I think the problem is your sources.list. You only have the backport and update repositories, and not the regular sources enabled. So, add the following repository to your sources.list:
Code:
deb http://ftp.ca.debian.org/debian/ stretch main
That's the one I use, since I'm in Canada (hence, "ca" -- for others in other nations, see
here). Anyway, after you add that (or a similar) repository, then update it and see if you can then install libncurses5-dev. You should be able to.
Rather than downloading directly from kernel.org and compiling it, there might be an easier way to install a newer kernel:
http://jensd.be/818/linux/install-a-...stretch-stable From the instructions, seems you'd run the following command:
Code:
sudo apt-get -t stretch-backports install linux-image-4.16.0-0.bpo.2-amd64
Or maybe it would be something other than amd64, depending upon your machine. Choices are
here.
If you wish to compile a kernel yourself, here's a description of a way to get a more recent kernel source to compile on Debian:
https://debian-handbook.info/browse/...mpilation.html The package linux-source-4.16 is available from the Debian backports repository you have in your sources.list. That's newer than what Debian stable has.
Perhaps 4.16 isn't new enough for you, given that the latest stable kernel from kernel.org is 4.17.4. The package linux-source-4.17 is available from Sid, though I'd avoid that. However, possibly you could rely on the following repository:
Code:
deb-src http://ftp.ua.debian.org/debian/ sid main
Then, you could build the linux-source-4.17 package from source for your Stretch (Debian stable) machine (in essence, porting it to your system yourself). Once that was done, you could rely on the aforementioned
instructions to compile the kernel. Here's how I build packages from source:
Quote:
sudo apt-get build-dep package
apt-get source package
cd package-1.0
dpkg-buildpackage -b -uc -us
|
Anyway, as I mentioned at the beginning, you should be able to install the libncurses5-dev package after you add the repository, if you're determined to compile the kernel from kernel.org.