LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-11-2004, 07:58 PM   #1
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
From Gentoo to Debian


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
 
Old 09-11-2004, 08:18 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
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.

Here's a helpful document:

http://www.debian.org/doc/manuals/ap.../index.en.html
 
Old 09-11-2004, 08:23 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: From Gentoo to Debian

Quote:
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.

Try adding these lines.

Code:
# Testing
deb http://ftp.de.debian.org/debian/ testing main non-free contrib
deb http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free

# Sources
deb-src http://ftp.de.debian.org/debian testing main contrib non-free
deb-src http://nonus.debian.org/debian-non-US testing/non-US main contrib non-free

## Various Multimedia Helper Apps Mplayer, Real, w32codecs, etc.. ##
deb ftp://ftp.nerim.net/debian-marillat/ testing main
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.
 
Old 09-11-2004, 09:13 PM   #4
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
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
 
Old 09-11-2004, 10:35 PM   #5
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
Thumbs up

You guys are awsome. Now I see where portage got the idea. I'll have to try BSD some day.
 
Old 09-12-2004, 01:15 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
You should read the apt.sources documentation here:
http://www.debian.org/doc/manuals/ap...basico.en.html
It should help you to find the best mirror(s) for you.

For that matter, check out the rest of the apt documentation as well.
 
Old 09-12-2004, 07:10 PM   #7
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
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
 
Old 09-12-2004, 07:30 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
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.

Code:
>$ apt-file search sys/types.h
cmix: usr/share/cmix/shadow/sys/types.h
cmix: usr/share/cmix/shadow/sys/types.h
dietlibc-dev: usr/include/diet/sys/types.h
dietlibc-dev: usr/include/diet/sys/types.h
ecos: usr/src/ecos/packages/isoinfra/v2_0/include/sys/types.h
ecos: usr/src/ecos/packages/isoinfra/v2_0/include/sys/types.h
elks-libc: usr/lib/bcc/include/sys/types.h
elks-libc: usr/lib/bcc/include/sys/types.h
libc5-altdev: usr/i486-linuxlibc1/include/sys/types.h
libc5-altdev: usr/i486-linuxlibc1/include/sys/types.h
libc6-dev: usr/include/sys/types.h
libc6-dev: usr/include/sys/types.h
libpt-dev: usr/include/ptlib/wince/sys/types.h
libuclibc-dev: usr/i386-linux-uclibc/include/sys/types.h
libuclibc-dev: usr/i386-uclibc-linux/include/sys/types.h
libwine-dev: usr/include/wine/msvcrt/sys/types.h
libwine-dev: usr/include/wine/msvcrt/sys/types.h
lsbdev: var/lib/lsbdev/lsb_header/All/sys/types.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA32/sys/types.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA64/sys/types.h.defs
lsbdev: var/lib/lsbdev/lsb_header/sys/types.h
mingw32-runtime: usr/i586-mingw32msvc/include/sys/types.h
mingw32-runtime: usr/i586-mingw32msvc/include/sys/types.h
newlib-m68hc1x: usr/m68hc11/include/sys/types.h
newlib-m68hc1x: usr/m68hc11/include/sys/types.h
oskit: usr/include/oskit/c/sys/types.h
oskit: usr/include/oskit/c/sys/types.h
oskit: usr/include/oskit/freebsd/sys/types.h
oskit: usr/include/oskit/freebsd/sys/types.h
prc-tools-arm: usr/arm-palmos/include/sys/types.h
prc-tools-arm: usr/arm-palmos/include/sys/types.h
prc-tools-m68k: usr/m68k-palmos/include/sys/types.h
prc-tools-m68k: usr/m68k-palmos/include/sys/types.h
rtlinux: usr/src/rtlinux-3.1pre3/include/posix/sys/types.h
rtlinux: usr/src/rtlinux-3.1pre3/include/posix/sys/types.h
tendra: usr/lib/TenDRA/lib/include/bsd_extn.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/bsd_extn.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/gcc.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/gcc.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix1.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix1.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix2.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/posix2.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/svid3.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/svid3.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/unix95.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/unix95.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/xpg3.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/xpg3.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/xpg4.api/sys/types.h
tendra: usr/lib/TenDRA/lib/include/xpg4.api/sys/types.h
tendra: usr/lib/TenDRA/machines/linux/2.4.17/80x86/include/sys/types.h
tendra: usr/lib/TenDRA/machines/linux/2.4.17/80x86/include/sys/types.h
Which I see confirms my suspicion that you need libc6-dev.

Edit: A guide to compiling the kerenl the Debian way if you want to check it out it is a pretty slick idea.

http://newbiedoc.sourceforge.net/sys...MAL-KERNEL-PKG

Last edited by HappyTux; 09-12-2004 at 07:34 PM.
 
Old 09-12-2004, 08:39 PM   #9
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
install the kernel headers with

Code:
apt-get install kernel-headers-$(uname -r)
 
Old 09-13-2004, 05:03 PM   #10
olias
Member
 
Registered: Apr 2003
Location: Toronto, CANADA
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: 15
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.

Thanks again for helping me, Olias

Last edited by olias; 09-13-2004 at 06:21 PM.
 
Old 09-13-2004, 05:31 PM   #11
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
yeah, gnome is nice. kde can be chucked with

Code:
apt-get remove kde-core
 
Old 09-13-2004, 05:37 PM   #12
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
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.
 
Old 09-14-2004, 04:01 AM   #13
vrln
Member
 
Registered: Mar 2004
Location: Finland
Distribution: Gentoo
Posts: 235

Rep: Reputation: 30
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian vs. Gentoo which is better? diefree Linux - Software 13 04-16-2008 08:19 PM
Debian or Gentoo? linda Linux - Distributions 7 06-17-2004 05:49 PM
Debian v. Gentoo gsibble Linux - Distributions 1 03-16-2004 04:44 AM
Debian and Gentoo JulesVerne Linux - Software 3 03-09-2004 08:17 PM
Gentoo And Debian kith Debian 2 07-11-2003 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration