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

Help with issues regarding installation of Debian

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

Postby ElephantMan » 2016-03-27 06:17

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?
ElephantMan
 
Posts: 2
Joined: 2016-03-27 05:32

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

Postby dilberts_left_nut » 2016-03-27 08:37

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...
User avatar
dilberts_left_nut
 
Posts: 5003
Joined: 2009-10-05 07:54
Location: enzed

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

Postby ElephantMan » 2016-03-27 11:07

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. =/
ElephantMan
 
Posts: 2
Joined: 2016-03-27 05:32

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

Postby dilberts_left_nut » 2016-03-27 23:16

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
dilberts_left_nut
 
Posts: 5003
Joined: 2009-10-05 07:54
Location: enzed

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

Postby stevepusser » 2016-03-28 19:38

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Calibre 3.47.1, QMPlay2 19.09.03, wine-staging 4.15, Telegram-desktop 1.8.4, Pale Moon 28.7.0, Waterfox 56.2.14
User avatar
stevepusser
 
Posts: 11088
Joined: 2009-10-06 05:53

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

Postby dasein » 2016-03-29 16:08

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: ucp.php?i=zebra&mode=foes&add=ElephantMan
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable