You are not logged in.

#1 2015-05-23 12:06:20

tghe-retford
Member
From: Retford, United Kingdom
Registered: 2011-12-08
Posts: 23

[SOLVED} Arch refuses to chroot due to missing libreadline.so.6

I got a new laptop today and decided to put 64-bit Arch on a 240GB Kingston V300 SSD (with Windows 8 on the other partition - this laptop uses a legacy BIOS-MBR) using a USB stick as the install medium. When I install, everything works without incident until I go to chroot into the newly installed base system on the SSD. The following error occurs:

# arch-chroot /mnt /bin/bash
/bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

The package readline 6.3.006-1 is currently installed and libreadline.so, libreadline.so.6 and libreadline.so.6.3 are all present within /usr/lib

I've tried installing Arch three times without any success, tried chrooting after installing, no dice. Tried different USB sticks, same issue and also tried the previous ISO from April 2015 and the same error comes up.

Not sure where to go from here.

Thanks in advance.

Last edited by tghe-retford (2015-05-23 14:55:38)

Offline

#2 2015-05-23 12:23:59

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,914

Re: [SOLVED} Arch refuses to chroot due to missing libreadline.so.6

tghe-retford, latest version of readline is      6.3.008-1 , is the mirror you selected up to date ?
https://www.archlinux.org/mirrors/status/


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2015-05-23 14:28:48

tghe-retford
Member
From: Retford, United Kingdom
Registered: 2011-12-08
Posts: 23

Re: [SOLVED} Arch refuses to chroot due to missing libreadline.so.6

Lone_Wolf wrote:

tghe-retford, latest version of readline is      6.3.008-1 , is the mirror you selected up to date ?
https://www.archlinux.org/mirrors/status/

Finally managed to update it to 6.3.008-1, still gives the same error:

root@archiso ~ # pacman -Q readline
readline 6.3.008-1
root@archiso ~ #arch-chroot /mnt /bin/bash
/bin/bash: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory                                                                   :(
127 root@archiso ~ #

Offline

#4 2015-05-23 14:54:38

tghe-retford
Member
From: Retford, United Kingdom
Registered: 2011-12-08
Posts: 23

Re: [SOLVED} Arch refuses to chroot due to missing libreadline.so.6

Mark it as solved now. I have figured out that doing the following:

# pacman -r /mnt -S readline

and then when it complained libncurses.so.5 was missing, I also did:

# pacman -r /mnt -S ncurses

and now I have chroot. big_smile

Offline

#5 2016-02-11 18:08:59

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 325
Website

Re: [SOLVED} Arch refuses to chroot due to missing libreadline.so.6

I got the same error message when installing. Installation media: archlinux-2015.11.01-dual.iso . (I used a package cache on another HDD though.) Maybe this quirk about "readline" should go to the installation manual? BTW, "readline" depends on "ncurses".

Last edited by beroal (2016-02-11 19:17:37)


we are not condemned to write ugly code

Offline

Board footer

Powered by FluxBB