You are not logged in.

#1 2013-05-23 12:31:15

Bangsadrengur
Member
Registered: 2010-03-30
Posts: 9

[SOLVED] Architecture problems after chroot fix

I got the brilliant idea last night that systemd-sysvcompat was no longer needed on my system so I unistalled it. Turning on my computer did not go smootly this morning.

I managed to fix the problem by booting a Linux Mint 64bit KDE USB I had lying around and from there I followed some chroot instructions to access my Arch setup and restore the deleted systemd-sysvcompat. While I was at it I also updated some programs. This was all done through pacman undir chroot.

The problem I have now is that my system is 32 bit (i686) and I keep getting the error

error: failed to prepare transaction (package architecture is not valid)
:: package xxx-x86_64 does not have a valid architecture

from pacman. If i add the --arch x86_64 flag pacman stops complaining and installs but I get the 64 bit version (as expected). The packages which I installed from my chroot session all turned out to be x86_64 versions. I have now restored them all to i686 by manually downloading and installing each package.

I found some old posts on the same error from pacman but have not been able to fix the problem after reading them. I have f. ex. tried setting the arch flag in pacman.conf to i686 instead of auto without success.

uname -m reports i686 as the architecture.

Please advise me on what I can try to fix this problem and please forgive me if I've missed out some important log outputs or other information. I'll provide as needed.

Last edited by Bangsadrengur (2013-05-23 13:56:47)

Offline

#2 2013-05-23 12:38:41

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

Re: [SOLVED] Architecture problems after chroot fix

try: sudo find /var/cache/pacman/pkg -name '*x86_64*'  -delete

Offline

#3 2013-05-23 12:55:18

Bangsadrengur
Member
Registered: 2010-03-30
Posts: 9

Re: [SOLVED] Architecture problems after chroot fix

No result Scimmia. I had also run 'pacman -Scc' to clear everything up before (didn't mention that).

Offline

#4 2013-05-23 13:45:10

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Architecture problems after chroot fix

You need to update your sync DBs as well: pacman --arch i686 -Syy

Offline

#5 2013-05-23 13:55:17

Bangsadrengur
Member
Registered: 2010-03-30
Posts: 9

Re: [SOLVED] Architecture problems after chroot fix

This worked falconindy. Pacman is back to normal. Thank you (and you as well Scimmia) smile.

Offline

Board footer

Powered by FluxBB