LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-16-2024, 06:44 PM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Leap 15.6rc breakage: libncurses.so.5


Recent updates have broken things in 15.6rc that used to work. For example:
Code:
$ htop -d20
htop: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
$
I checked in YaST and libncurses6 was installed. libncurses5 was not. Installing "5" has had no effect. Manually running ldconfig hasn't helped either. What I see when running "ldconfig -p" is:
Code:
# ldconfig -p | grep curses
        libncursesw.so.6 (libc6,x86-64) => /lib64/libncursesw.so.6
        libncursesw.so.5 (libc6,x86-64) => /lib64/libncursesw.so.5
        libncurses.so.6 (libc6,x86-64) => /lib64/libncurses.so.6
        libncurses.so.5 (libc6,x86-64) => /lib64/libncurses.so.5
        libncurses++w.so.6 (libc6,x86-64) => /usr/lib64/libncurses++w.so.6
        libncurses++w.so.5 (libc6,x86-64) => /usr/lib64/libncurses++w.so.5
        libncurses++.so.6 (libc6,x86-64) => /usr/lib64/libncurses++.so.6
        libncurses++.so.5 (libc6,x86-64) => /usr/lib64/libncurses++.so.5
Looks like it ought to be recognized but htop (at least) isn't working. (Who knows what else is now broken?)

Ideas?

TIA for any hints, clues, etc.
 
Old 05-16-2024, 11:06 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
In 15.6 on a Haswell last upgraded 6 April, htop works, and I get this:
Code:
# rpm -qa | grep curses | sort
libncurses6-6.1-150000.5.20.1.x86_64
libyui-ncurses-pkg16-4.5.3-150500.3.3.1.x86_64
libyui-ncurses16-4.5.3-150500.3.3.1.x86_64
ncurses-utils-6.1-150000.5.20.1.x86_64
# ldconfig -p | grep curses
        libncursesw.so.6 (libc6,x86-64) => /lib64/libncursesw.so.6
        libncurses.so.6 (libc6,x86-64) => /lib64/libncurses.so.6
        libncurses++w.so.6 (libc6,x86-64) => /usr/lib64/libncurses++w.so.6
        libncurses++.so.6 (libc6,x86-64) => /usr/lib64/libncurses++.so.6
# rpm -ql libncurses6
/lib64/libncurses.so.6
/lib64/libncurses.so.6.1
/lib64/libncursesw.so.6
/lib64/libncursesw.so.6.1
/lib64/libtic.so.6
/lib64/libtic.so.6.1
/lib64/libticw.so.6
/lib64/libticw.so.6.1
/lib64/libtinfo.so.6
/lib64/libtinfo.so.6.1
/lib64/libtinfow.so.6.1
/usr/lib64/libform.so.6
/usr/lib64/libform.so.6.1
/usr/lib64/libformw.so.6
/usr/lib64/libformw.so.6.1
/usr/lib64/libmenu.so.6
/usr/lib64/libmenu.so.6.1
/usr/lib64/libmenuw.so.6
/usr/lib64/libmenuw.so.6.1
/usr/lib64/libncurses++.so.6
/usr/lib64/libncurses++.so.6.1
/usr/lib64/libncurses++w.so.6
/usr/lib64/libncurses++w.so.6.1
/usr/lib64/libpanel.so.6
/usr/lib64/libpanel.so.6.1
/usr/lib64/libpanelw.so.6
/usr/lib64/libpanelw.so.6.1
#
Smells like you may have an obsolete repo enabled.
 
Old 05-17-2024, 12:48 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by mrmazda View Post
In 15.6 on a Haswell last upgraded 6 April, htop works, and I get this:
Code:
# rpm -qa | grep curses | sort
libncurses6-6.1-150000.5.20.1.x86_64
libyui-ncurses-pkg16-4.5.3-150500.3.3.1.x86_64
libyui-ncurses16-4.5.3-150500.3.3.1.x86_64
ncurses-utils-6.1-150000.5.20.1.x86_64
# ldconfig -p | grep curses
        libncursesw.so.6 (libc6,x86-64) => /lib64/libncursesw.so.6
        libncurses.so.6 (libc6,x86-64) => /lib64/libncurses.so.6
        libncurses++w.so.6 (libc6,x86-64) => /usr/lib64/libncurses++w.so.6
        libncurses++.so.6 (libc6,x86-64) => /usr/lib64/libncurses++.so.6
