You are not logged in.

#1 2016-02-01 12:57:08

cafe
Member
From: Brasil
Registered: 2014-03-20
Posts: 165

[SOLVED] Pacman not respecting 32-bit architecture flag (i686)

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.conf

Then I've used pacstrap to install the base system.

# mount /dev/sdc2 /mnt
# pacstrap -C ~/pacman.conf /mnt

I'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 architecture

What 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

#2 2016-02-01 13:59:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Pacman not respecting 32-bit architecture flag (i686)

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

#3 2016-02-02 12:30:37

cafe
Member
From: Brasil
Registered: 2014-03-20
Posts: 165

Re: [SOLVED] Pacman not respecting 32-bit architecture flag (i686)

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

#4 2016-02-02 12:43:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,674
Website

Re: [SOLVED] Pacman not respecting 32-bit architecture flag (i686)

/var/lib/pacman/sync

Offline

#5 2016-02-02 16:57:41

cafe
Member
From: Brasil
Registered: 2014-03-20
Posts: 165

Re: [SOLVED] Pacman not respecting 32-bit architecture flag (i686)

Thank you.

Marking this thread as solved...

Offline

Board footer

Powered by FluxBB