Systemctl stopped running -- problem with less/ncurses

systemctl has stopped running with problem below. Reinstalled “less” with no change. Perhaps cause is ncurses version problem. I have only done standard sudo zypper dup updates and nothing special with these packages.

base) tom@mydesktop: ~ $ systemctl --help
less: symbol lookup error: less: undefined symbol: _nc_cur_term, version NCURSES6_TINFO_5.7.20081102
(base) tom@mydesktop: ~ $ 


I think problem is that systemctl might need sudo but I do think it used to run as user. Perhaps my query is in error. But, usually different messages show when a process needs sudo.

thanks, tom kosvic

Try this argument to see the results (notice I execute as regular user):

user@machine :~> systemctl  is-system-running
running
user@machine :~>

Post:

zypper lr -d

This looks like a messed up system. The ncurses packages on TW have at least 6.6.20260418

See below:

(base) tom@mydesktop: ~ $ systemctl  is-system-running
degraded
(base) tom@mydesktop: ~ $ sudo zypper lr -d
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
#  | Alias                           | Name                    | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                                            | Service
---+---------------------------------+-------------------------+---------+-----------+---------+------+----------+--------+--------------------------------------------------------------------------------+---------
 1 | NVIDIA:repo-non-free            | repo-non-free           | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed                                | NVIDIA
 2 | brave                           | brave                   | Yes     | (r ) Yes  | Yes     | -    |   95     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64                          | 
 3 | download.nvidia.com-tumbleweed  | nVidia Graphics Drivers | Yes     | (r ) Yes  | Yes     | -    |   90     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed                                | 
 4 | electronics                     | electronics             | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/electronics/openSUSE_Tumbleweed/    | 
 5 | ftp.gwdg.de-openSUSE_Tumbleweed | Packman Repository      | No      | ----      | ----    | -    |   90     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/            | 
 6 | games                           | games                   | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/        | 
 7 | graphics                        | graphics                | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/graphics/openSUSE_Tumbleweed/       | 
 8 | openSUSE:repo-non-oss           | repo-non-oss            | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/non-oss                                | openSUSE
 9 | openSUSE:repo-openh264          | repo-openh264           | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://codecs.opensuse.org/openh264/openSUSE_Tumbleweed                       | openSUSE
10 | openSUSE:repo-oss               | repo-oss                | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/oss                                    | openSUSE
11 | openSUSE:repo-oss-debug         | repo-oss-debug          | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/debug/tumbleweed/repo/oss                              | openSUSE
12 | openSUSE:repo-oss-source        | repo-oss-source         | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/source/tumbleweed/repo/oss                             | openSUSE
13 | openSUSE:update-tumbleweed      | update-tumbleweed       | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/update/tumbleweed                                      | openSUSE
14 | packman-essentials-repo         | Packman Essentials      | Yes     | (r ) Yes  | Yes     | -    |   81     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials | 
15 | science                         | science                 | No      | ----      | ----    | -    |   99     | rpm-md | https://download.opensuse.org/repositories/science/openSUSE_Tumbleweed/        | 
16 | vivaldi                         | vivaldi                 | Yes     | (r ) Yes  | Yes     | -    |   95     | rpm-md | https://repo.vivaldi.com/archive/rpm/x86_64                                    | 
(base) tom@mydesktop: ~ $ 

myrlyn says libncurses is version 6.6 installed. Nothing is installed related to ncurses with v 5.7

You can run this to see what sub-system(s) had problems (it’s why “degraded” was a result) :

user@machine :~> systemctl --failed

@tckosvic install libncurses5

purevpn is my vpn service for a long time. I have no knowledge of rlmsrvssq

(base) tom@mydesktop: ~ $ sudo systemctl  --failed
  UNIT              LOAD   ACTIVE SUB    DESCRIPTION    
● pured.service     loaded failed failed purevpn-deamon
● rlmsrvssq.service loaded failed failed SSQ RLM Service

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

2 loaded units listed.
(base) tom@mydesktop: ~ $

Repos 15 and Repo 6 are the same, see the URL.

Repo 1 and Repo 3 are the same.

You can delete one of them…

libncurses5 was not installed. After install there was no change. Note: szi is alias for sudo zypper install.

(base) tom@mydesktop: ~ $ szi libncurses5
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
'libncurses5' is already installed.
No update candidate for 'libncurses5-6.6.20260418-103.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.


(base) tom@mydesktop: ~ $ systemctl --user status pulseaudio
less: symbol lookup error: less: undefined symbol: _nc_cur_term, version NCURSES6_TINFO_5.7.20081102
(base) tom@mydesktop: ~ $ 

Can you also show
rpm -qi less

I found cause. I have “anaconda” python installed. Anaconda uses ncurses is in the path ahead of system. systemctl was using ncurses from anaconda; not system ncurses.

I deactivated anaconda and it worked as below w/o errors. That was a bazaar one.

Example is below.

tom@mydesktop: ~ $ systemctl --user status pulseaudio
○ pulseaudio.service
     Loaded: masked (Reason: Unit pulseaudio.service is masked.)
     Active: inactive (dead)
TriggeredBy: ○ pulseaudio.socket
tom@mydesktop: ~ $ 
1 Like

I started a search for ncurses and specifically v5.7 using locate. The search pointed to anaconda directories. That led to test of deactivating anaconda.

tom kosvic

1 Like