Yast "Software Management" crashing

Greetings!

For some time now i have problem with “Software Management” in Yast. Most of the time it just crash just after updating repo information and its suppose to show me the search window. On rare occasion it happend to work. Lately it, it just always crash. Below is the end result of running “yast2 sw_single” as root in konsole.

https://scontent.fsof3-1.fna.fbcdn.net/v/t1.0-9/30712613_1674123912622837_3770411219173769216_n.jpg?_nc_cat=0&oh=5bddbb09e62b076c90ae090d147a45f9&oe=5B5589A2

could you tell us your repo list

zypper lr -d

edit
you should post all terminal messages as text within the

 tags you can copy text in konsole with a right click or by selecting text and using the ctrl+ins keyboard buttons for copy

Please check the output of:

  • “zypper verify --details”
  • “rpm --verify --all”

The “rpm verify” tends to output a large amount of information which need to be inspected and considered for correction.

  • Please note the following related information from the “rpm” man pages:
   The format of the output is a string of 9 characters, a possible attribute marker:
   c %config configuration file.
   d %doc documentation file.
   g %ghost file (i.e. the file contents are not included in the package payload).
   l %license license file.
   r %readme readme file.
   from the package header, followed by the file name.  Each of the 9 characters denotes the result of a compari-
   son  of  attribute(s)  of  the file to the value of those attribute(s) recorded in the database.  A single "."
   (period) means the test passed, while a single "?" (question mark) indicates the test could not  be  performed
   (e.g. file permissions prevent reading). Otherwise, the (mnemonically emBoldened) character denotes failure of
   the corresponding --verify test:
   S file Size differs
   M Mode differs (includes permissions and file type)
   5 digest (formerly MD5 sum) differs
   D Device major/minor number mismatch
   L readLink(2) path mismatch
   U User ownership differs
   G Group ownership differs
   T mTime differs
   P caPabilities differ

You may have to execute “rpm --rebuilddb” to ensure that the RPM database is not corrupted.
[HR][/HR]Once the above checks have been completed, forcibly re-install all the YaST and Ruby packages on the system.

Some addition to what the others have already writen: also make sure that there is no corruption in the zypper cache, by running

sudo zypper clean && sudo zypper ref

repos:


#  | Alias                           | Name                                    | Enabled | GPG Check
 | Refresh | Priority | Type   | URI                                                                
      | Service
---+---------------------------------+-----------------------------------------+---------+----------
-+---------+----------+--------+--------------------------------------------------------------------
------+--------
 1 | Google_Repository               | Google Repository                       | Yes     | (r ) Yes 
 | Yes     |   99     | rpm-md | http://dl.google.com/linux/rpm/stable/x86_64                       
      |         
 2 | OpenSUSE_Education              | OpenSUSE Education                      | Yes     | (r ) Yes 
 | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Education/openSUSE_Leap_4
2.3/  |         
 3 | Packman                         | Packman                                 | Yes     | (r ) Yes 
 | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.3/ 
      |         
 4 | VirtualBox                      | VirtualBox                              | Yes     | ( p) Yes 
 | Yes     |   99     | rpm-md | http://download.virtualbox.org/virtualbox/rpm/opensuse/42.1/       
      |         
 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 Repository (Sources)               | No      | ----
 | ----    |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/oss
/     |         
 9 | download.opensuse.org-oss_2     | Main Update Repository                  | Yes     | (r ) Yes 
 | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss                  
      |         
10 | repo-debug                      | openSUSE-Leap-42.3-Debug                | No      | ----
 | ----    |   99     | yast2  | http://download.opensuse.org/debug/distribution/leap/42.3/repo/oss/
      |         
11 | repo-debug-non-oss              | openSUSE-Leap-42.3-Debug-Non-Oss        | No      | ----
 | ----    |   99     | yast2  | http://download.opensuse.org/debug/distribution/leap/42.3/repo/non-
oss/  |         
12 | repo-debug-update               | openSUSE-Leap-42.3-Update-Debug         | No      | ----
 | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/42.3/oss/           
      |         
13 | repo-debug-update-non-oss       | openSUSE-Leap-42.3-Update-Debug-Non-Oss | No      | ----
 | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/42.3/non-oss/       
      |         
14 | repo-source-non-oss             | openSUSE-Leap-42.3-Source-Non-Oss       | No      | ----
 | ----    |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/non
-oss/ |    


dependencies


