You are not logged in.

#1 2009-08-11 12:13:31

crabmeat
Member
Registered: 2009-08-11
Posts: 16

/usr/bin/pacman: No such file or directory

well well, iam using arch for some month now, very cool distro but now something happened i cannot solve alone..

at least i was installing git ('pacman -Sy git') - fine

but now everytime i type 'pacman' it says:

bash: /usr/bin/pacman: No such file or directory


the file definitely exists but i can not execute it. commands with the absoulte path bring the same error.


i have no idea why...

iam using arch x64, i also installed a 32bit envoirenment under /opt/arch32 - my first guess was, that the pacman binary was overwritten by the the x86 stuff - but that makes no sense because i installed git successfully..


maybe the git installation crashed something.. but why? ..following things were installed with git: run-parts-3.1.3-1  ca-certificates-20090709-1  curl-7.19.5-2  perl-error-0.17015-1  git-1.6.4-1

btw. i updated pacman some time ago - because i was forced to. anyhow the git installation worked..

Last edited by crabmeat (2009-08-11 12:15:56)

Offline

#2 2009-08-11 22:58:35

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,233
Website

Re: /usr/bin/pacman: No such file or directory

Please post the output of:

uname -a
file /usr/bin/pacman

Offline

#3 2009-08-12 10:58:56

crabmeat
Member
Registered: 2009-08-11
Posts: 16

Re: /usr/bin/pacman: No such file or directory

# uname -a
Linux isengard 2.6.30-ARCH #1 SMP PREEMPT Sat Jul 4 02:24:43 CEST 2009 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
# file /usr/bin/pacman
/usr/bin/pacman: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped


ya.. thanks, i was guessing it, but dunno how to figure it out. i have no idea why the architecture changed. iam going to recompile packman!

thanks for your help



edit:

when i installed my 32bit system i changed the mirrorlist to 'i686' repository for downloading 32bit things. i forgot to change it again when i was done... so pacman downloaded 32bit stuff and apparently updatet itself.

Last edited by crabmeat (2009-08-12 11:25:14)

Offline

#4 2009-08-12 11:57:54

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,233
Website

Re: /usr/bin/pacman: No such file or directory

Yep... Done that before wink tongue

Offline

#5 2009-08-13 09:25:27

crabmeat
Member
Registered: 2009-08-11
Posts: 16

Re: /usr/bin/pacman: No such file or directory

Ok everything works fine again.
Maybe my sollution was not the smoothest - i downloaded pacman x86_64 stuff with my i686 envoirenment in a fresh folder, using the --root argument. then i copied the new pacman binary, libalpm and libfetch into /usr/bin and /usr/lib - overwrite the wrong 32bit files and everything works .

Offline

#6 2009-08-13 22:03:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: /usr/bin/pacman: No such file or directory

Just do a
# pacman -S pacman
to make sure that pacman is installed correctly.

Offline

#7 2009-08-13 22:52:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,233
Website

Re: /usr/bin/pacman: No such file or directory

You could have just manually downloaded the 64-bit package, then:

tar xzf /var/cache/pacman/pkg/pacman-3.3.0-3-i686.pkg.tar.gz -C /

THEN you could have pacman -S pacman to check everything smile

Last edited by fukawi2 (2009-08-13 22:52:33)

Offline

Board footer

Powered by FluxBB