yast ncurses fails to start

Yast in Gnome works perfectly fine, but when I try to launch ncurses yast it fails as follows:

/sbin/yast2: line 450:  5139 Aborted                 (core dumped) $ybindir/y2start $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

(The above output all appears on one line.)

I get the same result whether it’s from the Gnome terminal or a tty.

I’ve exercised my Google fu but after a few hours, I can’t crack it.
Some 2+ yr old threads suggest that the problem may be related to ruby, or some yast binding files. yast2-ycp-ui-bindings ??
Using the yast GUI I downgraded a couple of these which I found when searching for yast, but it hasn’t appeared to help.

I found this page https://support.microfocus.com/kb/doc.php?id=7006751 which suggested tracing the issue with “sh -x yast” which gave me this output:

/sbin/yast: line 450:  4564 Aborted                 (core dumped) $ybindir/y2start $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
                                                                                                                                       + exit_code=134
                                                                                                                                                      + '' -z /var/lib/YaST2/restart_menu -o '!' -f /var/lib/YaST2/restart_menu ']'
                 + break
                        + snapshot_post menu
                                            + '' menu '!=' menu -a menu '!=' migration ']'
                                                                                           + '' -f /var/lib/YaST2/reboot ']'
                                                                                                                             + '' 0 = 0 ']'
                                                                                                                                            + rm -f /var/run/yast.pid
                                                                                                                                                                     + exit 134

Any suggestions of how to sort this out?
Can the core dump file help?

If you want to launch the graphical YaST, then from an elevated console (su, su -, or you can prepend “sudo”)

yast2

And, if you want to launch ncurses (text) YaST, then

yast

In other words, remove that “2” from yast…
And, of course if you’re in a non-graphical environment, you can’t launch graphical YaST (yast2) which looks to be tje cause of your errors…

TSU

I’m running it correctly…
From within Gnome terminal yast2 launches the YaST GUI perfectly, but yast gives the output in the OP.
I’m familiar with using yast (ncurses) for years, but this is the first time I’ve seen this issue.

  • Gordon

To make is clear, I type this in Gnome terminal:

# yast

then the terminal clears and simple displays this, in the staggered manner shown:

/sbin/yast: line 450: 22352 Aborted                 (core dumped) $ybindir/y2start $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
                                                                                                                                       s1:~ #

the Gnome terminal now shows no input if I type, the characters are invisible, but pressing does respond correctly to ls for instance. A tty gives the same result. I regularly work in the terminal, and all other aspects of my PC appear to work perfectly fine.

  • Gordon

Pls post output when you invoke yast and include a description what console environment it’s run, Your posts only describe invoking yast2 which won’t work for instance in an init3 tty.

TSU

You may have just missed my previous post by a couple of minutes. :smile: But this time I have tested as suggested and dropped to runlevel 3 and I still get the same results. As they say, a picture is worth a thousand words. Here is the outcome…

Switch to runlevel 3 and run yast:
https://drive.google.com/file/d/1cR0tLMb2LZhKd065yTBQsiAI8tJNr02G/view?usp=sharing

Error:
https://drive.google.com/file/d/1dMdlPnw7WPNcnbOOXRDyJcxf0I3gFtmz/view?usp=sharingNotice how the command prompt is now not anchored to the left…

The terminal session is now messed up, with the command prompt drifting across as if the EOL char doesn’t function.
Output after typing additional commands (marked in red). The actual commands don’t appear on the screen anymore, just the output. The only way I can recover is to exit the root session back to my user login.
https://drive.google.com/file/d/18JAYN8QWVNby0Vj7pPP2PEuoFv2MNubF/view?usp=sharing

Pretty weird isn’t it.

  • Gordon

I even tried to force ncurses with

# yast --ncurses

but still the issue persists.

Please post:

zypper se -si libyui
zypper lr -d
zypper -se libyui

zypper ls -d

You anticipated merotfl!

