Linux headers not found

Why the installation fails for this package? it says linux-headers not found but it is there

root@sun-Alienware-X51:/var/tmp# uname -a Linux sun-Alienware-X51 3.5.0-28-generic #48~precise1-Ubuntu SMP Wed Apr 24 21:42:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux root@sun-Alienware-X51:/var/tmp# dpkg --list | grep linux-image ii linux-image-3.5.0-28-generic 3.5.0-28.48~precise1 Linux kernel image for version 3.5.0 on 64 bit x86 SMP ii linux-image-generic-lts-quantal 3.5.0.28.35 Generic Linux kernel image root@sun-Alienware-X51:/var/tmp# dpkg -i desktopvideo-9.6.9-amd64.deb Selecting previously unselected package desktopvideo. (Reading database . 178666 files and directories currently installed.) Unpacking desktopvideo (from desktopvideo-9.6.9-amd64.deb) . dpkg: dependency problems prevent configuration of desktopvideo: desktopvideo depends on linux-headers; however: Package linux-headers is not installed. dpkg: error processing desktopvideo (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme . Processing triggers for desktop-file-utils . Processing triggers for bamfdaemon . Rebuilding /usr/share/applications/bamf.index. Processing triggers for gnome-menus . Errors were encountered while processing: desktopvideo root@sun-Alienware-X51:/var/tmp# apt-get install linux-headers-3.5.0-28-generic Reading package lists. Done Building dependency tree Reading state information. Done linux-headers-3.5.0-28-generic is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: desktopvideo : Depends: linux-headers E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). root@sun-Alienware-X51:/var/tmp# dpkg -r desktopvideo (Reading database . 178722 files and directories currently installed.) Removing desktopvideo . Processing triggers for desktop-file-utils . Processing triggers for bamfdaemon . Rebuilding /usr/share/applications/bamf.index. Processing triggers for gnome-menus . Processing triggers for hicolor-icon-theme . root@sun-Alienware-X51:/var/tmp# apt-get install linux-headers-3.5.0-28-generic Reading package lists. Done Building dependency tree Reading state information. Done linux-headers-3.5.0-28-generic is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded. root@sun-Alienware-X51:/var/tmp# 
root@sun-Alienware-X51:/var/tmp# sudo apt-get -f install linux-headers-3.5.0-28-generic Reading package lists. Done Building dependency tree Reading state information. Done linux-headers-3.5.0-28-generic is already the newest version. linux-headers-3.5.0-28-generic set to manually installed. The following packages were automatically installed and are no longer required: gir1.2-dbusmenu-gtk-0.4 update-notifier-common libgphoto2-l10n libcdio-paranoia1 libgphoto2-port0 libsane-hpaio libraw5 python-reportlab libgexiv2-1 gir1.2-gtk-2.0 python-renderpm acl libxrandr-ltsq2 apport-symptoms libieee1284-3 linux-headers-3.5.0-23-generic libsane-common linux-headers-3.5.0-23 libexiv2-11 gksu libgksu2-0 libart-2.0-2 libcdio-cdda1 hplip-data libllvm3.1 python-reportlab-accel Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 141 not upgraded. 
root@sun-Alienware-X51:/var/tmp# apt-get install linux-headers-generic Reading package lists. Done Building dependency tree Reading state information. Done The following packages were automatically installed and are no longer required: gir1.2-dbusmenu-gtk-0.4 update-notifier-common libgphoto2-l10n libcdio-paranoia1 libgphoto2-port0 libsane-hpaio libraw5 python-reportlab libgexiv2-1 gir1.2-gtk-2.0 python-renderpm acl libxrandr-ltsq2 apport-symptoms libieee1284-3 linux-headers-3.5.0-23-generic libsane-common linux-headers-3.5.0-23 libexiv2-11 gksu libgksu2-0 libart-2.0-2 libcdio-cdda1 hplip-data libllvm3.1 python-reportlab-accel Use 'apt-get autoremove' to remove them. The following extra packages will be installed: linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic The following NEW packages will be installed: linux-headers-3.2.0-41 linux-headers-3.2.0-41-generic linux-headers-generic 0 upgraded, 3 newly installed, 0 to remove and 141 not upgraded. Need to get 12.7 MB of archives. After this operation, 67.6 MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://be.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-41 all 3.2.0-41.66 [11.7 MB] Get:2 http://be.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-41-generic amd64 3.2.0-41.66 [984 kB] Get:3 http://be.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic amd64 3.2.0.41.49 [2,550 B] Fetched 12.7 MB in 2s (6,138 kB/s) Selecting previously unselected package linux-headers-3.2.0-41. (Reading database . 191914 files and directories currently installed.) Unpacking linux-headers-3.2.0-41 (from . /linux-headers-3.2.0-41_3.2.0-41.66_all.deb) . Selecting previously unselected package linux-headers-3.2.0-41-generic. Unpacking linux-headers-3.2.0-41-generic (from . /linux-headers-3.2.0-41-generic_3.2.0-41.66_amd64.deb) . Selecting previously unselected package linux-headers-generic. Unpacking linux-headers-generic (from . /linux-headers-generic_3.2.0.41.49_amd64.deb) . Setting up linux-headers-3.2.0-41 (3.2.0-41.66) . Setting up linux-headers-3.2.0-41-generic (3.2.0-41.66) . Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.2.0-41-generic /boot/vmlinuz-3.2.0-41-generic Setting up linux-headers-generic (3.2.0.41.49) . root@sun-Alienware-X51:/var/tmp# dpkg -i desktopvideo-9.6.9-amd64.debSelecting previously unselected package desktopvideo. (Reading database . 213946 files and directories currently installed.) Unpacking desktopvideo (from desktopvideo-9.6.9-amd64.deb) . Setting up desktopvideo (9.6.9) . * Creating settings directory * Adding desktopvideo-9.6.9a9 to DKMS * Building desktopvideo-9.6.9a9 for kernel version: 3.5.0-28-generic * Installing desktopvideo-9.6.9a9 * Attempting to load driver * Succesfully loaded new driver Processing triggers for hicolor-icon-theme . Processing triggers for desktop-file-utils . Processing triggers for bamfdaemon . Rebuilding /usr/share/applications/bamf.index. Processing triggers for gnome-menus . Processing triggers for libc-bin . ldconfig deferred processing now taking place root@sun-Alienware-X51:/var/tmp# 

