You are not logged in.

#1 2017-03-04 14:20:08

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

[SOVLED]Install archLinux can't chroot into archLinux

I mounted all the required partitions and everything but when i get to the point where I need to run the chroot command I get this error:

arch-chroot /mnt /bin/bash
chroot:failed to run command #bin/bash#:no such file directory

Last edited by xunl (2017-03-05 23:43:51)

Offline

#2 2017-03-04 15:09:18

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 454

Re: [SOVLED]Install archLinux can't chroot into archLinux

why  /bin/bash?

i think the iso have a different shell.

ezik

Offline

#3 2017-03-04 15:23:57

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

shulamy wrote:

why  /bin/bash?

i think the iso have a different shell.

ezik

use

arch-chroot /mnt 

same mistake
archlinux-2017.03.01-dual.iso

Offline

#4 2017-03-04 15:36:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOVLED]Install archLinux can't chroot into archLinux

It looks like you haven't run the pacstrap command. Can you confirm this please.

Also can you post the output of...

lsblk

Last edited by Slithery (2017-03-04 15:38:10)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-03-04 15:44:51

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

slithery wrote:

It looks like you haven't run the pacstrap command. Can you confirm this please.

Also can you post the output of...

lsblk

i already have run

 pacstrap /mnt base base-devel

then

pacstrap /mnt base base-devel   29.09s user 2.61s system 85% cpu 37.271 total

Last edited by xunl (2017-03-04 15:46:06)

Offline

#6 2017-03-04 15:49:34

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

slithery wrote:

It looks like you haven't run the pacstrap command. Can you confirm this please.

Also can you post the output of...

lsblk

http://xun.96.lt/17.jpg

Mod note: Please don't embed large images into your posts. See https://wiki.archlinux.org/index.php/Co … s_and_code -- WorMzy

Last edited by WorMzy (2017-03-04 15:51:16)

Offline

#7 2017-03-04 16:02:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOVLED]Install archLinux can't chroot into archLinux

Was the pacstrap command successful? 37 seconds seems incredibly quick to download and install all the packages from base and base-devel.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-03-04 16:14:43

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 137

Re: [SOVLED]Install archLinux can't chroot into archLinux

xunl wrote:
shulamy wrote:

why  /bin/bash?

i think the iso have a different shell.

ezik

use

arch-chroot /mnt 

same mistake
archlinux-2017.03.01-dual.iso

Nope, it uses /bin/bash by default, but it can be specified as an argument. So either way should work if /bin/bash exists in the directory one is chrooting into.

Offline

#9 2017-03-04 16:15:58

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

slithery wrote:

Was the pacstrap command successful? 37 seconds seems incredibly quick to download and install all the packages from base and base-devel.

install command output is normal
my English is not very good

Last edited by xunl (2017-03-04 16:16:38)

Offline

#10 2017-03-04 19:33:44

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOVLED]Install archLinux can't chroot into archLinux

What is the output of

# pacman -Qkkr /mnt

Offline

#11 2017-03-05 00:02:09

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

loqs wrote:

What is the output of

# pacman -Qkkr /mnt

no output ,nothing

Offline

#12 2017-03-05 00:15:07

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOVLED]Install archLinux can't chroot into archLinux

What is the output of

# ls /mnt/var/lib/pacman/local/

Offline

#13 2017-03-05 00:17:11

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

loqs wrote:

What is the output of

# ls /mnt/var/lib/pacman/local/

ALPM_DB_VERSION

Offline

#14 2017-03-05 00:22:19

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOVLED]Install archLinux can't chroot into archLinux

There should be additional files in there, one for each package that pacman records as being installed.
Something has gone very wrong with the pacstrap step.  Would suggest reformatting that filesystem and attempt pacstrap again.

Offline

#15 2017-03-05 00:54:18

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

loqs wrote:

There should be additional files in there, one for each package that pacman records as being installed.
Something has gone very wrong with the pacstrap step.  Would suggest reformatting that filesystem and attempt pacstrap again.

reinstall output some error

warning :skipping target:file ,findutils,gawk,gettext,grep,gzip,pacman,sed,texinfo,util-linux,which

...

pacstrap /mnt base base-devel 2.28s user 2.99s system 0% cpu 15:45.51 total
failed to commit transaction (conflicting files)
errors occurrd,nopackages were upgraded
failed to install packages to new root

sad

Offline

#16 2017-03-05 01:12:55

xunl
Member
From: China
Registered: 2017-03-04
Posts: 9

Re: [SOVLED]Install archLinux can't chroot into archLinux

loqs wrote:

There should be additional files in there, one for each package that pacman records as being installed.
Something has gone very wrong with the pacstrap step.  Would suggest reformatting that filesystem and attempt pacstrap again.

thank you,I have solved the problem
https://bbs.archlinux.org/viewtopic.php?id=215380
:)

Last edited by xunl (2017-03-05 23:54:57)

Offline

#17 2017-03-05 17:46:01

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOVLED]Install archLinux can't chroot into archLinux

As the issue is solved, please mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.

Offline

Board footer

Powered by FluxBB