zypper -se libyui
Unknown command 'libyui'

see my last post…

I must have been wrong to copy / paste … the command has a dash that does not have to be

zypper se libyui

On Sat 09 Mar 2019 03:36:03 AM CST, gordon mzano wrote:

Yast in Gnome works perfectly fine, but when I try to launch ncurses
yast it fails as follows:

Code:

/sbin/yast2: line 450: 5139 Aborted (core dumped)
$ybindir/y2start $module “$@” “$SELECTED_GUI” $Y2_GEOMETRY $Y2UI_ARGS

(The above output all appears on one line.)

I get the same result whether it’s from the Gnome terminal or a tty.

I’ve exercised my Google fu but after a few hours, I can’t crack it.
Some 2+ yr old threads suggest that the problem may be related to ruby,
or some yast binding files. yast2-ycp-ui-bindings ??
Using the yast GUI I downgraded a couple of these which I found when
searching for yast, but it hasn’t appeared to help.

I found this page YaST2 fails to start, not able to locate ncurses / qt libraries
which suggested tracing the issue with “sh -x yast” which gave me this
output:

Code:

/sbin/yast: line 450: 4564 Aborted (core dumped)
$ybindir/y2start $module “$@” “$SELECTED_GUI” $Y2_GEOMETRY $Y2UI_ARGS

  • exit_code=134
  • ‘’ -z /var/lib/YaST2/restart_menu -o ‘!’
    -f /var/lib/YaST2/restart_menu ‘]’
  • break
  • snapshot_post menu
  • ‘’ menu ‘!=’ menu -a menu ‘!=’ migration ‘]’
  • ‘’ -f /var/lib/YaST2/reboot ‘]’
  • ‘’ 0 = 0 ‘]’
  • rm -f /var/run/yast.pid
  • exit 134

Any suggestions of how to sort this out?
Can the core dump file help?

Hi
So the system is all up to date?

Also check there are no missing patches;


zypper -f ref
zypper up -t patch

zypper se -i libyui

S | Name                |
Summary                                                   | Type
--+---------------------+-----------------------------------------------------------+--------
i | libyui-ncurses-pkg7 | Libyui - yast2 package selector widget for the ncurses UI | package
i | libyui-ncurses7     | Libyui - Character Based User Interface                   | package
i | libyui7             | Libyui - GUI-abstraction library                          | package


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.28-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

An up to date libyui may be important.
Also, note that you cannot specify $DISPLAY for a non-graphical environment, the following is the Project page lfor libyui

https://github.com/libyui/libyui

Am also curious whether your problem happens for YaST modules, and not only YaST,
Try this…
Don’t run in runlevel 3, run the following in 2 windowed consoles…

Console 1
Read your system log in real time

journalctl -f

Console 2
With Console 1 open and running,
Run the following which opens the Network Settings YaST module in ncurses mode

yast lan

If the Network Settings module opens without error, that’s telling…
If an error is thrown, hopefully it will throw and error displayed in the system log (Console 1)

Hopefully. you’ll see something meaningful.
Post the results if you’re not sure what you’re seeing.

TSU

As requested…# zypper se -si libyui
Loading repository data…
Reading installed packages…

S | Name | Type | Version | Arch | Repository
—±---------------------±--------±----------------±-------±----------------------
i+ | libyui-devel | package | 3.2.9-3.4 | x86_64 | Main Repository (OSS)
i+ | libyui-ncurses-devel | package | 2.48.2-1.1 | x86_64 | Main Repository (OSS)
i+ | libyui-ncurses-pkg7 | package | 2.48.4-4.4 | x86_64 | Main Repository (OSS)
i+ | libyui-ncurses7 | package | 2.48.2-1.1 | x86_64 | Main Repository (OSS)
i+ | libyui-qt-graph7 | package | 2.44.5-4.4 | x86_64 | Main Repository (OSS)
i+ | libyui-qt-pkg7 | package | 2.45.13.1-2.3.1 | x86_64 | Main Update Repository
i+ | libyui-qt7 | package | 2.47.1.1-2.3.1 | x86_64 | Main Update Repository
i+ | libyui7 | package | 3.2.9-3.4 | x86_64 | Main Repository (OSS)