Источник

Читайте также:  Linux mint пропала кнопка пуск

trying to install linux headers but not found in sources

 sudo apt-get install build-essential linux-headers-$(uname -r) 
sudo: unable to resolve host ts7400-4e7b7c Reading package lists. Done Building dependency tree Reading state information. Done E: Unable to locate package linux-headers-2.6.35.3-571-gcca29a0 E: Couldn't find any package by regex 'linux-headers-2.6.35.3-571-gcca29a0' 
Linux ts7400-4e7b7c 2.6.35.3-571-gcca29a0+ #2 PREEMPT Mon Mar 16 14:56:01 PDT 2015 armv5tejl GNU/Linux 
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-common - Common header files for Linux 3.2.0-4 linux-headers-3.2.0-4-iop32x - Header files for Linux 3.2.0-4-iop32x linux-headers-3.2.0-4-ixp4xx - Header files for Linux 3.2.0-4-ixp4xx linux-headers-3.2.0-4-kirkwood - Header files for Linux 3.2.0-4-kirkwood linux-headers-3.2.0-4-mv78xx0 - Header files for Linux 3.2.0-4-mv78xx0 linux-headers-3.2.0-4-orion5x - Header files for Linux 3.2.0-4-orion5x linux-headers-3.2.0-4-versatile - Header files for Linux 3.2.0-4-versatile linux-headers-3.2.0-5-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-common - Common header files for Linux 3.2.0-5 linux-headers-3.2.0-5-iop32x - Header files for Linux 3.2.0-5-iop32x linux-headers-3.2.0-5-ixp4xx - Header files for Linux 3.2.0-5-ixp4xx linux-headers-3.2.0-5-kirkwood - Header files for Linux 3.2.0-5-kirkwood linux-headers-3.2.0-5-mv78xx0 - Header files for Linux 3.2.0-5-mv78xx0 linux-headers-3.2.0-5-orion5x - Header files for Linux 3.2.0-5-orion5x linux-headers-3.2.0-5-versatile - Header files for Linux 3.2.0-5-versatile linux-headers-2.6-iop32x - Header files for Linux iop32x configuration (dummy package) linux-headers-2.6-ixp4xx - Header files for Linux ixp4xx configuration (dummy package) linux-headers-2.6-kirkwood - Header files for Linux kirkwood configuration (dummy package) linux-headers-2.6-orion5x - Header files for Linux orion5x configuration (dummy package) linux-headers-2.6-versatile - Header files for Linux versatile configuration (dummy package) linux-headers-iop32x - Header files for Linux iop32x configuration (meta-package) linux-headers-ixp4xx - Header files for Linux ixp4xx configuration (meta-package) linux-headers-kirkwood - Header files for Linux kirkwood configuration (meta-package) linux-headers-mv78xx0 - Header files for Linux mv78xx0 configuration (meta-package) linux-headers-orion5x - Header files for Linux orion5x configuration (meta-package) linux-headers-versatile - Header files for Linux versatile configuration (meta-package) 

