You are not logged in.

#1 2013-09-10 13:37:54

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

[Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Hi all,

Really stupid mistake this was! After installing windows on dual boot, I booted on a Arch netcd to chroot into my install and re-install grub.

But I booted by sheer stupidity onto a 64bits netcd, just realised today after few days that Pacman does't work any more and found out why....

Now I have searched the forum and the wiki for a solution, but I do not want to make it worth, so I would prefer to have some advice.

Looking forward for your reply,

Regards,

Last edited by sweetthdevil (2013-09-11 10:14:40)

Offline

#2 2013-09-10 14:56:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

I think you're omitting part of your story.. booting a liveCD and running install-grub (or grub-install) shouldn't cause pacman to break.

Can you elaborate on what you mean by "broken"? Error messages would be helpful if you're getting any.

Last edited by WorMzy (2013-09-10 14:57:00)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-09-10 17:35:00

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Right,

I am assuming that because I booted on the 64b liveCD while installing grub it also install pacman 64b also.

See below error message and why I am thinking the above.

[sweetth@linuxbox ~]$ file /usr/bin/pacman
/usr/bin/pacman: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=59be7dc0ed9616129c704fde04b23a4ae6d4e7c7, stripped
[sweetth@linuxbox ~]$ uname -a
Linux linuxbox 3.10.10-1-ARCH #1 SMP PREEMPT Fri Aug 30 12:11:59 CEST 2013 i686 GNU/Linux
[sweetth@linuxbox ~]$ sudo pacman -Syyu
[sudo] password for sweetth: 
/usr/bin/pacman: /usr/bin/pacman: cannot execute binary file 

Offline

#4 2013-09-10 17:48:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

What exactly did you do when you were booted from the livecd?  If you had simply chroot'ed into your installation, you would not have been able to install 64bit packages unless you explicitly changed it in your pacman.conf. 

If you want help, you really need to give a detailed explanantion of what you did and what kinds of problems you are currently seeing.  Giving broad generalizations and expecting others to try to decode what you have said is not very cool.


Edit: BTW, a 64bit bios bootloader is fully capable of booting a 32bit kernel and userland.  This is not the case for UEFI, but you have also not given any indication of what you are using… though I suspect that grub really has nothing to do with your problem.

Last edited by WonderWoofy (2013-09-10 17:50:12)

Offline

#5 2013-09-10 17:56:46

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

No you are right the grub is fixed, hence why I used the liveCD.

So I booted onto the liveCD (by mistake using the 64b) chroot onto my install, and run grub-install, exited and then rebooted.

And today, realized pacman wasn't working, so investigated a bit and because of the information I pasted above thought the problem was coming from there. But I might be wrong.

The only problem I am having is that pacman isn't working, the rest is fine.

I hope this clarify your questions, if more info are required let me know which,

thanks for your time

Offline

#6 2013-09-10 18:01:05

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

So boot into the 32bit live media and reinstall (the correct) pacman…

Offline

#7 2013-09-10 18:02:41

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Right,

I should have mentioned that I did try that, but that didn't work - it gave me the same error message

Offline

#8 2013-09-10 18:08:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Do it from within the livecd and specify the root (your system's mountpoint).  Don't do it from the chroot, which is pretty much exactly like trying to do it from the live system.

Edit:

$  pacman -S --help                                                                                                                                                                           
usage:  pacman {-S --sync} [options] [package(s)]
options:
<snip>
  -r, --root <path>    set an alternate installation root
<snip>

Last edited by WonderWoofy (2013-09-10 18:09:39)

Offline

#9 2013-09-10 18:24:17

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Right,

will try that tomorrow and will report. Will have to look into it to know what command to run.

thanks

Offline

#10 2013-09-10 18:25:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Just use pacman as you normally would, but also include --root /path/to/mounted/system in there.  Super simple.

Offline

#11 2013-09-11 10:16:52

sweetthdevil
Member
Registered: 2009-10-20
Posts: 432

Re: [Solved] Pacman 64bts on 32bts system - how to re-install Pacman

Right,

First of all, it is now sorted.

However just for the purpose of any one needed to do the same in the future, when booting up the liveCD today, making sure I was running the 32b version. Once I ran the command it still offer me to re-install pacman 64b. So I run pacman -U with the package I downloaded onto my drive.

Thanks for your help WonderWoofy.

Offline

Board footer

Powered by FluxBB