Locked out of system (ncurses, zsh, ssh)

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Locked out of system (ncurses, zsh, ssh)

Postby capthookb » Sun Oct 04, 2015 9:22 pm

I had my raspberry pi running with archlinux for quite some time now. I had installed ohmyzsh over bash for shell.
Today i updated rtorrent, and as soon as after that, i got errors regarding libncursesw.so.5. So i updated ncurses as well.
Unfortunatelly i had to restart the system, and now i cannot login because zsh uses ncurses. I cannot ssh as well, although i tried these things
1) I removed /usr/bin/zsh to /usr/bin/zsh-backup and soft-linked /usr/bin/bash to /usr/bin/zsh
2) I deleted /usr/bin/zsh and copied /usr/bin/bash to /usr/bin/zsh

I did those things while i mounted the sd card to my desktop. But still, when i put it in my raspberry and try to login with ssh i get:

$this->bbcode_second_pass_code('', '
root@192.168.1.3's password:
Welcome to Arch Linux ARM

Website: http://archlinuxarm.org
Forum: http://archlinuxarm.org/forum
IRC: #archlinux-arm on irc.Freenode.net
Last login: Mon Oct 5 00:03:43 2015 from 192.168.1.2
-zsh: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
Connection to 192.168.1.3 closed.
')
What can i do?
capthookb
 
Posts: 12
Joined: Mon May 18, 2015 2:35 pm

Re: Locked out of system (ncurses, zsh, ssh)

Postby capthookb » Sun Oct 04, 2015 9:59 pm

And yes, bash also uses ncurses, so i won't do much if i switch to bash.
I wonder, what happened...
capthookb
 
Posts: 12
Joined: Mon May 18, 2015 2:35 pm

Re: Locked out of system (ncurses, zsh, ssh)

Postby capthookb » Mon Oct 05, 2015 8:36 am

Ok, i think i updated ncurses but all the other programs, including bash, zsh were not updated before the restart.
So they could not work with the new library, because the version that was installed had to work with libncursesw.so.5
I mounted once again the sd card to my desktop (under /mnt) and run:
$this->bbcode_second_pass_code('', '
cd /mnt/usr/lib
ln -s libncursesw.so.6 libncursesw.so.5
')
and i logged in the system. Now i'll update and remove the softlink above.
capthookb
 
Posts: 12
Joined: Mon May 18, 2015 2:35 pm


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 16 guests