georgi@linux-f0hw:~> zypper verify --details
Loading repository data...
Reading installed packages...

Dependencies of all installed packages are satisfied.



georgi@linux-f0hw:~> sudo rpm --verify --all
.......T.  c /etc/YaST2/control.xml
missing     /var/log/audit
missing     /var/spool/audit
missing     /var/spool/cron
missing     /var/spool/cron/lastrun
missing     /var/spool/cron/tabs
S.5....T.  c /etc/systemd/journald.conf
missing     /var/log/dirmngr
S.5....T.  c /etc/sysconfig/SuSEfirewall2
missing     /srv/www/cgi-bin/info2html
missing   c /srv/www/cgi-bin/info2html.conf
missing     /srv/www/cgi-bin/infocat
missing     /srv/www/htdocs/gif
missing     /srv/www/htdocs/gif/l_arrow.gif
missing     /srv/www/htdocs/gif/r-ball.gif
missing     /srv/www/htdocs/gif/r_arrow.gif
missing     /srv/www/htdocs/gif/r_hand.gif
missing     /srv/www/htdocs/gif/u_arrow.gif
missing   c /srv/www/htdocs/info2html.css
....L....    /usr/lib64/browser-plugins/javaplugin.so
missing   c /etc/apparmor.d/tunables/home
missing     /srv/ftp
missing     /srv/www
missing     /srv/www/cgi-bin
missing     /srv/www/htdocs
missing     /usr/local/bin
missing     /usr/local/games
missing     /usr/local/include
missing     /usr/local/lib
missing     /usr/local/lib64
missing     /usr/local/man
missing     /usr/local/man/man1
missing     /usr/local/man/man2
missing     /usr/local/man/man3
missing     /usr/local/man/man4
missing     /usr/local/man/man5
missing     /usr/local/man/man6
missing     /usr/local/man/man7
missing     /usr/local/man/man8
missing     /usr/local/man/man9
missing     /usr/local/man/mann
missing     /usr/local/sbin
missing     /usr/local/share
missing     /usr/local/src
missing     /var/spool/clientmqueue
missing     /var/spool/locks
missing     /var/spool/lpd
missing     /var/spool/mail
missing     /var/spool/uucp
missing     /var/spool/uucp/uucp
.M.......    /var/lib/PackageKit/transactions.db
....L....    /usr/share/YaST2/theme/current/icons
S.5....T.  c /etc/xinetd.d/vnc
.....U...    /var/cache/cups
.....U...    /var/log/cups
missing     /var/log/krb5
S.5....T.  c /etc/pulse/client.conf
missing     /var/log/samba
S.5....T.  c /etc/default/grub
S.5....T.  c /etc/postfix/main.cf
S.5....T.  c /etc/postfix/master.cf
missing     /var/spool/postfix
missing     /var/spool/postfix/active
missing     /var/spool/postfix/bounce
missing     /var/spool/postfix/corrupt
missing     /var/spool/postfix/defer
missing     /var/spool/postfix/deferred
missing     /var/spool/postfix/flush
missing     /var/spool/postfix/hold
missing     /var/spool/postfix/incoming
missing     /var/spool/postfix/maildrop
missing     /var/spool/postfix/private
missing     /var/spool/postfix/public
missing     /var/spool/postfix/saved
missing     /var/spool/postfix/trace
missing     /var/cache/libx11/compose/l4_030_313cb605_00280cc0
S.5....T.  c /etc/ntp.conf
SM5....T.  c /etc/fonts/conf.d/30-metric-aliases.conf
missing     /var/spool/atjobs
missing     /var/spool/atjobs/.SEQ
missing     /var/spool/atspool
S.5....T.  c /etc/fonts/conf.d/10-rendering-options.conf
S.5....T.  c /etc/fonts/conf.d/58-family-prefer-local.conf
.......T.    /usr/lib64/gconv/gconv-modules.cache
missing     /var/log/mysql
....L....    /usr/lib64/browser-plugins/javaplugin.so
S.5....T.  c /etc/sddm.conf
missing     /srv/tftpboot
....L....    /usr/lib64/libpng15.so.15
S.5....T.  c /etc/pulse/daemon.conf
..5....T.    /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
missing     /var/log/sa
....L....  c /etc/pam.d/common-account
....L....  c /etc/pam.d/common-auth
....L....  c /etc/pam.d/common-password
....L....  c /etc/pam.d/common-session
missing     /srv/www/cgi-bin/htsearch
missing     /srv/www/cgi-bin/qtest
missing     /srv/www/htdig
missing     /srv/www/htdig/common
missing     /srv/www/htdig/common/bad_words
missing     /srv/www/htdig/common/english.0
missing     /srv/www/htdig/common/english.aff
missing     /srv/www/htdig/common/footer.html
missing     /srv/www/htdig/common/header.html
missing     /srv/www/htdig/common/long.html
missing     /srv/www/htdig/common/nomatch.html
missing     /srv/www/htdig/common/short.html
missing     /srv/www/htdig/common/synonyms
missing     /srv/www/htdig/common/syntax.html
missing     /srv/www/htdig/common/wrapper.html
missing     /srv/www/htdig/images
missing     /srv/www/htdig/images/button1.gif
missing     /srv/www/htdig/images/button1.png
missing     /srv/www/htdig/images/button10.gif
missing     /srv/www/htdig/images/button10.png
missing     /srv/www/htdig/images/button2.gif
missing     /srv/www/htdig/images/button2.png
missing     /srv/www/htdig/images/button3.gif
missing     /srv/www/htdig/images/button3.png
missing     /srv/www/htdig/images/button4.gif
missing     /srv/www/htdig/images/button4.png
missing     /srv/www/htdig/images/button5.gif
missing     /srv/www/htdig/images/button5.png
missing     /srv/www/htdig/images/button6.gif
missing     /srv/www/htdig/images/button6.png
missing     /srv/www/htdig/images/button7.gif
missing     /srv/www/htdig/images/button7.png
missing     /srv/www/htdig/images/button8.gif
missing     /srv/www/htdig/images/button8.png
missing     /srv/www/htdig/images/button9.gif
missing     /srv/www/htdig/images/button9.png
missing     /srv/www/htdig/images/buttonl.gif
missing     /srv/www/htdig/images/buttonl.png
missing     /srv/www/htdig/images/buttonr.gif
missing     /srv/www/htdig/images/buttonr.png
missing     /srv/www/htdig/images/htdig.gif
missing     /srv/www/htdig/images/htdig.png
missing     /srv/www/htdig/images/star.gif
missing     /srv/www/htdig/images/star.png
missing     /srv/www/htdig/images/star_blank.gif
missing     /srv/www/htdig/images/star_blank.png
missing     /srv/www/htdig/search.html
S.5....T.  c /etc/xdg/kickoffrc
S.5....T.  c /etc/plymouth/plymouthd.conf
missing     /var/spool/plymouth
missing     /var/log/apparmor
missing     /var/log/tuned
S.5....T.  c /etc/zypp/zypp.conf
missing     /var/log/hp
missing     /var/log/hp/tmp
missing     /var/log/README
S.5....T.  c /etc/X11/xorg.conf.d/50-device.conf
....L....  d /usr/share/man/man1/ftp.1.gz