# rpm -ql libncurses6
/lib64/libncurses.so.6
/lib64/libncurses.so.6.1
/lib64/libncursesw.so.6
/lib64/libncursesw.so.6.1
/lib64/libtic.so.6
/lib64/libtic.so.6.1
/lib64/libticw.so.6
/lib64/libticw.so.6.1
/lib64/libtinfo.so.6
/lib64/libtinfo.so.6.1
/lib64/libtinfow.so.6.1
/usr/lib64/libform.so.6
/usr/lib64/libform.so.6.1
/usr/lib64/libformw.so.6
/usr/lib64/libformw.so.6.1
/usr/lib64/libmenu.so.6
/usr/lib64/libmenu.so.6.1
/usr/lib64/libmenuw.so.6
/usr/lib64/libmenuw.so.6.1
/usr/lib64/libncurses++.so.6
/usr/lib64/libncurses++.so.6.1
/usr/lib64/libncurses++w.so.6
/usr/lib64/libncurses++w.so.6.1
/usr/lib64/libpanel.so.6
/usr/lib64/libpanel.so.6.1
/usr/lib64/libpanelw.so.6
/usr/lib64/libpanelw.so.6.1
#
Smells like you may have an obsolete repo enabled.
Not sure what that'd be. Here's what YaST is telling me:
Code:
Priority     │Enabled│Autorefresh│Name                                                            │
│100          │       │     x     │packman                                                         │ 
│ 99 (Default)│   x   │     x     │Update repository of openSUSE Backports                         │
│ 99 (Default)│       │     x     │Update repository with debuginfo for updates from SUSE Linux Ent│
│ 99 (Default)│       │     x     │Update repository with updates for openSUSE Leap debuginfo packa│
│ 99 (Default)│   x   │     x     │Update repository with updates from SUSE Linux Enterprise 15    │
│ 99 (Default)│       │           │openSUSE-Leap-15.6-1                                            │
│ 99 (Default)│   x   │     x     │repo-non-free (15.6)                                            │
│ 99 (Default)│   x   │     x     │repo-non-oss (15.6)                                             │
│ 99 (Default)│       │     x     │repo-non-oss-debug (15.6)                                       │
│ 99 (Default)│   x   │     x     │repo-openh264 (15.6)                                            │
│ 99 (Default)│   x   │     x     │repo-oss (15.6)                                                 │
│ 99 (Default)│       │     x     │repo-oss-debug (15.6)                                           │
│ 99 (Default)│       │     x     │repo-oss-source (15.6)                                          │
│ 99 (Default)│   x   │     x     │update-backports (15.6)                                         │
│ 99 (Default)│       │     x     │update-backports-debug (15.6)                                   │
│ 99 (Default)│   x   │     x     │update-non-oss (15.6)                                           │
│ 99 (Default)│       │     x     │update-non-oss-debug (15.6)                                     │
│ 99 (Default)│   x   │     x     │update-oss (15.6)                                               │
│ 99 (Default)│       │     x     │update-oss-debug (15.6)                                         │
│ 99 (Default)│   x   │     x     │update-sle (15.6)                                               │
│ 99 (Default)│       │     x     │update-sle-debug (15.6)
Other than packman, everything that's listed there was there by default. (I haven't even added the Nvidia repository.)

I'm also a little confused why I'm seeing this:
Code:
# ldd /usr/bin/htop
        linux-vdso.so.1 (0x00007ffdda7b7000)
        libcap.so.2 => /usr/lib64/libcap.so.2 (0x00007f68a9b32000)
        libncursesw.so.6 => /lib64/libncursesw.so.6 (0x00007f68a9af6000)
        libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f68a9ac7000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f68a99db000)
        libnl-3.so.200 => /usr/lib64/libnl-3.so.200 (0x00007f68a9600000)
        libnl-genl-3.so.200 => /usr/lib64/libnl-genl-3.so.200 (0x00007f68a9200000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f68a8e00000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f68a99d8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f68a9bad000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f68a99d5000)
No mention of libncurses.so.5 yet that's what's indicated in the error message I'm getting.

Still looking for an answer...
 
Old 05-18-2024, 02:06 AM   #4
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 205

Rep: Reputation: Disabled
Quote:
Not sure what that'd be. Here's what YaST is telling me:
Post:
Code:
zypper lr d
Because we have to see the important thing of your Repo list, the URL.......
 
Old 05-18-2024, 06:30 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@rnturn, post #1
Quote:
error while loading shared libraries: libncurses.so.5
The package name to install is libncurses5
https://ftp.lysator.liu.se/pub/opens...4.1.x86_64.rpm

Ref. https://ftp.lysator.liu.se/pub/opens...po/oss/x86_64/

-
 
Old 05-18-2024, 08:10 AM   #6
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 205

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
But the point is:
htop is running for me without libncurses5.
Code:
LANG=C htop --version
htop 3.2.2
Also libncurses5 is not installed:
Code:
LANG=C zypper se -s libncurses
Loading repository data...
Reading installed packages...

S | Name              | Type    | Version           | Arch   | Repository
--+-------------------+---------+-------------------+--------+-----------------
  | libncurses5       | package | 6.1-150000.5.24.1 | x86_64 | Haupt-Repository
  | libncurses5-32bit | package | 6.1-150000.5.24.1 | x86_64 | Haupt-Repository
i | libncurses6       | package | 6.1-150000.5.24.1 | x86_64 | Haupt-Repository
  | libncurses6-32bit | package | 6.1-150000.5.24.1 | x86_64 | Haupt-Repository
 
Old 05-18-2024, 11:30 AM   #7
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by mrmazda View Post
<snip>

Smells like you may have an obsolete repo enabled.
Arg! [forehead slap] It's sillier than that. As part of getting 15.6rc up and running, I recently restored the contents of /usr/local from a backup and it picked up an old copy of htop that had been built from sources ages ago and installed in /usr/local/bin/. I removed it -- and fixed a careless tweak to PATH -- and htop runs fine now. I assume that it'll be safe to go ahead and uninstall the libncurses.so.5 library now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: openSUSE Leap 42.3 Linux OS Reached End of Life, Upgrade to openSUSE Leap 15.1 LXer Syndicated Linux News 0 06-30-2019 01:54 AM
Screen locker broken when upgrading Leap 42.3 to Leap 15.0 Crb999 SUSE / openSUSE 6 06-18-2018 01:13 AM
[SOLVED] Problems with upgrading Leap 42.3 to Leap 15.0 Crb999 SUSE / openSUSE 6 06-11-2018 07:04 AM
LXer: openSUSE Leap 42.2 is out, how to upgrade safely from openSUSE Leap 42.1 LXer Syndicated Linux News 0 11-17-2016 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration