drinkcat / chroagh

Chromium OS Archlinux Chroot Environment
BSD 3-Clause "New" or "Revised" License
241 stars 27 forks source link

Can't update chroot / Wrong ELF class #35

Closed airbus001 closed 10 years ago

airbus001 commented 10 years ago

Hello,

I tried upgrading my chroot today by the command sudo sh -e installer/main.sh -n name -u with your newest chroagh directory, however the installer halts when trying to retrieve the audio with the error: Installing target audio... wget: error while loading shared libraries: libpcre.so.1: wrong ELF class: ELFCLASS64 Failed to complete chroot setup. Now I can only get into the CLI of my chroot, nothing more. My chromebook is the HP 14, so at least with arch the architecture is i686.

Any help would be great Thanks, Airbus

drinkcat commented 10 years ago

Sorry about that, I have a fix for this bug, but forgot to merge it in. The fix is now in the master branch, but your chroot has been damaged (it should be recoverable though).

I'm not sure why you have a i686 chroot instead of a x86_64 chroot, is it an intentional choice?

Can you double-check by posting the output of: grep ARCH /var/lib/pacman/local/pacman-[0-9]*/desc -A 1 and file /bin/pacman /bin/wget (both inside the chroot)

airbus001 commented 10 years ago

Thank You for the fast response. I was a bit vague, I have the old HP Pavillion 14 (http://www.amazon.com/dp/B00CXFJPJC) so I remember very clearly that ChromeOS was 32 bit when I got my machine because there was some talk of Arch dropping support for i686. So the choice of i686 was not intentional.

grep: error while loading shared libraries: libpcre.so.1: wrong ELF class: ELFCLASS64

and

-bash: /usr/bin/file: No such file or directory
airbus001 commented 10 years ago

I tried updating my chroot again using your latest master branch, but get the same error. I have a backup from right after updating my chroot where libpcre is not 64 bit, and restored it. However when updating sudo pacman -Syu, the chroot updates libpcre and incurs the same problem. So I think the problem may be with the repos? Although for some reason xmobar does not work in that chroot either. If anything I will just install a new chroot, and dump my home folder into the new one.

drinkcat commented 10 years ago

@airbus001: Have you tried restoring from backup, then running the new installer? That should work.

You can also manually edit /etc/pacman.conf and make sure that you have this line, replacing Auto with i686 (the newest installer will do that as well):

Architecture = i686

Then pacman -Syu should not try to replace libpcre by a 64-bit version...