Weird behaviour after zypper up

Hi:
After zypper up last week I found weird things in Leap 15.1. Every time I open the konsole as a user I get the error:

:~> bash
 bash: mc: line 1: syntax error: unexpected end of file
 bash: error importing function definition for `mc'

Running yast2 from konsole gives the following error:

# yast2
 /bin/bash: mc: line 1: syntax error: unexpected end of file
 /bin/bash: error importing function definition for `mc'
 QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
 QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
 QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

I entered the following commands:

# ls -l /run/user/
total 0
drwxr-xr-x 3 root  root   60 sep 30 15:59 0
drwx------ 9 my_user users 280 sep 30 15:49 1000
# ls -la /run/user/
 total 0
 drwxr-xr-x  4 root  root    80 sep 30 15:53 .
 drwxr-xr-x 34 root  root  1020 sep 30 16:09 ..
 drwxr-xr-x  3 root  root    60 sep 30 15:59 0
 drwx------  9 my-user users  280 sep 30 15:49 1000

And the worst thing is I can not run yast by clicking on icon in Plasma. The window pops up requesting a user password. I enter the correct password but same window pops up again, and again etc.
Any help would be greatly appreciated.

Bojan

Please paste here using code tags:

zypper lr -d

exactly the same weird behaviour here.

my output of

zypper lr -d

is:


#  | Alias                                | Name                                 | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                             | Service
---+--------------------------------------+--------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------+--------
 1 | KDE:/Frameworks5/openSUSE_Leap_15.1/ | KDE:/Frameworks5/openSUSE_Leap_15.1/ | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.1/ |        
 2 | KDE:/Qt5/openSUSE_Leap_15.1/         | KDE:/Qt5/openSUSE_Leap_15.1/         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.1/         |        
 3 | Printing/openSUSE_Leap_15.1/         | Printing/openSUSE_Leap_15.1/         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Printing/openSUSE_Leap_15.1/         |        
 4 | basearch                             | Anydesk                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://rpm.anydesk.com/opensuse/x86_64/                                         |        
 5 | beid-release                         | Belgian eID package archive          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://files.eid.belgium.be/rpm/opensuse/15.1                                   |        
 6 | google-chrome                        | google-chrome                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                             |        
 7 | mozilla/openSUSE_Leap_15.1/          | mozilla/openSUSE_Leap_15.1/          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.1/          |        
 8 | openSUSE_Leap_15.1                   | LibreOffice:/6.3/openSUSE_Leap_15.1/ | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/LibreOffice:/6.3/openSUSE_Leap_15.1/ |        
 9 | openSUSE_Leap_15.1                   | X11:/XOrg/openSUSE_Leap_15.1/        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Leap_15.1/        |        
10 | opensuse-guide.org-repo              | Libdvdcss Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://opensuse-guide.org/repo/openSUSE_Leap_15.1/                             |        
11 | packman.inode.at-suse                | Packman Repository                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                                |        
12 | repo-non-oss                         | openSUSE-Leap-15.1-Non-Oss           | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.1/repo/non-oss/              |        
13 | repo-oss                             | openSUSE-Leap-15.1-Oss               | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.1/repo/oss/                  |        
14 | repo-update                          | openSUSE-Leap-15.1-Update            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.1/oss/                             |        
15 | repo-update-non-oss                  | openSUSE-Leap-15.1-Update-Non-Oss    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.1/non-oss/                         |        
16 | wavebox                              | Wavebox - x86_64                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://wavebox.io/dl/client/repo/yum/

Not that exotic as you can see…

At a guess, some of those error messages might be coming from:
“/etc/profile.d/mc.sh”
which is probably being run during shell startup.

I have not been able to reproduce the problem here.

That’s a lot of unrelated repos that haven’t gone through QA as an integrated unit. Something(s) from one or more could be in conflict with one or more others.

Output:

:~> zypper lr -d
#  | Alias                               | Name                                                      | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                             | Service
---+-------------------------------------+-----------------------------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
 1 | KDE-Applications                    | KDE-Applications                                          | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_15.1 |        
 2 | KDE-Frameworks                      | KDE-Frameworks                                            | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.1                  |        
 3 | KDE-Qt5                             | KDE-Qt5                                                   | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.1                          |        
 4 | download.nvidia.com-leap            | nVidia Graphics Drivers                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.1                                                  |        
 5 | http-download.opensuse.org-45843d34 | Application:Geo                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.1/                  |        
 6 | http-download.opensuse.org-f18b3e14 | openSUSE:Leap:15.1:Update                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss/                                              |        
 7 | openSUSE-Leap-15.1-1                | openSUSE-Leap-15.1-1                                      | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-Generic_Flash_Disk_B32E0B4E-0:0-part2                           |        
 8 | openSUSE_Leap_15.1                  | Fonti                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/M17N:/fonts/openSUSE_Leap_15.1/                       |        
 9 | openSUSE_Leap_15.1_1                | LibreOffice                                               | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | http://download.opensuse.org/repositories/LibreOffice:/6.3/openSUSE_Leap_15.1/                  |        
