LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   try getting kernel-headers (https://www.linuxquestions.org/questions/debian-26/try-getting-kernel-headers-514812/)

karlochacon 12-30-2006 03:44 AM

try getting kernel-headers
 
hi

my kernel is
uname -r 2.6.8-3-686


and i'm trying to get the kernel-headers because i'm going to install asterisk and other packages so I need the kernel-headers, but when i try this

apt-get install kernel-headers-$(uname -r)

I got a problem

Code:

Reading Package lists... Done
Building dependency tree ...Done
Some packages could not be installed. this may mean that you have requested an imposible situation
or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming

Since you only request a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed.

The following packages have unmet dependencies:
kernel-headers-2.6.8-3-686: Depends: kernel-headers-2.6.8-3 but it not going to be installed.
e: Broken packages

and i try updating but i got an problem again

what could be the solution?

oldlucky 12-30-2006 04:22 AM

Make sure you have your sources.list setup correctly with main contib and non-free

example : deb http://ftp.au.debian.org/debian/ stable main contrib non-free

then su to root
"apt-get update"
then "apt-get install linux-kernel-headers-2.6.8-3-686
that should install the kernel headers.

cheers

karlochacon 12-30-2006 10:01 PM

well I did a mistake because I delete my sources.list


but I found a new list on internet and I solved the problem

my new sources.list

sources.list
Code:

#Sarge (stable)
deb http://ftp.rediris.es/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free



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