You are not logged in.

#1 2008-08-28 13:31:17

dijxtra
Member
Registered: 2008-08-28
Posts: 9

Could not load /lib/modules/2.6.25-ARCH/modules.dep

Hello everybody,

I'm dijxtra and I'm trying out Arch using VirtualBox on my Ubuntu. Few days ago I downloaded archlinux-2008.06-core-i686, installed it, did a pacman -Syu and then got "FATAL: Could not load /lib/modules/2.6.25-ARCH/modules.dep: No such file or directory". That's the short description, I suppose that kind of problem belongs to this subforum. Now, here is what I did in detail:

* installed Arch from CD image
* got my Internet connection working over eth0
* did pacman -Syu, pacman found newer version of itself
* did pacman -S pacman
* DIDN'T update pacman.conf as I should have
* did pacman -Syu successfully
* googled about this .newpac thing that showed up in logs and realised I should have updated pacman.conf
* updated pacman.conf (I just used pacman.conf.pacnew and added those [kdemod] stuff at the end since I never edited my old pacman.conf)
* pacman -Syu failed with "Transient resolver error"s
* checked ifconfig and found out that my eth0 disappeared
* enabeled bootlogd (put BOOTLOGD_ENABLED = Yes in /etc/default/bootlogd) but /var/log/boot didn't show up
* tried to read on screen messages while booting and found two "FATAL: Could not load /lib/modules/2.6.25-ARCH/modules.dep: No such file or directory" messages
* did depmod which created /lib/modules/2.6.25-ARCH/modules.dep, but then I got:
FATAL: Module mii not found.
FATAL: Module pcnet32 not found.
* removed /lib/modules/2.6.25-ARCH
* did pacman -U /var/cache/pacman/pkg/kernel26-2.6.26.2-1-x86_64.pkg.tar.gz and got two SUCCESSes:
==> Running command: /sbin/mkinitcpio -k 2.6.26-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
[...]
:: Generating image '/boot/kernel26.img'...SUCCESS
* I still get "FATAL: Could not load /lib/modules/2.6.25-ARCH/modules.dep: No such file or directory"
* I ran out of ideas.

So, there are two possible causes: either my editing of pacman.conf (unlikely, I don't see how that would mess up my kernel) or that pacman -Syu.

I do realise that right now reinstalling the system makes most sense, but... now I'm really curious how to fix this and this whole process of trying to fix a broken system teaches me a lot about GNU/Linux. So, if anybody has ideas what to do next, please do.

[BTW, thanks the guys at Ubuntuforums for helping me out with this]

Last edited by dijxtra (2008-08-28 13:33:45)

Offline

#2 2008-08-28 21:40:25

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

You upgraded your kernel and didn't reboot afterwards, that's all.


1000

Offline

#3 2008-08-29 11:24:20

dijxtra
Member
Registered: 2008-08-28
Posts: 9

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

byte wrote:

You upgraded your kernel and didn't reboot afterwards, that's all.

How do I fix it? Is there a way to fix it or is my system lost?

BTW, I rebooted a bunch of times afterwards and that didn't fix the system.

Offline

#4 2008-08-29 13:40:30

sfabius
Member
Registered: 2007-07-07
Posts: 153

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

I'm having the same problem. Something is pointing to 2.6.25-ARCH -- it should be be 26 after upgrading the kernel. Can anyone suggest what to change to make sure arch looks for the modules in the right place?
I guess I can symlink, but that doesn't seem like a wise long-term strategy.

Edit: This happened after my reboot. Also, I tried reinstalling kernel26 with no luck.
Also, I did copy the new pacman.conf over before rebooting and doing pacman -Syu
This is all on a newly-installed system.

Update:
I tried

ln -s /lib/modules/2.6.26-ARCH /lib/modules/2.6.25-ARCH

But no luck -- the error says modules are in the wrong format.

Last edited by sfabius (2008-08-29 14:39:07)

Offline

#5 2008-08-29 18:48:30

sfabius
Member
Registered: 2007-07-07
Posts: 153

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

This is weird, but I think it gives a pointer to the problem. I have installed an updated kernel26, but:

#uname -r
2.6.25-ARCH

So it seems that 2.6.25-ARCH is being used, but the modules, etc are for 2.6.26-ARCH.

Maybe something is wrong in boot? I have a /boot partition (/dev/sda5) and a / partition (/dev/sda7).

Offline

#6 2008-09-30 10:17:41

wood1978
Member
Registered: 2008-09-30
Posts: 1

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

I meet the same problem with dijxtra. sad
I back to old one "kernel26-2.6.25.6-1-i686.pkg.tar.gz" temporary avoid this problem.

pacman -U /var/cache/pacman/pkg/kernel26-2.6.25.6-1-i686.pkg.tar.gz

This not good solution. sad

Offline

#7 2010-04-11 07:57:36

lymphatik
Member
From: Somewhere else
Registered: 2009-03-07
Posts: 119

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

I got the same problems except that it's for the kernel 2.6.33. It try to boot with the kernel 2.6.32 while all my module are for the kernel 2.6.33

And uname -r report 2.6.32 instead of 2.6.33

Did someone where able to resolve this issue ?

I also tryed to rebuilb the kernel image everything went fine but still booting on the kernel 2.6.32

Last edited by lymphatik (2010-04-11 08:06:55)

Offline

#8 2010-05-09 02:33:41

Dave Cohen
Member
Registered: 2008-09-27
Posts: 126

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

I have the exact same problem.  Uname reports 2.6.32-ARCH, there is no /lib/modules/2.6.32-ARCH, but there is /lib/modules/2.6.33-ARCH.

Offline

#9 2010-05-09 03:44:03

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

.....Have you rebooted ?

Offline

#10 2010-05-09 08:04:20

Dave Cohen
Member
Registered: 2008-09-27
Posts: 126

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

Yes, rebooted more than once.

I followed the advice of the earlier comment.  used pacman -U ... to downgrade to a 2.6.32 kernel and that works around the problem.

Offline

#11 2010-05-09 09:37:36

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Could not load /lib/modules/2.6.25-ARCH/modules.dep

Old thread, closing.

Similar up-to-date thread here, if further discussion is required.

Offline

Board footer

Powered by FluxBB