LinuxQuestions.org
Visit Jeremy's Blog.
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 03-03-2007, 12:04 PM   #1
Nathan1993
Member
 
Registered: Jan 2005
Location: OH, USA
Distribution: Ubuntu 6.10 on desktop, debian etch on laptop
Posts: 69

Rep: Reputation: 15
Post-debian Etch install -- no kernel headers.


I am trying to install madwifi with a somewhat-fresh install of debian etch. When I try to run "m-a prepare", however, I get an error.

Quote:
debian:~# m-a prepare
Getting source for kernel version: 2.6.18-3-686
apt-get install linux-headers-2.6.18-3-686
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package linux-headers-2.6.18-3-686
apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded."
So obviously, it doesn't work. My sources.list is below.

Quote:
debian:/etc/apt# cat sources.list
# TESTING
deb ftp://ftp.no.debian.org/debian/ testing main contrib non-free
deb-src ftp://ftp.no.debian.org/debian/ testing main contrib non-free

# SECURITY
deb http://security.debian.org etch/updates main contrib non-free

# MARILLAT NON-FREE MULTIMEDIA
deb http://www.debian-multimedia.org/ testing main
I know I need to add a repository, but I'm not sure which one. Any help on this? I have the internet and easy copy and paste via SSH on it if that helps.
 
Old 03-03-2007, 01:16 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Etch is now using kernel 2.6.18-4

apt-get install linux-image-2.6.18-4-686
apt-get install linux-headers-2.6.18-4-686
 
Old 03-03-2007, 01:41 PM   #3
Nathan1993
Member
 
Registered: Jan 2005
Location: OH, USA
Distribution: Ubuntu 6.10 on desktop, debian etch on laptop
Posts: 69

Original Poster
Rep: Reputation: 15
I guess I spoke too soon. I found the solution -- you must do "apt-get install linux-headers-2.6-686" then run "m-a prepare", followed by "m-a a-i madwifi".

So, from start to beginning:

Quote:
apt-get install madwifi-source madwifi-tools
apt-get install linux-headers-2.6-686
m-a prepare
m-a a-i madwifi

(Insert your card now)

(You may need to run "modprobe ath_pci", I didn't because I have pcmica -- pci users may need to do that if the lights don't turn on right away or after a reboot)

iwconfig ath0 essid you_essid
dhclient ath0
Put the last 2 lines into /etc/rc.local for it to run when your computer boots.

I hope that this post can help another newbie get his debian system up and running!
 
Old 03-03-2007, 01:42 PM   #4
Nathan1993
Member
 
Registered: Jan 2005
Location: OH, USA
Distribution: Ubuntu 6.10 on desktop, debian etch on laptop
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rickh
Etch is now using kernel 2.6.18-4

apt-get install linux-image-2.6.18-4-686
apt-get install linux-headers-2.6.18-4-686
Haha rich, lets just say I had my reply open for 45 minutes while I tested it. Thanks for the help, but I figured it out myself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PCI Serial Card Install in Debian Etch w/ kernel 2.6.19 mykeaster Linux - Hardware 0 02-27-2007 08:50 AM
Fresh debian-etch install rangalo Debian 5 12-25-2006 11:47 AM
Pure Debian Kernel-Headers dauphinfay Debian 2 07-12-2006 11:47 PM
ISOLinux from Debian etch cannot find kernel image (but kernel is in its place)! Why? *Dark Dragon* Debian 4 11-07-2005 09:54 PM
First post... Quick question: kernel headers lopi Slackware 4 04-04-2003 05:12 PM

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

All times are GMT -5. The time now is 08:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration