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

 

 

 

VMware - Kernel Headers 3.16.0-4-amd64 were not found

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
ElephantMan
Posts: 2
Joined: 2016-03-27 05:32

VMware - Kernel Headers 3.16.0-4-amd64 were not found

#1 Post by ElephantMan »

I'm getting the following error and I can't seem to fix it after a lot of searching

Image

I have tried the following on a fresh install;

sudo apt-get install build-essential linux-headers-$(uname -r):

Code: Select all

amnesia@amnesia:~$ sudo apt-get install build-essential linux-headers-$(uname -r)
[sudo] password for amnesia: 
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-3.16.0-4-amd64 : Depends: linux-compiler-gcc-4.8-x86 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt-get install linux-compiler-gcc-4.8-x86:

Code: Select all

amnesia@amnesia:~$ sudo apt-get install linux-compiler-gcc-4.8-x86
[sudo] password for amnesia: 
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-compiler-gcc-4.8-x86 : Depends: gcc-4.8 but it is not installable
E: Unable to correct problems, you have held broken packages.
sudo apt-get install gcc-4.8:

Code: Select all

amnesia@amnesia:~$ sudo apt-get install gcc-4.8
[sudo] password for amnesia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-4.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.8' has no installation candidate
I have done apt-get update & apt-get dist-upgrade before these. I have tried installing other versions of gcc (gcc 4.6, gcc 5, gcc 6). I have tried what is suggested here in attempt to install gcc 4.8: https://unix.stackexchange.com/question ... ian-wheezy

I have also tried changing /etc/apt/sources.list to jessie and then doing apt-get update & apt-get dist-upgrade - however still no prevail

Code: Select all

# /etc/apt/sources.list

deb http://ftp.au.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.au.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
Could someone help?

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: VMware - Kernel Headers 3.16.0-4-amd64 were not found

#2 Post by dilberts_left_nut »

ElephantMan wrote:I have also tried changing /etc/apt/sources.list to jessie and then doing apt-get update & apt-get dist-upgrade - however still no prevail
From what?
Wheezy?
How did you get that kernel?
Did you complete the upgrade successfully?

https://packages.debian.org/jessie/gcc-4.8
It's certainly in jessie.
AdrianTM wrote:There's no hacker in my grandma...

ElephantMan
Posts: 2
Joined: 2016-03-27 05:32

Re: VMware - Kernel Headers 3.16.0-4-amd64 were not found

#3 Post by ElephantMan »

dilberts_left_nut wrote:
ElephantMan wrote:I have also tried changing /etc/apt/sources.list to jessie and then doing apt-get update & apt-get dist-upgrade - however still no prevail
From what?
Wheezy?
How did you get that kernel?
Did you complete the upgrade successfully?

https://packages.debian.org/jessie/gcc-4.8
It's certainly in jessie.
From Wheezy

What do you mean? It came as default

No idea if it upgraded succesfully just running what another topic/site online had told someone else to do; in desperate attempt.

After switching my sources.list to jesse, running apt-get upgrade & update - I got the same error but with being unable with build-essential as well as linux headers. Worse than before. =/

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: VMware - Kernel Headers 3.16.0-4-amd64 were not found

#4 Post by dilberts_left_nut »

The default wheezy kernel is 3.2

Post the output of 'aptitude update && aptitude -s full-upgrade'.

You should just be able to install the matching kernel-headers package for your running kernel.

Post actual output (WITH the commands you used), not your interpretation of what you think happened.
AdrianTM wrote:There's no hacker in my grandma...

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

Re: VMware - Kernel Headers 3.16.0-4-amd64 were not found

#5 Post by stevepusser »

A 3.16 kernel with headers that depend on gcc-4.8 did not come from Wheezy or wheezy-backports, but from Jessie, the current "stable" release. If your sources in sources.list are pointing to "stable" instead of "wheezy", this could be the source of the confusion, and why you now have a FrankenDebian.
I have tried installing other versions of gcc (gcc 4.6, gcc 5, gcc 6). I have tried what is suggested here in attempt to install gcc 4.8: https://unix.stackexchange.com/question ... ian-wheezy
And here's the vocabulary word of the day: Farpotshket.

Image

Anyhoo, a look at the sources can't hurt.

Code: Select all

cat /etc/apt/sources.list
or install inxi and run

Code: Select all

inxi -r
Oh wait, you destroyed the evidence, never mind.
MX Linux packager and developer

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

Re: VMware - Kernel Headers 3.16.0-4-amd64 were not found

#6 Post by dasein »

Looks like the OP is actually running TAILS, not Debian. (And I just bet that that explains the seemingly out-of-bounds kernel.)

So a Wheezy update... installed TAILS?
Image

@OP: Lying is a very poor way to solicit help from strangers. Really. Some folks will be offended enough to click this link: http://forums.debian.net/ucp.php?i=zebr ... lephantMan

Post Reply