DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been using Gentoo for about a year now and wanted to see what Debian was all about so I downloaded the sarge-i386-1.iso and it was a breeze to install. My problem is with the 'apt-get' errors like this...
Code:
recrm:/home/mike# apt-get install kernel-headers
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://security.debian.org testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org testing/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package kernel-headers
r
Here is the default /etc/apt/sources.list that was setup by the install...
Code:
#deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20040806)]/ unstable contrib main
deb http://security.debian.org/ testing/updates main contrib
The error "Couldn't stat source package list" usually means that your network connection isn't working. Also, you need to add a Debian package repository to your sources.list.
Originally posted by olias I've been using Gentoo for about a year now and wanted to see what Debian was all about so I downloaded the sarge-i386-1.iso and it was a breeze to install. My problem is with the 'apt-get' errors like this...
Code:
recrm:/home/mike# apt-get install kernel-headers
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://security.debian.org testing/updates/main Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://security.debian.org testing/updates/contrib Packages (/var/lib/apt/lists/security.debian.org_dists_testing_updates_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package kernel-headers
r
Here is the default /etc/apt/sources.list that was setup by the install...
Code:
#deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux testing _Sarge_ - Official Snapshot i386 Binary-1 (20040806)]/ unstable contrib main
deb http://security.debian.org/ testing/updates main contrib
Any pointers would be great.
Thanks, Olias
You need to do what it says run apt-get update to refresh the packages list if you have the net connection setup. You would want to add some sources to your file as well you only have security for testing in there at the moment and there is really nothing in there you would need.
I put the extra line in there in case you want to install mplayer. Plus I use the .de (German) mirrors because they are the fastest I have found the Canadian mirrors just plain suck. Oh you would want to install kernel-headers-?.??.?? replacing the ? with the version numbers you see when you use uname -r since I assume you are trying to get the headers for your running kernel.
Debian only provides security updates for the stable branch. The reason is that the packages in testing and stable change too often and providing security updates for them would require too much work and resources. Besides, the packages in testing and unstable get updated often enough and would include whatever fixes the security update would provide anyway. To get rid of your error, edit your /etc/apt/sources.list and either delete or comment out the security update entry
Code:
#deb http://security.debian.org/ testing/updates main contrib
Also, you don't seem to have an entry for an internet source, you should add one. A common one is
Code:
deb http://ftp.us.debian.org/debian testing main contrib
Sorry to have ask for more direction but I seem to be missing something.
I just wanted to install the nVidia drivers and noticed that the basic desktop install didn't drop in the kernel sources. So I did an 'apt-get install kernel-source-2.6.7' then untared them, made the linux softlink and coppied over my .config file. I also added some supporting packages such as...
binutils
e2fsprogs
gcc
make
module-init-tools
procps
util-linux
Here's the problem. When I run make menuconfig I get some missing sys/ directory error.
Code:
recrm:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:97:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:98:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:99:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:100:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:101:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:102:20: string.h: No such file or directory
scripts/basic/fixdep.c:103:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:104:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
Originally posted by olias Sorry to have ask for more direction but I seem to be missing something.
I just wanted to install the nVidia drivers and noticed that the basic desktop install didn't drop in the kernel sources. So I did an 'apt-get install kernel-source-2.6.7' then untared them, made the linux softlink and coppied over my .config file. I also added some supporting packages such as...
binutils
e2fsprogs
gcc
make
module-init-tools
procps
util-linux
Here's the problem. When I run make menuconfig I get some missing sys/ directory error.
Code:
recrm:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:97:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:98:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:99:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:100:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:101:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:102:20: string.h: No such file or directory
scripts/basic/fixdep.c:103:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:104:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
What should I do? Where did I screw up?
Thanks, Olias
Well just off the top of my head I see no mention of libc6-dev and linux-kernel-headers so you will probably want these and I know you have not heard of apt-file so I may as well mention it it is absolutely needed for situations like this. It works similar to apt-get in that you use apt-file update to refresh its package cache and then apt-file search sys/types.h in this case and would give you output like this.
Thanks guys the libc6-dev and linux-kernel-headers did the trick. I have the latest nVidia drivers running on my system now.
I can't help but thinking that I could have chose to add developer files at install timing and made this process a wee bit easier. Also, I would have liked to toss out KDE in favor of Gnome. Any recommendations would be great.
Originally posted by olias
Thanks guy the libc6-dev and linux-kernel-headers did the trick. I have the latest nVidia drivers running on my system now.
I can't help but thinking that I could have chose to add developer files at install timing and made this process a wee bit easier. Also, I would have liked to toss out KDE in favor of Gnome. Any recommendations would be great.
Thanks again for helping me, Olias
Your welcome, most likely in tasksel install developement environment not positive on that though I usually find the hard way to do it as well. Never use the Gnome but I believe it is either gnome-core or gnome-desktop-environment you are looking for to get most of it.
You can install debian in a "gentoo style" way too; just install the base system only, and select quit as soon as tasksel etc starts. You'll end up with a very minimal commandline system (~100) just like in gentoo. Then just use apt-get to get everything. (gnome/fluxbox/x-window-system/alsa/kernel-source-etc/kernel-headers-etc/gcc/g++/binutils/xmms/mozilla-firefox)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.