You are not logged in.

#1 2010-02-15 12:28:15

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

mkinitcpio upgrade: "exists in filesystem" error

When running pacman -Syu, I get the following errors:

error: failed to commit transaction (conflicting files)
mkinitcpio: /lib/initcpio/hooks/keymap exists in filesystem
mkinitcpio: /lib/initcpio/hooks/udev exists in filesystem
mkinitcpio: /lib/initcpio/install/keymap exists in filesystem
mkinitcpio: /lib/initcpio/install/udev exists in filesystem
mkinitcpio: /lib/initcpio/udev/load-modules.sh exists in filesystem
Errors occurred, no packages were upgraded.
error: pacman exited with an error (256)

I assume this has to do with the changes to mkinitcpio mentioned on the front page

I have earlier modified the HOOKS line in /etc/mkinitcpio.conf

HOOKS="base udev autodetect pata scsi sata keymap uresume filesystems"

So, what do I do? Force the upgrade?

Offline

#2 2010-02-15 22:28:53

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: mkinitcpio upgrade: "exists in filesystem" error

Bump.

Shall I assume that I'm the only one with this problem?

Offline

#3 2010-02-15 22:35:06

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: mkinitcpio upgrade: "exists in filesystem" error

Editing mkinitcpio.conf would not have caused this, mine is edited and it just installed a new one as a .pacnew. I'm not sure what would have caused pacman to lose track of them, but I would suggest backing up the files [just to make sure] and then trying a -f. You should read the thread about the dangers of -f if you haven't already.

Last edited by jac (2010-02-15 22:35:41)

Offline

#4 2010-02-15 23:43:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: mkinitcpio upgrade: "exists in filesystem" error

eyolf wrote:

Bump.

Shall I assume that I'm the only one with this problem?

Noone will post unless a) they know the solution to your problem or think they know something that might help or b) have the same problem.

Also, you shouldn't bump after just a few hours. There are other people around here with their own problems wink. Have some patience.

This has nothing to do with your mkinitcpio configuration whatsoever. Make sure your databases are fully synchronised (you might want to pick a mirror that sync more quickly just to be sure) and attempt another upgrade. Everything mkinitcpio-related should be replaced during the upgrade and it should go smoothly:

[2010-02-07 18:03] installed mkinitcpio-busybox (1.15.3-4)
[2010-02-07 18:03] upgraded mkinitcpio (0.5.30-1 -> 0.5.99.3-1)

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-02-17 23:02:42

gopher292
Member
Registered: 2009-03-02
Posts: 16

Re: mkinitcpio upgrade: "exists in filesystem" error

I'm getting the same error on yaourt -Syu (also occurs when trying to upgrade mkinitcpio)

error: failed to commit transaction (conflicting files)
mkinitcpio: /lib/initcpio/hooks/keymap exists in filesystem
mkinitcpio: /lib/initcpio/hooks/udev exists in filesystem
mkinitcpio: /lib/initcpio/install/keymap exists in filesystem
mkinitcpio: /lib/initcpio/install/udev exists in filesystem
mkinitcpio: /lib/initcpio/udev/load-modules.sh exists in filesystem
Errors occurred, no packages were upgraded.

The upgrade is from mkinitcpio 0.5.30-1 to 0.6.2-1 and to mkinitcpio-busybox 1.15.3-5 (new package)
I'm running x86_64. I can update other packages without problems.

Edit: I forced the upgrade of mkinitcpio and rebuilt the kernel image. The new image doesn't work (it can't find /sbin/udevd, which does exist). If I remove klibc-*, the kernel won't build at all (Can't build hook udev).

Booting the new kernel image:

(...)
:: Loading Initramfs
:: Starting udev...
/init: line 24: /sbin/udevd: not found
done.
:: Running Hook [udev]
:: Loading udev... /init: line 11: /sbin/udevd: not found
/init: line 11: sbin/udevadm: not found
/init: line 11: sbin/udevadm: not found
done.
Waiting 10 seconds for device /dev/disk/by-uuid/(...)...
\nRoot device 'dev/disk/by-uuid/(...)' doesn't exist. Attempting to create it.
ERROR: Unable to determine major/minor number of root device '/dev/disk/by-uuid/(...)'.
You are being dropped to a recovery shell
Type 'exit' to try and continue booting
/bin/sh: can't access tty; job control turned off
[ramfs /]# _

I can't do anything with the recovery console using my usb keyboard.
/sbin/udevd does exist.

Last edited by gopher292 (2010-02-18 00:30:37)

Offline

#6 2010-02-19 05:23:45

gopher292
Member
Registered: 2009-03-02
Posts: 16

Re: mkinitcpio upgrade: "exists in filesystem" error

I replaced /etc/mkinitcpio.conf and /lib/mkinitcpio/* with backups and the kernel built and booted correctly. So mkinitcpio is working again, but I still can't get rid of klibc without breaking it. Maybe someone else is having this problem or has an idea for a solution..?

Last edited by gopher292 (2010-02-19 05:39:49)

Offline

#7 2010-02-20 22:43:47

lintz
Member
Registered: 2008-10-26
Posts: 11

Re: mkinitcpio upgrade: "exists in filesystem" error

Had the exakt same problem as your original post. Solved it by updating udev (pacman -S udev). And then running the other update. But don't got a clue about how you can solve your new problem.

Offline

#8 2010-02-21 01:20:05

gopher292
Member
Registered: 2009-03-02
Posts: 16

Re: mkinitcpio upgrade: "exists in filesystem" error

I uninstalled klibc*, then reinstalled udev, mkinitcpio and mkinitcpio-busybox and the kernel is building now and works.

The only thing not working is hibernation (pm-hibernate from pm-utils). When booting it says sda1 (/boot) wasn't unmounted correctly and has to recover the journal on sda5 (/home).

Offline

#9 2010-02-27 19:16:25

gopher292
Member
Registered: 2009-03-02
Posts: 16

Re: mkinitcpio upgrade: "exists in filesystem" error

Just for future reference, I needed the resume hook with the new busybox-based kernel in order for hibernate to work. (Didn't need it before).

Offline

Board footer

Powered by FluxBB