You are not logged in.

#1 2013-05-07 19:13:32

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

pacman: not found message in chroot during Arch install

Very odd...hope someone can please advise....

Going through Arch install process on my little Toshiba Libretto U100...

Had it set up to dual boot WinXP and Debian. Was working OK...

Decided to install Arch over the Debian install.....

Install process was going OK until I got to part where you chroot into new Arch install to do various configurations.

I was trying to install 'ifplugd' as it seemed to fit my situation and when I did:

# pacman -S ifplugd

I got message:

/bin/sh: pacman: not found


Any suggestions as to how to get pacman working in chroot ?

Thanks!


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#2 2013-05-07 19:23:01

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

Re: pacman: not found message in chroot during Arch install

So you have chrooted successfully?  From what you wrote there it makes it sound like the chroot failed (until you mention the message you recieved).

I think you need to bea  bit more clear in phrasing your question.  I take it you were doing a standard installation using the beginners guide, and you used pacstrap and whatnot.  Is this right?

Offline

#3 2013-05-07 23:20:08

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: pacman: not found message in chroot during Arch install

Or you chrooted before completely installing the base system. Bur WonderWoofy is right - we are just guessing here without more detailed info about what happened.

Last edited by cfr (2013-05-07 23:20:40)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2013-05-07 23:42:58

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

Sorry for not being clearer....

Yes, I chrooted successfully....and did some of the configurations in the Beginner's install guide....got as far as the part where I wanted to install ifplugd, which meant using pacman, which as noted did not work...

Up until that point, everything was going OK with install....used pacstrap OK (at least I think it went OK...) and got to point in instructions where in chroot you are supposed to setup your networking so that when you boot into Arch, you are setup from what I understand.....

Hope that clarifies....

Last edited by ArchiMark (2013-05-08 00:25:13)


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#5 2013-05-08 00:57:12

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

Re: pacman: not found message in chroot during Arch install

Is the pacman binary there?  Have you checked?

Offline

#6 2013-05-08 14:04:18

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

WonderWoofy wrote:

Is the pacman binary there?  Have you checked?

Good question....my guess is that it was not....

I use past tense as something happened to laptop/dock with CD and I had to abort install and start over...probably a good thing given the errors I had...

So, started install process again. This time I watched more carefully process/messages and think pacstrap installed the programs OK....

Have made it OK all the way to the part about installing GRUB. Now I have some error messages....

Please note that I had this laptop setup before dual booting WinXPP and Debian. So, idea is to replace Debian with Arch...and keep WinXPP as-is.

Here's what I got while trying to setup GRUB after installing it and os-prober...

#grub mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg....
Found linux-image: /boot/vmlinuz-linux
Found initrd image: boot/initramfs-linux.img
  WARNING: Failed to connect to lvemetad: No such file or directory. Falling back to internal scanning. No volume groups found.
[2264.833763] SQUASHFS error: Can't find a SQUASHFS superblock on sda2
[2264.839978] EXT4-fs (sda2): unable to find superblock
[2264.846064] EXT4-fs (sda2): unable to find superblock
[2264.852103] EXT4-fs (sda2): unable to find superblock
Found Microsoft Windows XP Professional on /dev/sda1
done

So, looked at GRUB wiki page and edited /boot/grub/custom.cfg as follows:

# (2) Windows XP Professional
menuentry "Windows XP Professional" {
                 set root = (hd0,1)
                 chainloader (hd0,1) +1

Then again did:


#grub mkconfig -o /boot/grub/grub.cfg

But get same error messages again.....

Hard drive has the following:

sda1  WinXP

sda2  just a tiny unused space

sda5  Ext4 space where I put /mnt and installed Arch....

sda6  swap space....

sda7  Ext4 space where I put /mnt/home....


Any suggestions??

Thanks!


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#7 2013-05-08 14:56:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: pacman: not found message in chroot during Arch install

After you chroot, are you doing a source /etc/profile   ?
What does which pacman report from inside the chroot?
What does ls -l /usr/bin/pacman say from inside the chroot?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2013-05-08 15:13:17

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

ewaller wrote:

After you chroot, are you doing a source /etc/profile   ?
What does which pacman report from inside the chroot?
What does ls -l /usr/bin/pacman say from inside the chroot?

Thanks for your help, but as noted in post above, I redid install and have pacman now...

However, my problem now as noted in post above, is getting GRUB configured so that I can dual boot WinXPP and Arch....

Thanks.


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#9 2013-05-08 15:15:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: pacman: not found message in chroot during Arch install

Understood.  I am actually trying to see if the chroot is sane.  Unless I am not understanding, you are running grub inside the chroot.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2013-05-08 15:26:43

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

ewaller wrote:

Understood.  I am actually trying to see if the chroot is sane.  Unless I am not understanding, you are running grub inside the chroot.

Thanks...

Yes, trying to setup grub from inside the chroot...

Overall, I am following the steps described in the Beginner's Guide...and checking additional pages as needed as I go....


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#11 2013-05-08 15:41:09

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

Re: pacman: not found message in chroot during Arch install

If all you have is Arch Linux and a windows xp install, I would use syslinux.  It is way simpler, and doesn't depend on some crazy scripts and autodetection (that doens't always work) to make the config.  You edit a syslinux config yourself directly.

