debian kernel module install fails January 24, 2015 10:24PM |
Registered: 11 years ago Posts: 32 |
root@debian:~# apt-get install module-assistant (module-assistant installs correctly) root@debian:~# apt-get install iptables (iptables installs correctly) root@debian:~# apt-get install xtables-addons-common (xtables-addons-common installs correctly) root@debian:~# module-assistant --verbose --text-mode auto-install xtables-addons Updating info about xtables-addons-source Updated infos about 1 packages Getting source for kernel version: 3.17.0-kirkwood-tld-1 apt-get install linux-headers-3.17.0-kirkwood-tld-1 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package linux-headers-3.17.0-kirkwood-tld-1 E: Couldn't find any package by regex 'linux-headers-3.17.0-kirkwood-tld-1' (Install continues, but fails) root@debian:~#
Re: debian kernel module install fails January 24, 2015 11:36PM |
Admin Registered: 13 years ago Posts: 18,997 |
apt-get clean dpkg --clear-avail rm /var/lib/apt/lists/* --force dpkg --configure -a
Re: debian kernel module install fails January 24, 2015 11:52PM |
Registered: 11 years ago Posts: 32 |
root@debian:~# apt-get clean root@debian:~# dpkg --clear-avail root@debian:~# rm /var/lib/apt/lists/* --force rm: cannot remove `/var/lib/apt/lists/partial': Is a directory root@debian:~# dpkg --configure -a root@debian:~# module-assistant --verbose --text-mode auto-install xtables-addons-common Updating info about xtables-addons-common Updated infos about 1 packages Getting source for kernel version: 3.17.0-kirkwood-tld-1 apt-get install linux-headers-3.17.0-kirkwood-tld-1 Reading package lists... 0% Reading package lists... 100% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 100% Building dependency tree... Done Reading state information... 0% Reading state information... 100% Reading state information... Done E: Unable to locate package linux-headers-3.17.0-kirkwood-tld-1 E: Couldn't find any package by regex 'linux-headers-3.17.0-kirkwood-tld-1' apt-get install build-essential Reading package lists... 0% Reading package lists... 100% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 100% Building dependency tree... Done Reading state information... 0% Reading state information... 100% Reading state information... Done Reading state information... Done Package build-essential 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 'build-essential' has no installation candidate Done! Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use. If the running kernel has been shipped with the Debian distribution, please install the package linux-headers-3.17.0-kirkwood-tld-1. If your kernel source tree (or headers) is located in some non-usual location, please set the KERNELDIRS environment variable to the path of this directory, or (alternatively) specify the source directory we build for with the --kernel-dir option in module-assistant calls. root@debian:~#
Re: debian kernel module install fails January 25, 2015 12:20AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: debian kernel module install fails January 25, 2015 12:29AM |
Registered: 11 years ago Posts: 32 |
root@debian:/etc/apt# cd /boot root@debian:/boot# root@debian:/boot# apt-get install linux-headers-3.17.0-kirkwood-tld-1 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-3.17.0-kirkwood-tld-1 E: Couldn't find any package by regex 'linux-headers-3.17.0-kirkwood-tld-1'
root@debian:/etc# cat /etc/apt/sources.list deb http://ftp.us.debian.org/debian wheezy main deb http://security.debian.org/ wheezy/updates main contrib non-free
wget --no-check-certificate https://bitly.com/1rXpFol mv 1rXpFol Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 mount /dev/sdb1 /mnt/sdb1 cd /mnt/sdb1 rm -r * tar -xjf /usr/src/Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
Re: debian kernel module install fails January 25, 2015 01:40AM |
Admin Registered: 13 years ago Posts: 18,997 |
> root@debian:/etc/apt# cd /boot > root@debian:/boot# > root@debian:/boot# apt-get install > linux-headers-3.17.0-kirkwood-tld-1 > Reading package lists... Done > Building dependency tree > Reading state information... Done > E: Unable to locate package > linux-headers-3.17.0-kirkwood-tld-1 > E: Couldn't find any package by regex > 'linux-headers-3.17.0-kirkwood-tld-1' >>
> root@debian:/etc# cat /etc/apt/sources.list > deb http://ftp.us.debian.org/debian wheezy main > deb http://security.debian.org/ wheezy/updates > main contrib non-free >>
> wget --no-check-certificate > https://bitly.com/1rXpFol > mv 1rXpFol > Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 > mount /dev/sdb1 /mnt/sdb1 > cd /mnt/sdb1 > rm -r * > tar -xjf > /usr/src/Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi > .tar.bz2 >
Re: debian kernel module install fails January 25, 2015 01:45AM |
Registered: 11 years ago Posts: 32 |
root@debian:~# cd /boot root@debian:/boot# ls -l total 27848 drwxr-xr-x 3 root root 4096 Jan 23 17:23 . drwxr-xr-x 22 root root 4096 Jan 23 17:36 .. -rw-r--r-- 1 root root 1991026 Oct 22 01:51 System.map-3.17.0-kirkwood-tld-1 -rw-r--r-- 1 root root 129088 Oct 22 01:51 config-3.17.0-kirkwood-tld-1 drwxr-xr-x 2 root root 4096 Oct 17 19:01 dts -rw-r--r-- 1 root root 6114271 Oct 24 20:28 initrd.img-3.17.0-kirkwood-tld-1 -rw-r--r-- 1 root root 2832460 Jan 23 17:23 uImage -rw-r--r-- 1 root root 2822232 Oct 24 20:29 uImage.orig -rw-r--r-- 1 root root 6114335 Oct 24 20:29 uInitrd -rwxr-xr-x 1 root root 2822168 Oct 22 01:51 vmlinuz-3.17.0-kirkwood-tld-1 -rwxr-xr-x 1 root root 2822168 Oct 22 01:50 zImage-3.17.0-kirkwood-tld-1 -rwxr-xr-x 1 root root 2832396 Jan 23 17:22 zImage.fdt root@debian:/boot#
Re: debian kernel module install fails January 25, 2015 01:56AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: debian kernel module install fails January 25, 2015 02:32AM |
Registered: 11 years ago Posts: 32 |
root@debian:/boot# cd /boot root@debian:/boot# wget --no-check-certificate https://bitly.com/1zrgVzP root@debian:/boot# mv 1zrgVzP linux-3.17.0-kirkwood-tld-1-bodhi.tar.bz2 root@debian:/boot# bzip2 -d linux-3.17.0-kirkwood-tld-1-bodhi.tar.bz2 root@debian:/boot# tar -xf linux-3.17.0-kirkwood-tld-1-bodhi.tar root@debian:/boot# dpkg -i linux-headers-3.17.0-kirkwood-tld-1_1_armel.deb (Reading database ... 27724 files and directories currently installed.) Preparing to replace linux-headers-3.17.0-kirkwood-tld-1 1 (using linux-headers-3.17.0-kirkwood-tld-1_1_armel.deb) ... Unpacking replacement linux-headers-3.17.0-kirkwood-tld-1 ... Setting up linux-headers-3.17.0-kirkwood-tld-1 (1) ... root@debian:/boot# module-assistant prepare root@debian:/boot# module-assistant --verbose --text-mode auto-install xtables-addons-common Updating info about xtables-addons-common Updated infos about 1 packages Getting source for kernel version: 3.17.0-kirkwood-tld-1 apt-get install linux-headers-3.17.0-kirkwood-tld-1 Reading package lists... Done Building dependency tree Reading state information... Done linux-headers-3.17.0-kirkwood-tld-1 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done Package build-essential 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 'build-essential' has no installation candidate Done! Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use. However, you can install the header files for your kernel which are provided by the linux-headers-3.17.0-kirkwood-tld-1 package. For most modules packages, these files are perfectly sufficient without having the original kernel source. To install the package, run: module-assistant prepare or apt-get install linux-headers-3.17.0-kirkwood-tld-1
Re: debian kernel module install fails January 25, 2015 04:13AM |
Admin Registered: 13 years ago Posts: 18,997 |
apt-cache show xtables-addons-common
apt-get install xtables-addons-common ..........
apt-get install kernel-package
Re: debian kernel module install fails January 25, 2015 10:07PM |
Registered: 11 years ago Posts: 32 |
** Install the kernel headers from the install kit ** cd /usr/src wget --no-check-certificate https://bitly.com/1zrgVzP mv 1zrgVzP linux-3.17.0-kirkwood-tld-1-bodhi.tar.bz2 bzip2 -d linux-3.17.0-kirkwood-tld-1-bodhi.tar.bz2 tar -xf linux-3.17.0-kirkwood-tld-1-bodhi.tar dpkg -i linux-headers-3.17.0-kirkwood-tld-1_1_armel.deb ** Update /etc/apt/sources.list to include contrib and non-free ** apt-get update apt-get install kernel-package apt-get update apt-get upgrade ** Get the iptables extensions ** apt-get install module-assistant module-assistant update module-assistant prepare module-assistant --verbose --text-mode \ > -k /usr/src/linux-headers-3.17.0-kirkwood-tld-1 \ > auto-install xtables-addons-common
Updating info about xtables-addons-common Updated infos about 1 packages Bad kernel version specification at /usr/bin/module-assistant line 568, <$apt> line 6. root@debian:/usr/src# uname -r 3.17.0-kirkwood-tld-1
root@debian:/usr/src# module-assistant prepare \ > --kernel-dir /usr/src/linux-headers-3.17.0-kirkwood-tld-1 Bad kernel version specification at /usr/bin/module-assistant line 568.
--kernel-dir The kernel source directories to be used for builds. You can specify multiple directories with multiple options or separated by commas or line separators (e.g using -k "`echo /usr/src/linux-headers-*`" ). The kernel versions detected in this directories are automatically added to the list of target kernel versions (see --kvers-list for details).
Re: debian kernel module install fails January 25, 2015 11:47PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: debian kernel module install fails January 26, 2015 12:48AM |
Registered: 11 years ago Posts: 32 |
561 sub prep { 562 print "chdir $usrc\n" if $opt_debug; 563 %envbackup=%ENV; 564 $ENV{ROOT_CMD}=$sudo if ($sudo && !$ENV{ROOT_CMD}); 565 print "Debug: \$opt_kverslist[0] = <$opt_kverslist[0]>\n"; 566 for $todo ($opt_kverslist[0]) { 567 print "Debug: \$todo = <$todo>\n"; 568 my $kheaders = get_kpackage($todo)."-headers"; 569 print STDERR "Debug: \$kheaders = <$kheaders>\n"; 570 $source=$kerneldirs{$todo}; 571 print STDERR "Debug: \$source = <$source>\n"; 572 die "Bad kernel version specification" if ! $todo;
Debug: $opt_kverslist[0] = <> Debug: $todo = <> Debug: $kheaders = <kernel-headers> Debug: $source = <> Bad kernel version specification at ./module-assistant line 572.
Re: debian kernel module install fails January 26, 2015 06:18AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: debian kernel module install fails January 26, 2015 07:07PM |
Registered: 11 years ago Posts: 32 |
Re: debian kernel module install fails January 31, 2015 03:17AM |
Registered: 11 years ago Posts: 32 |
Re: debian kernel module install fails January 31, 2015 03:30AM |
Admin Registered: 13 years ago Posts: 18,997 |
tlschroe
Re: debian kernel module install fails February 24, 2015 05:10PM |