and…

 # zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                               | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                             | Service
---+-------------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
 1 | AdobeFlash                          | AdobeFlash                              | No      | ----      | ----    |   99     | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/                                                    |        
 2 | KDEapps                             | KDEapps                                 | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_42.3/ |        
 3 | KDEextra                            | KDEextra                                | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.3/                        |        
 4 | Mozilla                             | Mozilla                                 | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_Leap_42.3/                           |        
 5 | download.opensuse.org-non-oss       | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/                               |        
 6 | download.opensuse.org-non-oss_1     | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/                                          |        
 7 | download.opensuse.org-oss           | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/                                   |        
 8 | download.opensuse.org-oss_1         | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss                                               |        
 9 | google-chrome                       | google-chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                                             |        
10 | http-download.opensuse.org-22a8969a | X11:Pantheon:Apps                       | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Pantheon:/Apps/openSUSE_Leap_42.3/               |        
11 | http-download.opensuse.org-3295cd5c | X11:Pantheon                            | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Pantheon/openSUSE_Tumbleweed/                    |        
12 | http-download.opensuse.org-602c2c16 | home:kfreitag (Borgbackup or veracrypt) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/home:/kfreitag/openSUSE_Leap_42.3/                    |        
13 | http-download.opensuse.org-ad514924 | openSUSE:Leap:15.0                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/                                   |        
14 | http-download.opensuse.org-b39cced1 | home:jayvdb:toggl                       | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/home:/jayvdb:/toggl/openSUSE_Leap_42.3/               |        
15 | http-download.opensuse.org-b6f11037 | openSUSE:Tumbleweed                     | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/                        |        
16 | openSUSE-42.3-0                     | openSUSE-42.3-0                         | No      | ----      | ----    |   99     | yast2  | hd:///?device=/dev/disk/by-id/usb-_USB_DISK_2.0_070B4B61A5A99E71-0:0-part2                      |        
17 | opensuse-guide.org-repo             | Libdvdcss Repository                    | No      | ----      | ----    |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.3/                                              |        
18 | packman.inode.at-suse               | Packman Repository                      | No      | ----      | ----    |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.3/                                                |        
19 | repo-debug                          | openSUSE-Leap-42.3-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.3/repo/oss/                             |        
20 | repo-debug-non-oss                  | openSUSE-Leap-42.3-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.3/repo/non-oss/                         |        
21 | repo-debug-update                   | openSUSE-Leap-42.3-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.3/oss/                                        |        
22 | repo-debug-update-non-oss           | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.3/non-oss/                                    |        
23 | repo-source                         | openSUSE-Leap-42.3-Source               | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/oss/                            |        
24 | repo-source-non-oss                 | openSUSE-Leap-42.3-Source-Non-Oss       | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/non-oss/



[FONT=arial]
Just prior to obtaining the above repo list I disabled some repos that I thought could be part of the issue. Maybe for this exercise I should have left then as they were…
[/FONT]

[QUOTE=Sauerland;2896543]Please post:

zypper se -si libyui

The -si switch got me reading, and I thought it might be a way to fix the issue so I ran this:

s1:~ # zypper si libyui
Reading installed packages...
Loading repository data...
Resolving package dependencies...

The following 5 NEW packages are going to be installed:
  cmake gcc-c++ gcc48-c++ make site-config

The following source package is going to be installed:
  libyui

5 new packages to install, 1 source package.
Overall download size: 10.4 MiB. Already cached: 0 B. After the operation, additional 38.1 MiB will be used.
Continue? [y/n/...? shows all options] (y): 
l

I proceeded with the above and all completed OK, but the issue persists.

