You are not logged in.

#1 2017-04-05 12:17:42

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

[SOLVED] Migrating between architectures

Hello,

I was migrating from 32 bit to 64 bit following this wiki page: https://wiki.archlinux.org/index.php/Mi … hitectures

I used Method 2: from a running system.

Everything went well untill I was at step:
# pacman -S lib32-glibc

error: failed to commit transaction (conflicting files)
lib32-glibc: /usr/include/gnu/lib-names-32.h exists in filesystem
lib32-glibc: /usr/include/gnu/stubs-32.h exists in filesystem
lib32-glibc: /usr/lib/ld-linux.so.2 exists in filesystem
Errors occurred, no packages were upgraded.
[user@system ~]$ sudo rm -rf /usr/include/gnu/lib-names-32.h /usr/include/gnu/stubs-32.h /usr/lib/ld-linux.so.2
[user@system ~]$ sudo pacman -S lib32-glibc
-bash: /usr/bin/sudo: No such file or directory

OOPS! I should have run --force option, then I probably would be running 64 bit already!

Now I'm trying to repair my system from a Live usb stick (x86_64).

What I have done thus far:

mount /dev/sda2 /mnt
pacman --root /mnt -Syy
pacman --root /mnt -S base (just to be sure)
arch-chroot /mnt

But when I run arch-chroot, I get the following message:

/bin/bash: error while loading shared libraries libreadline.so.7 wrong ELF class: ELFCLASS32

Can someone help me further, I already tried booting into the system but I get kernel panic at the boot!

Last edited by Ztjuh (2017-04-05 17:31:40)

Offline

#2 2017-04-05 14:17:03

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SOLVED] Migrating between architectures

So I copy'ed all files from /lib/ to /mnt/lib/ now all errors are gone when I arch-chroot into /mnt.

I'm trying to mkinitcpio -p linux, but it's erroring out

==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
==> ERROR: module not found: `some_module`
(this 200 times or so)
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip-compressed initcpio image /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

Last edited by Ztjuh (2017-04-05 14:18:14)

Offline

#3 2017-04-05 14:32:31

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SOLVED] Migrating between architectures

After running:

# depmod -a <kernel name>

mkinitcpio -p linux, was working again!

Offline

#4 2017-04-05 15:05:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [SOLVED] Migrating between architectures

So, is it working in x64 now?  If so, be sure to mark the thread as solved.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-04-05 17:31:26

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SOLVED] Migrating between architectures

Yes it's working smile

Offline

Board footer

Powered by FluxBB