10 | openSUSE_Leap_15.1_2                | Graphics                                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/graphics/openSUSE_Leap_15.1/                          |        
11 | openSUSE_Leap_15.1_3                | Science                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/science/openSUSE_Leap_15.1/                           |        
12 | openSUSE_Leap_15.1_4                | KDE Extra                                                 | Yes     | (r ) Yes  | Yes     |   75     | rpm-md | https://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.1/                       |        
13 | openSUSE_Leap_15.1_5                | Mozilla                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.1/                           |        
14 | packman.inode.at-suse               | Packman Repository                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.1/                                                |        
15 | proxsign                            | SETCCE proXSign® Component Suite for (openSUSE_Leap_15.1) | Yes     | ( p) Yes  | No      |   99     | NONE   | http://public.setcce.si/proxsign/repo/openSUSE_Leap_15.1/                                       |        
16 | repo-debug                          | Debug Repository                                          | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.1/repo/oss/                             |        
17 | repo-debug-non-oss                  | Debug Repository (Non-OSS)                                | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.1/repo/non-oss/                         |        
18 | repo-debug-update                   | Update Repository (Debug)                                 | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.1/oss/                                        |        
19 | repo-debug-update-non-oss           | Update Repository (Debug, Non-OSS)                        | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.1/non-oss/                                    |        
20 | repo-non-oss                        | Non-OSS Repository                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/                               |        
21 | repo-oss                            | Main Repository                                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.1/repo/oss/                                   |        
22 | repo-source                         | Source Repository                                         | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.1/repo/oss/                            |        
23 | repo-source-non-oss                 | Source Repository (Non-OSS)                               | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.1/repo/non-oss/                        |        
24 | repo-update                         | Main Update Repository                                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/oss/                                              |        
25 | repo-update-non-oss                 | Update Repository (Non-Oss)                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.1/non-oss/ 

There is still existing problem with running Yast from Krunner. The window pops up requesting a user password. I enter the correct password but same window pops up again, and endlessly again.

Curiously,
The only search hit I got that matches your problem affected an old version of openSUE…
https://bugs.eclipse.org/bugs/show_bug.cgi?id=476888

Do you have Midnight Commander or Eclipse installed?

TSU

Yes, I have MC installed but not Eclipse. I’ll try to uninstall MC and see the result. Will post the outcome.

Uninstalling mc solved all problems.

Thanks everybody for tips.

That would never do here. It’s a masterful shell, among other things. Without MC, PC admin is all but impossible. It’s virtually always open, usually more than one instance. Something somewhere is really messed up that removing it can un-break anything.

No matter what you think about MC - I disagree completely here -, the problem IMHO is not MC, it’s the list of repos. We don’t know what’s coming from the stock repos, what is coming from the various KDE / QT related repos. Another example of creating an untested Tumbleweed from a Leap install. My 2 cents

To each, his own way of doing things.

I do have “mc” installed, but I don’t think I have ever used it with Leap 15.1. The last time that I used it, was to look inside an rpm file, and that was for 15.0 or 42.3 (not sure which).

If I forgot to install “mc”, I might never notice.

I suffer from exactly the same errors as described and I’m a user of midnight commander, so simply uninstalling isn’t a solution.

I made kdesu usable again by

kwriteconfig5 --file kdesurc --group super-user-command --key super-user-command sudo

But otherwise I run out of ideas. I’m using Leap 15.1 with newer KDE,

Probably the two errors are not connected, but who am I to know such a thing.

Uninstalled mc but no results.

I managed to get kdesu working again by following command (although I don’t really know what this does… normally I don’t blindly copy paste commands)

kwriteconfig5 --file kdesurc --group super-user-command --key super-user-command sudo

Can anyone explain to me what the above command really does ?

I get the same problem after installing yesterday’s Tumbleweed snapshot…

That command configures kdesu to use sudo instead of su to get root privileges.

Does it work if you use su on the command line?

Also, do you have pam_kwallet installed?
If yes, try to uninstall it and see if that helps.
It broke kdesu (and su) a couple of months ago due to a bug in libgcrypt (which was fixed later). Might be something broke there again…

Although, kdesu (and su) does work fine here on my Leap 15.1 system (with additional KDE repos), even if I do install pam_kwallet.
And that also affected sudo back then anyway.

PS: installing mc (from the standard Leap 15.1 repos) doesn’t cause any problems here either.

Btw, the mc bug has been reported here:
https://bugzilla.opensuse.org/show_bug.cgi?id=1154345

But the Leap 15.1 version should not be affected, only the one in the Base:System repo (and in Tumbleweed).

Thanks for the heads-up :slight_smile:

I get the same problem after installing yesterday’s (2019-10-16] Tumbleweed snapshot…
IE. “mc: line 1: syntax error: unexpected end of file” in konsole output (eg. on less command).
The problem does not appear in new testing user account and also in pure system console (without kde).
After many test i found the problem has been made by file
~/.config/plasma-locale-settings.sh
After removing it system behaves correctly.