I read fuirther this from a Google search SUSE Documentation

Source packages can be copied from the installation medium to the hard disk and unpacked with YaST. They are not, however, marked as installed () in the package manager. This is because the source packages are not entered in the RPM database. Only installed operating system software is listed in the RPM database. When you install a source package, only the source code is added to the system
](SUSE Documentation)
This is a side question: If “only the source code is added to the system” what is the point of using si?

There weren’t many outstanding patches and updates, so I installed them all.

# zypper lu
Loading repository data...
Reading installed packages...
S | Repository             | Name                 | Current Version                        | Available Version                      | Arch  
--+------------------------+----------------------+----------------------------------------+----------------------------------------+-------
v | Main Update Repository | apache2              | 2.4.23-34.1                            | 2.4.23-37.1                            | x86_64
v | Main Update Repository | apache2-prefork      | 2.4.23-34.1                            | 2.4.23-37.1                            | x86_64
v | Main Update Repository | apache2-utils        | 2.4.23-34.1                            | 2.4.23-37.1                            | x86_64
v | google-chrome          | google-chrome-stable | 69.0.3497.92-1                         | 72.0.3626.121-1                        | x86_64
v | Main Update Repository | libapr-util1         | 1.5.3-8.1                              | 1.5.3-11.1                             | x86_64
v | Main Update Repository | libatomic1           | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libgcc_s1            | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libgcc_s1-32bit      | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libgomp1             | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libitm1              | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libquadmath0         | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | librados2            | 12.2.10+git.1544718327.fc6f0c7299-18.1 | 12.2.10+git.1549630712.bb089269ea-21.1 | x86_64
v | Main Update Repository | librbd1              | 12.2.10+git.1544718327.fc6f0c7299-18.1 | 12.2.10+git.1549630712.bb089269ea-21.1 | x86_64
v | Main Update Repository | libstdc++6           | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libstdc++6-32bit     | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libtsan0             | 7.3.1+r258812-10.1                     | 8.2.1+r264010-2.3                      | x86_64
v | Main Update Repository | libyui-ncurses-pkg7  | 2.48.4-4.4                             | 2.48.4.1-5.3.1                         | x86_64
v | Main Update Repository | yast2-ruby-bindings  | 3.2.14-1.1                             | 3.2.15-3.1                             | x86_64
# zypper lp
Loading repository data...
Reading installed packages...

Repository             | Name               | Category    | Severity  | Interactive | Status   | Summary                            
-----------------------+--------------------+-------------+-----------+-------------+----------+------------------------------------
Main Update Repository | openSUSE-2018-1328 | optional    | low       | ---         | optional | Optional update to add gcc8        
Main Update Repository | openSUSE-2019-305  | security    | moderate  | ---         | needed   | Security update for apache2        
Main Update Repository | openSUSE-2019-306  | security    | important | ---         | needed   | Security update for ceph           
Main Update Repository | openSUSE-2019-320  | recommended | moderate  | ---         | needed   | Recommended update for libapr-util1

zypper lp; zypper lu

now lists nothing

Tested again and the problem is still there.

As requested:

# zypper se -i libyui

S  | Name                 | Summary                                                   | Type   
---+----------------------+-----------------------------------------------------------+--------
i+ | libyui-devel         | Libyui header files                                       | package
i+ | libyui-ncurses-devel | Libyui-ncurses header files                               | package
i+ | libyui-ncurses-pkg7  | Libyui - yast2 package selector widget for the ncurses UI | package
i+ | libyui-ncurses7      | Libyui - Character Based User Interface                   | package
i+ | libyui-qt-graph7     | Libyui - Qt Graph Widget                                  | package
i+ | libyui-qt-pkg7       | Libyui - Qt Package Selector                              | package
i+ | libyui-qt7           | Libyui - Qt User Interface                                | package
i+ | libyui7              | Libyui - GUI-abstraction library                          | package