Deleted all virtual box messages - list is getting too long and all files about it were tagged as (replaced)

I also did “rpm --rebuilddb”, “sudo zypper clean” and “sudo zypper ref” but “Software Managment” behavior remains the same.

You have one bad repo

http://download.virtualbox.org/virtualbox/rpm/opensuse/42.1/

Don’t know if there is any ruby dependency there but all version numbers must match

Note the ruby version must match the version used in Yast.

Try

 zypper in libyui-qt8 libyui-qt-graph8 libyui-qt-pkg8

Thats the official Virtualbox Repo for openSUSE Leap 42.x:

Users of openSUSE can add the proper repo file for 11.4/12.1/12.2, 12.3, 13.1 or 13.2 / 42 to /etc/zypp/repos.d/.

https://www.virtualbox.org/wiki/Linux_Downloads

What I noticed is - it does crash in GUI, it does crash when run in konsole as root, but it doesnt crash when running same command in konsole “yast2 sw_single” but with sudo infront - it ends up in some dos like interface. Might be all GUI related problem?!

@OP,

When you post an error (or stdout), you need to post the <entire> log or output, you’ve only posted the end.
And, ideally you should also include the command you ran to generate the error.
That’s hardly enough to understand what happened.

If the error log or stdout is too large to post, then post at some pastebin and provide a link to it.

And yes, the virtualbox repo is correct… It’s one of those idiosyncrasies to know that VBox uses the “42.1” repo to support all current openSUSE.

TSU

