You are not logged in.
Dear community,
I'm trying to install a 32-bit archlinux on a pendrive. The system boots fine but pacman refuses to install any arch-specific package. Here's what I've done :
My USB drive already houses a 64-bit install on /dev/sdc1, so I've created a new partition (/dev/sdc2) for the 32-bit install.
From my 64-bit archlinux, I've copied pacman's config (/etc/pacman.conf) to my home dir and replaced the architecture field for i686.
$ cp /etc/pacman.conf ~/pacman.conf
$ sed -i '/^Architecture =/s/auto/i686/' ~pacman.confThen I've used pacstrap to install the base system.
# mount /dev/sdc2 /mnt
# pacstrap -C ~/pacman.conf /mntI've Chroot'ed to my pendrive and configured locale, fstab, keymap, hostname, ran mkinitcpio, and most importantly, configured pacman's configuration file for a 32-bit architecture.
This new system boots fine. I've configured grub for a dual boot on the pendrive. My issue now is that pacman refuses to install any 32-bit specific package.
sh-4.3# pacman -S zsh
error: failed to prepare transaction (package architecture is not valid)
:: package zsh-5.2-1-x86_64 does not have a valid architectureWhat am I missing?
Things I've tried :
1. Replaced $arch by i686 for my favorite mirror to force the correct address.
...
Last edited by cafe (2016-02-02 16:58:22)
Offline
While chrooted, try running pacman -Syyu
You might also want to make sure you got an i686 system installed. What is the output of `file /usr/bin/bash` inside the chroot?
Last edited by Scimmia (2016-02-01 14:01:48)
Offline
Thank you, that worked. I guess my system was installed correctly because `file /usr/bin/bash` returned a 32-bit executable file. My mistake was probably when I first chroot'ed and ran `pacman -Syu` with the new pacman.conf file not yet configured.
By the way, where does pacman stores repository cache information? I've tried previously to run `pacman -Scc` but that didn't erased any repository cache information.
Offline
/var/lib/pacman/sync
Offline
Thank you.
Marking this thread as solved...
Offline