Given that I am using Gnome ATM, the Qt packages shouldn’t be needed right? Or won’t they matter at all?

  • Gordon

I checked out this site, but couldn’t find anything obvious to pursue. So I made a couple of env variable checks in case they are relevant:

s1:~ # echo $DISPLAY
:0
s1:~ # echo $XDG_CURRENT_DESKTOP

s1:~ #

Console 2 gave:

/sbin/yast: line 450:  3984 Aborted                 (core dumped) $ybindir/y2start $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
                                                       s1:~ # 

Relevant output in the journal was:

Mar 10 14:16:56 s1 dbus[1423]: [system] Activating service name='org.opensuse.Snapper' (using servicehelper)
Mar 10 14:16:56 s1 dbus[1423]: [system] Successfully activated service 'org.opensuse.Snapper'

Mar 10 14:17:29 s1 systemd-coredump[4048]: Process 3984 (y2start) of user 0 dumped core.

Nothing to write home about here… snapper is expected.

Time to roll up the sleeves I think :slight_smile:

  • Gordon

No I’m starting to delve into murky areas of my knowledge!

To try to extract some quick and dirty info from the core dump that yast created

strings core.y2start.0.c55fd1e72fc140ae85bfd180f4f3dd0d.3984.1552198618000000 | head -40
CORE
CORE
y2start
/usr/bin/ruby /usr/lib/YaST2/bin/y2start lan ncurses -name YaST2 -icon yast 
IGISCORE
CORE
ELIFCORE
/usr/bin/ruby
/usr/bin/ruby
/usr/bin/ruby
/usr/lib64/YaST2/plugin/libpy2StorageCallbacks.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2StorageCallbacks.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2StorageCallbacks.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2StorageCallbacks.so.2.0.0
/usr/lib64/ruby/2.1.0/x86_64-linux-gnu/etc.so
/usr/lib64/ruby/2.1.0/x86_64-linux-gnu/etc.so
/usr/lib64/ruby/2.1.0/x86_64-linux-gnu/etc.so
/usr/lib64/ruby/2.1.0/x86_64-linux-gnu/etc.so
/usr/lib64/YaST2/plugin/libpy2ag_ini.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_ini.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_ini.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_ini.so.2.0.0
/SYSV00000000 (deleted)
/usr/lib64/libx86emu.so.1.11
/usr/lib64/libx86emu.so.1.11
/usr/lib64/libx86emu.so.1.11
/usr/lib64/libx86emu.so.1.11
/usr/lib64/libhd.so.21.63
/usr/lib64/libhd.so.21.63
/usr/lib64/libhd.so.21.63
/usr/lib64/libhd.so.21.63
/usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2.0.0
/usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2.0.0
/usr/lib64/libstorage.so.7.0.0
/usr/lib64/libstorage.so.7.0.0
/usr/lib64/libstorage.so.7.0.0
/usr/lib64/libstorage.so.7.0.0
/usr/lib64/ruby/vendor_ruby/2.1.0/x86_64-linux-gnu/storage.so

What do the brains trust think of the above? I’m clean out of ideas.

Cheers, Gordon

Post:

zypper se -sir 13

and

zypper se -sir 11

Afterposting the both commands (important), I would delete these Repos:

11 | http-download.opensuse.org-3295cd5c | X11:Pantheon                            | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/reposit...SE_Tumbleweed/ 
13 | http-download.opensuse.org-ad514924 | openSUSE:Leap:15.0                      | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/distrib...15.0/repo/oss/

They are Tumbleweed and Leap 15.0 Repos.

Try as root:

zypper up

After you have done so much, post:

zypper se -si libyui

PS:
zypper si NAME means to install the source package of NAME (NAME.src.rpm), not the packege NAME.rpm. With the src.rpm you can change the sources and build a new package NAME. But you do not need it.
zypper se -si NAME or zypper se -s -i NAME means zypper search (se) for all installed (-i) packages which are named NAME and than show more details (-s).