You are not logged in.

#1 2010-12-01 13:22:52

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Pacman Issue

Hello. I recently ran Pacman -Syy, and it locked up So I had to force quit it.
Well Ever since then I cant run pacman.
Whenever i output any pacman command it returns:
bash: /usr/bin/pacman: cannot execute binary file
I have tried recompiling it but the issue keeps happening.
Is there a way to uninstall pacman and just recompile it in?
Or has anyone experienced this issue and have a fix?
My cd/drive is broke, so there is no way i can do a fresh install of arch. hmm

Last edited by aph3xlol (2010-12-01 13:23:46)

Offline

#2 2010-12-01 13:35:21

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

maybe you should look for a lock file, which needs to be removed.

Offline

#3 2010-12-01 13:37:15

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

Do you know where this is located?

Offline

#4 2010-12-01 13:39:37

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

Re: Pacman Issue

what does "file /usr/bin/pacman" say?

Online

#5 2010-12-01 13:40:47

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

look for pacman.lock. mybe you can run locate to find it...else...

is pacman still in your path? try

which pacman

, have a look whether the ugo permissions are set correctly.
Have you rebooted in between?

Offline

#6 2010-12-01 13:50:08

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

Allan wrote:

what does "file /usr/bin/pacman" say?

/usr/bin/pacman: data

Offline

#7 2010-12-01 13:51:16

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

should look like

/usr/bin/pacman: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

?

Offline

#8 2010-12-01 13:55:02

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

linux-ka wrote:

look for pacman.lock. mybe you can run locate to find it...else...

is pacman still in your path? try

which pacman

, have a look whether the ugo permissions are set correctly.
Have you rebooted in between?

[xyn@CellarDoor ~'$ which pacman
/usr/bin/pacman

yes i have

Last edited by aph3xlol (2010-12-01 13:55:36)

Offline

#9 2010-12-01 13:57:24

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

[xyn@CellarDoor ~]$ ls -l /usr/bin/pacman
-rwxr-xr-x 1 root root 70724 Sep 3 21:12 /usr/bin/pacman

Offline

#10 2010-12-01 13:59:40

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

maybe you can fix this via unpacking the pkg.tar.gz from pacman and copying the binary to its place...but that's not the nice way...finally you could reinstalling pacman with pacman....

Offline

#11 2010-12-01 14:00:18

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

I cant reinstall it with pacman. I cant run any command with pacman.

Last edited by aph3xlol (2010-12-01 14:00:48)

Offline

#12 2010-12-01 14:01:16

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

but how can you reinstall with pacman when you cannot execute the binary?

Offline

#13 2010-12-01 14:02:25

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

Re: Pacman Issue

hmmm...  looks like a corrupted file...   

As suggested, replace it with a copy from the pacman package tarball.  I'd be concerned what other files have had a similar treatment.

Online

#14 2010-12-01 14:04:04

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

How would I do this?

Offline

#15 2010-12-01 14:22:14

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

untar the tarball, maybe get a new one and copy it to any place you need to...

tar xf <your pacman tarball> 
cp some/pacman/folder/pacman /to/your/wished/patch

Offline

#16 2010-12-01 14:30:17

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

so.
tar xf pacman-3.4.1
cp pacman-3.4.1 /usr/bin/pacman
?

Offline

#17 2010-12-01 16:07:14

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

sry for asking you, but how long are running on linux?

Offline

#18 2010-12-01 16:24:22

aph3xlol
Member
Registered: 2010-12-01
Posts: 9

Re: Pacman Issue

6 months.

Offline

#19 2010-12-01 17:38:18

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: Pacman Issue

your tarball is maybe named pacman-3.4.1-1-i686.pkg.tar.gz, thus unpacking will give you  folders named  var,usr and etc inlcuding the pacman-3.4.1-1-i686.pkg.tar.gz content.

finally you have to copy the needed binary of this tarball to its right place.

cp ./usr/bin/pacman /usr/bin/pacman

Of cause you'll need to work as root to copy the binary.

Hope this helps...

Offline

#20 2010-12-02 09:46:51

taavi
Member
From: Tartu, Estonia
Registered: 2010-10-10
Posts: 50
Website

Re: Pacman Issue

Offline

Board footer

Powered by FluxBB