You are not logged in.

#1 2016-05-02 19:07:51

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

[SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

original title: missing libncursesw.so.5 after sysupgrade ... can't boot: black screen

My last system upgrade on November 2015 wasn't successful and then I was extremely busy to take care of it -and I know it is my fault not to investigate the matter early, sorry for that.

The system upgraded normally. Then I rebooted passing the "booting arch linux" message and after that all I have is a black screen.

I  mounted the drive on another linux system and checked /var/log/pacman.log where I have:

[2015-09-02 21:11] [PACMAN] Running 'pacman --sync --refresh --sysupgrade'
...
[2015-09-02 22:36] [ALPM] transaction completed
[2015-11-03 21:11] [PACMAN] Running 'pacman --sync --refresh --sysupgrade'
...
[2015-11-03 22:32] [ALPM] warning: /etc/profile installed as /etc/profile.pacnew
...
[2015-11-03 22:32] [ALPM] upgraded ncurses (5.9-7 -> 6.0-3)
...
[2015-11-03 22:32] [ALPM-SCRIPTLET] /usr/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
[2015-11-03 22:32] [ALPM] upgraded bash (4.3.039-1 -> 4.3.042-3)
...
[2015-11-03 22:32] [ALPM] transaction completed

The following entry is the only error in the last upgrade process:

[2015-11-03 22:32] [ALPM-SCRIPTLET] /usr/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file ...

So I checked /usr/lib/ and I have the following libncurses versions:

libncurses.so
libncursesw.so
libncursesw.so.6
libncursesw.so.6.0

libncurses++.so
libncurses++w.so
libncurses++w.so.6
libncurses++w.so.6.0

No version 5 at all.

My /usr/bin/bash is:

modified on Fri 18 Sep 2015 05:15:08 AM ART
accessed on Thu 05 Nov 2015 07:33:22 PM ART

It seems it is related to the libncurses 5.9.7 to 6.0.3 upgrade and/or to the BASH 4.3.039-1 to 4.3.042-3 upgrade ... or both.

Can anyone point me in the right direction so I can research the matter further ?

Last edited by ivanborodin (2016-05-05 04:42:15)

Offline

#2 2016-05-02 19:11:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

https://lists.archlinux.org/pipermail/a … 39844.html

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-05-02 22:43:31

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#4 2016-05-03 04:31:03

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

Thank you for your reply ChickenMan.

I looked into ncurses5-compat-libs 6.0-3 as you pointed out and even searched a bit to learn what ncurses is for to begin with. Now I know that is a library API to build GUI-like text-based apps so now I understand why it is related/required to/by BASH.

What I don't get is: if ncurses was required to be upgraded to 6 and 5 was still required by BASH (or, by now, the compat package to support 5) why pacman did not included it. I still think pacman was doing the right thing and I messed up something due to being a newbie or by sheer ignorance. I don't recall news on the front page requiring manual intervention for anything related to ncurses on September/November 2015. I even re-checked the front page past news and don't see anything relevant ... am I missing something ?

Is it possible that pacman will leave you with an unbootable system for not including some required package ? I don't think so.

By the way my installation is very basic: no GUI at all, no X, some basic packages; eg: ntp sgdisk some command line network tools and that's all, no big package like MathLab that I came across many times on google having trouble with ncurses versions.

Offline

#5 2016-05-03 05:55:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

ivanborodin wrote:

am I missing something ?

Did you read the ML thread I linked to? The race condition is unlikely to be your critical issue. Chroot in and read the journal for a failed boot. And deal with the profile.pacnew.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-05-03 06:09:28

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

No ! I missed it ... SORRY

I read too fast the usual "Not an Installation issue, moving to NC..." and missed your link alltogether ... sorry again and THANKS !

Offline

#7 2016-05-03 06:34:42

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

OK. This seems to be my problem:

https://lists.archlinux.org/pipermail/a … 39848.html

Upgrading ncurses deleted libncursesw.so.5 (presumably replacing it with libncursesw.so.6), so when (old) bash went to find the copy of libncursesw it was linked with, it was gone.

The new copy of bash will use the new linbcursesw library once it is installed.

Obviously the new copy of BASH is not using the new ncurses since the system doesn't boot anymore.

Question: suppose I boot with the september or november liveCD and copy the ncurses 5 libs to my offline hard drive /lib or /lib32 (which I can mount from the liveCD) ... will it work ?

Offline

#8 2016-05-03 06:42:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

Bash was upgraded:

[2015-11-03 22:32] [ALPM] upgraded bash (4.3.039-1 -> 4.3.042-3)

Read the rest of the thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2016-05-03 06:52:21

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

I read ALL the thread way down, and, yes, my BASH was upgraded, that I already know.

However the rest of the thread is more or less a lengthy discussion on whether a potential problem like this could be avoided by posting it beforehand on the news page. The author of the thread was lucky (and savvy) to have seen a mail 3 days before he upgraded and he was still able to boot, not my case.

Ralf posted his solution as

Ryan wrote:

Btw. thank you Damjan for the heads up smile.

My workaround was to mv -i the libs [1]. Btw. packages from AUR are
affected too.

2 cents,
Ralf

... but his solution was beforehand, not after the problem, so for me it's game over

Offline

#10 2016-05-03 07:07:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

I give up. Believe what you want to believe; but the evidence is in your journal.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2016-05-03 14:51:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

This error comes from a partial upgrade, period. Boot from a live disk, make sure the entire system is updated, and any AUR packages rebuilt against the new library.

If that doesn't do it, the ncurses update isn't your problem.

Last edited by Scimmia (2016-05-03 14:52:41)

Offline

#12 2016-05-03 17:38:40

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

I was thinking that it may have been an AUR package still looking for ncurses 5. Is that not possibly what would be causing this?


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#13 2016-05-03 21:07:34

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

jasonwryan: first and foremost sorry if something is not obvious too me, I'm a newbie after all, sorry if you feel I'm wasting your time, I never wanted to, I just trying to solve an issue that by the words of somebody else in the thread is not trivial for a newbie, and last ... thank you again !

scimmia: crystal-clear, I will download and boot from a live disk, chroot, update all (and by the way crossing my fingers not to get stuck by the new pacman mandatory upgrade that was required before last month)

thechickenman: I don't have anything installed from AUR, just a very very basic streamlined setup: no X no big packages, just some net tools to use this laptop as a maintenance front-end for some servers in the event my main workstation is down.

Offline

#14 2016-05-05 04:40:24

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [SOLVED]missing libncursesw.so.5 after sysupgrade ... can't boot

booted from live disk, restored my storage and network setup, arch-chroot, pacman --sync --refresh --sysupgrade and ... voila: rebooted and now all is working as expected once again smile

by the way:

journalctl --reverse -until "####-##-##" showed nothing unusual (to me)
journalctl --list-boots can't ennumerate boots
journalctl --boot showed nothing at all

evidently this issue was produced by a partial upgrade as scimmia pointed out

once again, THANKS to all that gave some time to help a newbie and sorry for asking whatever was obvious to somebody else to begin with smile

Offline

Board footer

Powered by FluxBB