If you are dead set on using grub though, I am going to have to step aside here, as I don't know too much about the inner workings of grub, other than that I think it is far too complicated for its own good.

Offline

#12 2013-05-08 15:50:26

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

WonderWoofy wrote:

If all you have is Arch Linux and a windows xp install, I would use syslinux.  It is way simpler, and doesn't depend on some crazy scripts and autodetection (that doens't always work) to make the config.  You edit a syslinux config yourself directly.

If you are dead set on using grub though, I am going to have to step aside here, as I don't know too much about the inner workings of grub, other than that I think it is far too complicated for its own good.

Thanks for the suggestion!

Simpler sounds good to me right now....  wink

Will check it out....


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#13 2013-05-08 15:57:45

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: pacman: not found message in chroot during Arch install

Regarding the superblock error:

http://linuxexpresso.wordpress.com/2010 … in-ubuntu/

As for the

Failed to connect to lvemetad: No such file or directory

https://bbs.archlinux.org/viewtopic.php?id=159415

Offline

#14 2013-05-08 16:16:32

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

henk wrote:

Regarding the superblock error:

http://linuxexpresso.wordpress.com/2010 … in-ubuntu/

As for the

Failed to connect to lvemetad: No such file or directory

https://bbs.archlinux.org/viewtopic.php?id=159415


Thanks for all that info......

FWIW, I redid install process again and this time no error message....


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#15 2013-05-08 16:19:08

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

Meanwhile, got syslinux installed and setup....think it went OK....I edited file to indicate the correct partition...

Then per instructions, I exited chroot...and then supposed to do unmount of partitions as follows:

# umount /mnt/{boot,home,}

However, when I do this, I get error message (just my luck....) :

zsh: parse error near '}'

Any suggestions?

Seems like I'm so close now..... smile

Thanks!


UPDATE:

Decided to just do:

# umount /mnt/home
# umount /mnt
# reboot


Unfortunately, when I reboot, don't get a boot menu....I get message about no OS found and it boots up some recovery system with console....

sad

UPDATE 2:

Went through syslinux configuration again and then tried rebooting and voila! I saw the syslinux boot menu!

Just booted up into Arch....

However, now I have other error messages (just my luck...)....

1.  When I logged in using my login name and password, I got following error message:

-- marks: /home/marks: change directory failed: no such file or directory

Logging in with home = "/".

(UPDATE) I just needed to make a directory called 'marks' and error went away....


2.  $ [ TIME ] Timed out waiting for device sys-subsystem-net-devices-eth0.device
    [DEPEND] Dependency failed for dhcpcd on eth0.
    [ OK ] Reached target Multi-user System.
    [ OK ] Reached target Graphical Interface.


I assume that this error has to do with ethernet connection not being recognized....
(UPDATE)  Got this fixed....

Last edited by ArchiMark (2013-05-08 19:29:00)


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

#16 2013-05-08 21:02:17

ArchiMark
Member
From: California, USA
Registered: 2012-04-11
Posts: 101

Re: pacman: not found message in chroot during Arch install

Hmmm....something bad happened...not sure what I had X working and then....not sure, but had to reboot and now no operating system found, so now syslinux boot menu.....

Been reading various pages....one place mentioned that boot partition start sector should be either 63 or 2048....is this correct? If so, I have issue...

My existing WinXPP partition starts at 63...

And Arch root partition starts at 58595328....but does show the boot flag in fdisk....  wink

Any suggestions?

[ UPDATE ]

OK, decided to try installing MBR again....

# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sda

Then rebooted...

First it didn't find the syslinux boot menu and started to boot up the linux recovery OS....

Did ctrl-alt-del and this time I noticed that on Toshiba boot splash screen there are icons at bottom for hard drive, CD, etc...had just assumed that this was a graphic, but decided to try using left arrow key and it selected the hard drive icon and then I clicked the Return key and voila! I then saw the syslinux boot menu! So, could select Arch and it boots up OK!.....

Go figure.....

Now, I'm wondering if there's anyway to avoid having to do all this (which means I have to watch the boot up process and do this before it goes to the recovery OS...) and get it to go straight to the syslinux boot menu screen.

[ UPDATE 2 ]

OK, figured what was going on with booting...had to change boot priority from CD-ROM to Hard Drive....had changed this to facilitate booting up Arch install CD....



Thanks

Last edited by ArchiMark (2013-05-09 00:33:50)


Silicon Valley Digerati & Arch Noob
GPD Pocket 3, Thinkpad 230t

Offline

Board footer

Powered by FluxBB