You are not logged in.
Pages: 1
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. ![]()
Last edited by aph3xlol (2010-12-01 13:23:46)
Offline
maybe you should look for a lock file, which needs to be removed.
Offline
Do you know where this is located?
Offline
what does "file /usr/bin/pacman" say?
Online
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
what does "file /usr/bin/pacman" say?
/usr/bin/pacman: data
Offline
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
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
[xyn@CellarDoor ~]$ ls -l /usr/bin/pacman
-rwxr-xr-x 1 root root 70724 Sep 3 21:12 /usr/bin/pacman
Offline
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
I cant reinstall it with pacman. I cant run any command with pacman.
Last edited by aph3xlol (2010-12-01 14:00:48)
Offline
but how can you reinstall with pacman when you cannot execute the binary?
Offline
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
How would I do this?
Offline
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/patchOffline
so.
tar xf pacman-3.4.1
cp pacman-3.4.1 /usr/bin/pacman
?
Offline
sry for asking you, but how long are running on linux?
Offline
6 months.
Offline
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/pacmanOf cause you'll need to work as root to copy the binary.
Hope this helps...
Offline
Maybe this helps? https://bbs.archlinux.org/viewtopic.php?id=95007
Offline
Pages: 1