sudo should not be used to run GUI applications in the past this wasn’t possible at all, something changed security vise in LEAP
if you want to run yast from a terminal as root do not use sudo but use kdesu or gnomesu depending on your desktop or xdg-su -c which is the default and works on all desktops
try

xdg-su -c yast2

and see what happens, if you have issues with xdg-su try

man xdg-su

Nothing has changed in this regard.
That’s why yast2 starts in text mode (“in some dos like interface” as the OP described it) if you run it with sudo… :wink:

if you want to run yast from a terminal as root do not use sudo but use kdesu or gnomesu depending on your desktop or xdg-su -c which is the default and works on all desktops
try

xdg-su -c yast2

and see what happens

Or use “su -” to switch to root and then run “yast2”, that’s what xdg-su does as fallback if it doesn’t recognize the desktop environment.

version 8 of those libs are missing and can’t be found. Version 7 is found but already installed

It says there is DBUS problem. Providing picture since command was run on my one week older copy of the system on another drive.

https://drive.google.com/open?id=1qW1p-R-c4xl1QeXn-Gw-P2FWhzVRW_75https://drive.google.com/open?id=1qW1p-R-c4xl1QeXn-Gw-P2FWhzVRW_75

So, as a regular user at a command prompt, you typed in “xdg-su -c yast2” without the quotes? Just to be sure, you didn’t become root (su) and then typed in the previous?

Sure he tried to run xdg-su as root, that caused the DBUS error.

To be clear:
You should either run xdg-su -c “yast2 sw_single” as user, or use “su -” to switch to root and then just run “yast2 sw_single” (or just “yast2” in either case)

And yes, Leap 42.3 has version 7 of the mentioned libraries. Version 8 only exists in Tumbleweed and Leap 15.

I remembered a post where Yast was not working, and I made a copy paste of the command without checking the version, I apologize

I did run xsg-su … without root and it crashes without a message just as before on same place.

Edit: its above on same picture I provided

Yes, that’s why I suggested to use “su -” to switch to root and then run “yast2”, you’d hopefully get a message then.

Alternatively, provide the file /var/log/YaST2/y2log, that should contain information about the crash.

So, when i do “su -” and log in as root then run “yast2 sw_single” it does actually starts and works (it doesnt crash). However if i open it in any other way, it does crash every time.

Below is link to y2log. I did delete the whole log then run Software Manager and see it crash and extract everything written to the log.

https://drive.google.com/open?id=1SL7O2hHleZwGSblq5YlXSLmU4xjQmuxO

You mean it works when you login as root into a graphical session, or does it work if you run “su -” in your user’s session?

Anyway, the difference is probably the environment, i.e. things like widget style, language, …

Below is link to y2log. I did delete the whole log then run Software Manager and see it crash and extract everything written to the log.

https://drive.google.com/open?id=1SL7O2hHleZwGSblq5YlXSLmU4xjQmuxO

Well, it’s crashing somewhere in Qt:

2018-04-22 02:28:31 <2> linux-f0hw(3564) [qt-ui] YQUI.cc(qMessageHandler):685 <libqt-warning> QWidget::repaint: Recursive repaint detected
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 Error: signal 11
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-3) /usr/lib64/libzypp.so.1600 : zypp::dumpBacktrace(std::ostream&)+0x26 [0x7f89e230bbe6]
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-2) /usr/lib64/libzypp.so.1600 : +0x33aebe [0x7f89e22c5ebe]
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [hd]: (-1) /lib64/libc.so.6 : +0x34fe0 [0x7f8a05c04fe0]
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 vvvvvvvvvv----------------------------------------
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (0) /usr/lib64/libQt5Gui.so.5 : QRasterPaintEngine::renderHintsChanged()+0x12 [0x7f8a006cb542]
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (1) /usr/lib64/libQt5Gui.so.5 : QPainter::setRenderHints(QFlags<QPainter::RenderHint>, bool)+0x33 [0x7f8a006e1883]
2018-04-22 02:28:31 <5> linux-f0hw(3564) [zypp] ZYppFactory.cc(sigsegvHandler):55 [bt]: (2) /usr/lib64/libQt5Gui.so.5 : QPainter::setRenderHint(QPainter::RenderHint, bool)+0xc [0x7f8a006e18fc]

Would it help if you’d uninstall yast2-branding-openSUSE?

sudo rpm -e --nodeps yast2-branding-openSUSE