You are not logged in.

#1 2014-12-03 11:05:42

arthurdent84
Member
Registered: 2014-12-03
Posts: 6

[SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Hi,
I have just installed Arch linux first time (ISO as of 01 Nov). My OS should be 64bit (my hw is 64bit) but pacman fails on any package I try to install.

Example

$ pacman -S grub
error: failed to prepare transaction (package architecture is not valid)
:: package grub-1:2.02.beta2-5-i686 does not have a valid architecture

So it tries to install 32bit package (and fails), but why?

My system:

$ uname -a
Linux archiso 3.17.1-1-ARCH #1 SMP PREEMPT Wed Oct 15 15:04:35 CEST 2014 x86_64 GNU/Linux

I checked /etc/pacman.conf:

Architecture = auto

and /etc/pacman.d/mirrorlist (the first three entries are shown; all of the mirrors have the same format):

## Score: 0.3, Germany
Server = http://mirror.gnomus.de/$repo/os/$arch
## Score: 0.3, France
Server = http://archlinux.polymorf.fr/$repo/os/$arch
## Score: 0.5, Netherlands
Server = http://ftp.nluug.nl/os/Linux/distr/archlinux/$repo/os/$arch

And it is not only grub, it is any package (e.g. gamin, lxde)

Last edited by arthurdent84 (2014-12-03 14:59:34)

Offline

#2 2014-12-03 12:46:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,636
Website

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Not sure why that is happening... just set the Arch to x86_64 in pacman.conf and be done with it.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-12-03 13:14:29

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Edited smile

Last edited by thearcherblog (2014-12-03 13:14:49)

Offline

#4 2014-12-03 13:15:11

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

What does pacman --debug tell you about 'arch:' (which is de detected architecture)?

Offline

#5 2014-12-03 13:34:09

arthurdent84
Member
Registered: 2014-12-03
Posts: 6

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Spider.007 wrote:

What does pacman --debug tell you about 'arch:' (which is de detected architecture)?

...
debug: config: arch: x86_64
...

and of course the mirrors added look like this:

debug: adding new server URL to database 'core': http://mirror.gnomus.de/core/os/x86_64

Offline

#6 2014-12-03 13:39:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Remove that i686 package from the package cache and try again.

Offline

#7 2014-12-03 13:39:39

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

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Try forcing a databse refresh with "pacman -Syyu".

Offline

#8 2014-12-03 14:39:39

arthurdent84
Member
Registered: 2014-12-03
Posts: 6

Re: [SOLVED] pacman keeps trying to install 32bit packages on my 64bit OS

Allan wrote:

Try forcing a databse refresh with "pacman -Syyu".

This helped!
Thanks to all of you!

Offline

Board footer

Powered by FluxBB