Источник

Читайте также:  Узнать модель платы linux

VMWare can’t find linux headers path

I’m using ubuntu 12.10 with the kernel 3.7.0-7 from xorg-edgers fresh X crack. Now when I try to launch wmware workstation it asks for linux header path like shown here. I tried all the solutions on that page but nothing works. It was working before I switched to the 3.7 kernel. Any idea what I can do to get it work?

6 Answers 6

To make the original answer a little clearer for other folks:

In Ubuntu 13.04 (should work in 12.10 as well), with just the kernel headers installed, you can do this:

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h 

I have to do that every time I update the kernel right now.

This command got me past vmware not finding the headers. However now when I click ‘install’ to start the kernel modules installing it just silently crashes, log file contains no errors. Ubuntu 13.04

First thing to check is for the availability of a newer version of VMplayer or workstation to download. If the latest version does not work, then start looking at the error messages and try to add a link to fix the problem.

Looks like the version.h file got moved again, so adding a symlink is needed:

ln -s /usr/src/linux-3.7-rc6/include/generated/uapi/linux/version.h /usr/src/linux-3.7-rc6/include/linux/version.h 

See the link http://rglinuxtech.com/2012/11/18/vmware-9-0-1-not-so-clever-after-all/ The headers have been a moving target since 3.2, and vmware does not keep up.

After making sure the proper Linux header files were installed for my kernel, manually creating symbolic links, installing build-essential, and basically following all advice that you linked to here, I still was receiving an error saying the path to the linux headers were invalid.

Читайте также:  Посмотреть открытые сокеты linux

After doing a sudo apt-get update , it turns out there was a newer version of the Linux headers available than was previously reported. Upgrading the currently installed headers package to the latest version fixed the problem, and the VMWare Config Tool was able to find the headers. In my case, the packages which needed to be upgraded were linux-headers-generic-pae and linux-generic-pae .

If following the instruction that VMware gives you in the error messages doesn’t work, you might have to re-install VMware.

I have the same problem with VirtualBox PUEL every time the kernel is updated because I installed it manually from the .deb files. Fortunately the VBox error message includes instruction for re-running the installation script to install the right code into the kernel.

I surmise that if you use a PPA it might get around this problem by including it in the kernel each time it is updated, but I haven’t tried it yet.

Источник

Оцените статью
Adblock
detector