Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot install Linux headers

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Cannot install Linux headers

#1 Post by infestor »

i would like to install linux headers as they are required to install nvidia-driver (i am running debian testing with videocard: GeForce GTX 1060 3GB)

however when i try to install i encounter:

Code: Select all

~$ sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-amd64 : Depends: linux-headers-4.9.0-3-amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
PS:

Code: Select all

$ uname -a
Linux rig 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux
---------------

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Cannot install Linux headers

#2 Post by stevepusser »

What are your software sources?

Code: Select all

cat /etc/apt/sources.list
Have you installed anything else from the online repositories?
MX Linux packager and developer

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Cannot install Linux headers

#3 Post by sunrat »

Not currently available in testing.
https://packages.debian.org/search?keyw ... lla-search
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Re: Cannot install Linux headers

#4 Post by infestor »

stevepusser wrote:What are your software sources?

Code: Select all

cat /etc/apt/sources.list
Have you installed anything else from the online repositories?

Code: Select all

$ cat /etc/apt/sources.list
# Debian packages for testing
deb http://ftp.by.debian.org/debian/ testing main non-free contrib
# Uncomment the deb-src line if you want 'apt-get source'
# to work with most packages.
deb-src http://ftp.by.debian.org/debian/ testing main non-free contrib

# Security updates for stable
# deb http://security.debian.org/ stable/updates main contrib
---------------

User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Re: Cannot install Linux headers

#5 Post by infestor »

sunrat wrote:Not currently available in testing.
https://packages.debian.org/search?keyw ... lla-search
guess had to upgrade the kernel manually when changed my sources from stable to testing. i installed 4.11.0-1-amd64. but when i tried to install the headers, it complains that it is bound to old kernel:

Code: Select all

$ sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
[sudo] password for semko: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-headers-amd64 : Depends: linux-headers-4.9.0-3-amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
---------------

itsiam
Posts: 1
Joined: 2017-07-02 12:37

Re: Cannot install Linux headers

#6 Post by itsiam »

I had the same trouble.
Changing:

Code: Select all

deb http://ftp.ua.debian.org/debian/ testing main non-free contrib
to

Code: Select all

deb http://ftp.by.debian.org/debian/ stretch main non-free contrib
has resolved the issue.

As I can see at https://packages.debian.org/sid/linux-h ... .0-3-amd64 there is no this package for buster (testing), only for sid and stretch.

User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Re: Cannot install Linux headers

#7 Post by infestor »

wizard10000 wrote:
infestor wrote:...guess had to upgrade the kernel manually when changed my sources from stable to testing. i installed 4.11.0-1-amd64. but when i tried to install the headers, it complains that it is bound to old kernel:
Where did you get the kernel? Testing and Unstable are still on 4.9 and 4.11.0-1 isn't in Experimental.

an

Code: Select all

$ apt-cache search linux-image
gave me:

Code: Select all

linux-headers-4.11.0-1-amd64 - Header files for Linux 4.11.0-1-amd64
linux-headers-4.11.0-1-rt-amd64 - Header files for Linux 4.11.0-1-rt-amd64
linux-image-4.11.0-1-amd64 - Linux 4.11 for 64-bit PCs
linux-image-4.11.0-1-amd64-dbg - Debug symbols for linux-image-4.11.0-1-amd64
linux-image-4.11.0-1-rt-amd64 - Linux 4.11 for 64-bit PCs, PREEMPT_RT
linux-image-4.11.0-1-rt-amd64-dbg - Debug symbols for linux-image-4.11.0-1-rt-amd64
linux-image-4.9.0-3-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-3-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT

---------------

User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Re: Cannot install Linux headers

#8 Post by infestor »

i guess the the header meta package is not available for my kernel (4.11.0-1-amd64) yet.
dep: linux-headers-4.9.0-3-amd64
Package not available
will have to wait for the update
---------------

User avatar
infestor
Posts: 175
Joined: 2012-02-07 22:18

Re: Cannot install Linux headers

#9 Post by infestor »

infestor wrote:i guess the the header meta package is not available for my kernel (4.11.0-1-amd64) yet.
dep: linux-headers-4.9.0-3-amd64
Package not available
will have to wait for the update
still nothing. damn :(
---------------

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot install Linux headers

#10 Post by dasein »

Stop bumping your post!

Post Reply