LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-27-2013, 01:53 PM   #1
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Rep: Reputation: Disabled
libkmod ERROR : modules.dep.bin (Debian Wheezy amd64)


Hello, I'm here because I've been trying to install Debian (from the DVD 1 ( debian-7.1.0-amd64-DVD-1 ), I tried at first to install with the desktop environment, but twice, neither my mouse nor my keyboard (using a laptop here) would respond once in the login manager.

I finally gave up since I would end up using an other window manager than one amongst the choice provided, so i proceeded with a minimal install (just without graphic environment), once the installation was done I tried pinging google but it wouldn't work, so ifconfig -> only the lo interface is here, ifconfig -a, same although while installing my ethernet card was detected and used to set time and download up to date packages, finally tried to load my WiFi card ( modprobe iwlwifi) but i got the this error :
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.2.45/modules.dep.bin'

Note that indeed there is no such directory, I have :
/lib/modules/3.2.0-4-amd64
I tried symlinking so kmod would find the files, but it resulted in an exec format error (architecture related ?)

uname give : Linux debian 3.2.45 #2 SMP Fri May 31 20:14:55 CDT 2013 x86_64 GNU/Linux

lsmod gives nothing

Thanks in advance for reading my post and for any help you can provide

Ps: while installing, debian offered me to choose between 2 kernels :
3.2.45
and 3.2.45-amd64 (or smth like that I didn't take note sorry)
I tried both, same issue. (and what's the difference between them, if anyone knows ?)
 
Old 07-29-2013, 12:29 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I'm not familiar with the 3.2.45 kernel. AFAIK the 3.2.0-4 kernel is the standard kernel in Wheezy right now. It looks to me like something went wrong in the install.

I've got a couple of questions. How do you know that iwlwifi is the correct driver for your wireless device? If it really is, did you install the corresponding firmware package? See http://wiki.debian.org/iwlwifi

Did you see any errors during the installation? Did you confirm that the DVD iso file was correctly downloaded (eg check md5sum).Is there anything else we should know?

Evo2.
 
Old 07-29-2013, 01:56 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I second that the installation of the kernel went wrong somewhere. Despite of beeing the right module for your wifi it should either get loaded or not but not throw that error about debmod. I just modprobed iwlwifi on a machine and it just got loaded. Also I don't have any wifi card inside the system. So we first should get that debmod thing straight before anything else.

As you have a working inet connection. Can you please just reinstall the kernel?
Code:
apt-get install --reinstall linux-image-3.2.0
Do a apt-cache search 'linux-image' for some valid options.

The difference between the 3.2.45 kernel and the 3.2.45-amd64 one is that the first is for i686 or even older system. Just 32bit CPU's and the one with -amd at the end stands for 64bit system. There is also a Intel or Itanium 64 bit package but thats for the itanium cpu's which reside in some server hardware from intel as far as I know. For consumer hardware with a 64bit cpu the -amd64 package is the right one.
 
Old 07-29-2013, 03:43 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by evo2 View Post
I'm not familiar with the 3.2.45 kernel. AFAIK the 3.2.0-4 kernel is the standard kernel in Wheezy right now.
The latest stable kernel is 3.2.46

It looks like the kernel got installed ok. The choice of kernels is usually a choice of meta packages - it's irrelevant at this stage.

Could do with knowing some more about the hardware you're installing on?
 
Old 07-30-2013, 12:08 AM   #5
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hello and thanks for your answers, i just md5sumed debian-7.1.0-amd64-dvd-1.iso
and the sum matches the one in the file "MD5SUMS" on the debian website, I cp debian.is /dev/sdc (which is a usb drive) (twice, once with the full dvd, it did this problem so i tried with the minimal over the net install)
About my wireless device it's a (from lspci | grep centrino) :
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)
(the ethernet card is :
Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller)

(the installation asked me whether i had the firmware, but i didn't, so the modprobe wouldn't have worked but i gave it a try since my ethernet card wasn't accessible)
About my working connexion it's not on debian sorry, I have no NIC on ifconfig
and concerning the hardware, it's a laptop, VPCF13 (2nd i7 gen), uh.. i don't know what other details I can give you about it sorry, and finally, the installation didn't appear to go wrong (at least from what it said)
the weirdest thing is that the network worked while installing, it downloaded packages (when i choose to select the mirror)
Tell me if you need to know anything (won't answer for 13h, going to work now)

thanks again for your help

Edit : though i'd grep the logs for klib , the result :
dpkg.log:2013-07-27 21:54:48 install libklibc:amd64 <aucun> 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 status half-installed libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 status unpacked libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 status unpacked libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 install klibc-utils:amd64 <aucun> 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 status half-installed klibc-utils:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:48 status unpacked klibc-utils:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:49 status unpacked klibc-utils:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 configure libklibc:amd64 2.0.1-3.1 <aucun>
dpkg.log:2013-07-27 21:54:50 status unpacked libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 status half-configured libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 status installed libklibc:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 configure klibc-utils:amd64 2.0.1-3.1 <aucun>
dpkg.log:2013-07-27 21:54:50 status unpacked klibc-utils:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 status half-configured klibc-utils:amd64 2.0.1-3.1
dpkg.log:2013-07-27 21:54:50 status installed klibc-utils:amd64 2.0.1-3.1


<aucun> means "none" in french

Okey now i greped for half-installed and half-configure, i'm not gonna post it because the list of both is a mile and a half long, I guess it means this install is broken, can anyone confirm ?

Last edited by fastghost93; 07-30-2013 at 12:48 AM.
 
Old 07-30-2013, 12:59 AM   #6
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhjim View Post

As you have a working inet connection. Can you please just reinstall the kernel?
Code:
apt-get install --reinstall linux-image-3.2.0
Do a apt-cache search 'linux-image' for some valid options.
If it is was is needed, is there a way (since even the eth0 isn't here) to get the package from an other distro (say slackware) or even windows and reinstall it ?

Quote:
Originally Posted by zhjim View Post
The difference between the 3.2.45 kernel and the 3.2.45-amd64 one is that the first is for i686 or even older system. Just 32bit CPU's and the one with -amd at the end stands for 64bit system. one.
I thought that since i had downloaded the 64bit dvd i would only be given the choice for 64b arch,I mean it's weird to me to, would someone ever install the kernel for 32b ?
 
Old 07-30-2013, 01:14 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by fastghost93 View Post
If it is was is needed, is there a way (since even the eth0 isn't here) to get the package from an other distro (say slackware) or even windows and reinstall it ?
Yes, you can just download the the .deb from http://packages.debian.org/wheezy/li...-3.2.0-4-amd64 using another machine and copy it across on a usb stick. However, presumably it is already on your dvd. Is there a line for the dvd in your /etc/apt/sources.list file? If not you can add it using apt-cdrom. Eg as root
Code:
apt-cdrom add
Quote:
Originally Posted by fastghost93 View Post
I thought that since i had downloaded the 64bit dvd i would only be given the choice for 64b arch,I mean it's weird to me to, would someone ever install the kernel for 32b ?
I don't think it is a 32 bit kernel. The string "3.2.45" refers to the upstream kernel source version not the binary Debian package version (I overlooked particular fact in my earlier post).

Evo2.
 
Old 07-31-2013, 01:28 PM   #8
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hello and sorry for the delay, I tried what you said (reinstall the kernel) :
Preparing to replace linux-image-3.2.0-4-amd64 3.2.46-1 (using .../linux-image-3.2.0-4-amd64_3.2.46-1_amd64.deb) ...
Unpacking replacement linux-image-3.2.0-4-amd64 ...
Setting up linux-image-3.2.0-4-amd64 (3.2.46-1) ...

It went through fine but it didn't change anything, I just don't understand why the directory for the modules is 3.2.0-4-amd64, what is it on your system ? the version of the kernel, or the name of the kernel package ?

I mean which is wrong,is libkmod searching in the wrong place, or is the directory name inappropriately ? And even if the name is wrong, why won't it run with a sym link

rfkill: version magic '3.2.0-4-amd64 SMP mod_unload modversions ' should be '3.2.45 SMP mod_unload

with

drwxr-xr-x 3 root root 4096 Jul 30 22:54 3.2.0-4-amd64
lrwxrwxrwx 1 root root 27 Jul 30 22:56 3.2.45 -> /lib/modules/3.2.0-4-amd64/

Thanks again !
Hoping you have other ideas

Ps: I tried reinstalling again, just in case, with a normal install (not advanced)
still the same

Last edited by fastghost93; 07-31-2013 at 01:31 PM.
 
Old 07-31-2013, 10:35 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

ok I checked https://wiki.debian.org/iwlwifi and confirmed that iwlwifi is the correct driver for your card. So, I ask again have you installed the firmware package firmware-iwlwifi? This needs to be confirmed before proceeding any further with getting the wireless to work.

Regarding your wired device, it looks like the sky2 driver is what you need. AFAIK, with that module it should just work.

Evo2.
 
Old 08-03-2013, 07:18 AM   #10
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hello, and thanks for your answer I installed this package firmware-iwlwifi_0.36+wheezy.1_all.deb, which installed correctly , however the problem still remains, it says :

libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.2.45/modules.dep.bin'

like I said at the beginning of the post, libkmod doesn't look in the right place
 
Old 08-05-2013, 09:29 AM   #11
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Not sure but I guess libkmod uses the name of the kernel to find the module files. So the output of uname -a should lead you to where the dep file should reside.

Just for reference this is the structure of /lib/modules on my wheezy installation
Code:
root@VM-box-2:~# find /lib/modules/ -maxdepth 2
/lib/modules/
/lib/modules/3.2.0-4-amd64
/lib/modules/3.2.0-4-amd64/modules.symbols.bin
/lib/modules/3.2.0-4-amd64/modules.builtin.bin
/lib/modules/3.2.0-4-amd64/modules.alias.bin
/lib/modules/3.2.0-4-amd64/modules.alias
/lib/modules/3.2.0-4-amd64/modules.symbols
/lib/modules/3.2.0-4-amd64/modules.builtin
/lib/modules/3.2.0-4-amd64/modules.dep.bin
/lib/modules/3.2.0-4-amd64/kernel
/lib/modules/3.2.0-4-amd64/modules.order
/lib/modules/3.2.0-4-amd64/modules.softdep
/lib/modules/3.2.0-4-amd64/modules.dep
/lib/modules/3.2.0-4-amd64/modules.devname
 
Old 08-05-2013, 01:06 PM   #12
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hello again and thanks for trying to help me, I finally figured out it wasn't something wrong with debian when i tried instaling archlinux which had the same probleme, the problem was that I had misconfigured lilo which was using the kernel from slackware, I should have said I had not installed grub and that I was dualbooting, sorry !

thanks again for all those who tried to help me or just took the time to read the thread !
I'll mark it as solved hoping it'll help anyone doing stupid mistakes like me.
 
Old 08-05-2013, 07:17 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

sorry there was not reply, I was completely stumped... I guess the dual boot information may have helped. Anyway glad you got it sorted.

Cheers,

Evo2.
 
Old 08-06-2013, 01:38 PM   #14
fastghost93
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yes I know, anyway you did what you could with what little information I gave, thanks again
 
  


Reply

Tags
debian, kmod, wheezy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing And Using OpenVZ On Debian Wheezy (AMD64) LXer Syndicated Linux News 0 06-06-2013 04:00 PM
[SOLVED] Debian wheezy amd64: runPMV (mgltools) dies. kaz2100 Debian 1 12-16-2011 01:02 AM
How to modify modules.dep.bin within initrd in SuSE 11 with SP1 subhajit_it Linux - Newbie 2 07-29-2010 12:58 AM
How to modify modules.dep.bin within initrd img in suse11 with sp1 subhajit_it Linux - Newbie 1 07-28-2010 01:00 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration