Plasma failure, GRUB2 won't update, polkit problem...

Hello world,Since a few week I had a problem, GRUB2 wouldn’t update want yast says grub2-snapper is not installed. No way, it is. So I updated everything on my system and then, a few days ago, a big update including plasma 5. And additional problems came:

  • Polkit fail to load on boot:
    [FAILED] Failed to start Authorization Manager.
    See “systemctl status polkit.service” for details.

  • Plasma won’t load everything up at logon: the mouses works, the “cashew” is present, the Alt+F2 works but no taskbar, no contextual menu on the desktop… and then, after a few minutes it eventually loads… Sometimes it did work after a reboot. Sometimes not…

  • No way to launch some programs like firefox or chromium. Same error:
    > firefox
    /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol: PR_GetEnv
    > chromium
    /usr/lib64/chromium/chromium: symbol lookup error: /usr/lib64/chromium/lib/libnet.so: undefined symbol: PR_ErrorToName

Where should I start? It seems that there are many small problems on my system, starting with polkit and rpm.
Should I revert to an old snapshot and reapply all updates on it? How can I do?

Other ways?

First check that ALL you repos are for 42.1 and only for 42.1

Yes, they are.

This is the message of Yast when I apply the patch for GRUB2:

Subprocess failed. Error: RPM a fwait berwete :error: package grub2-x86_64-efi-2.02~beta2-70.1.x86_64 is not installed


The same occurs for grub2-snapper-plugin

What is also weird: if I check the tab “version” in Yast for those two packages, I see that they are three times checked as installed, with three different versions (two for snapper).

Please show us the result of

zypper lr -d

that might help us to get a better understanding of your setup.

Best regards

susejunky

> zypper lr -d
#  | Alias                            | No                                                                       | Mete en alaedje | Vérification GPG | Rafraichir | Priorité | Sôre   | URI                                                                      | Service
---+----------------------------------+--------------------------------------------------------------------------+-----------------+------------------+------------+----------+--------+--------------------------------------------------------------------------+--------
 1 | KDE_Estra                        | KDE Estra                                                                | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.1/ |        
 2 | beid-candidate                   | Belgian eID package archive - unsupported prerelease builds (candidate)  | Nonna           | ----             | Nonna      |   99     | NONE   | http://files.eid.belgium.be/rpm/candidate/opensuse/42.1                  |        
 3 | beid-continuous                  | Belgian eID package archive - unsupported prerelease builds (continuous) | Nonna           | ----             | Nonna      |   99     | NONE   | http://files.eid.belgium.be/rpm/continuous/opensuse/42.1                 |        
 4 | beid-release                     | Belgian eID package archive                                              | Oyi             | ( p) Oyi         | Oyi        |   99     | rpm-md | http://files.eid.belgium.be/rpm/opensuse/42.1                            |        
 5 | download.opensuse.org-non-oss    | Mwaisse depot (NÉN-OSS)                                                  | Oyi             | (r ) Oyi         | Oyi        |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/        |        
 6 | download.opensuse.org-oss        | Mwaisse depot (OSS)                                                      | Oyi             | (r ) Oyi         | Oyi        |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/            |        
 7 | http-geeko.ioda.net-9584bd87     | AMD/ATI-FGLRX                                                            | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://geeko.ioda.net/mirror/amd-fglrx/openSUSE_Leap_42.1/               |        
 8 | http-opensuse-guide.org-469fba76 | libdvdcss repository                                                     | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.1/                       |        
 9 | http-packman.inode.at-66a1ef6f   | Packman Repository                                                       | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_42.1/                         |        
10 | openSUSE-42.1-0                  | openSUSE-42.1-0                                                          | Nonna           | ----             | Oyi        |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/            |        
11 | repo-debug                       | openSUSE-Leap-42.1-Debug                                                 | Nonna           | ----             | Oyi        |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/oss/      |        
12 | repo-debug-non-oss               | openSUSE-Leap-42.1-Debug-Non-Oss                                         | Nonna           | ----             | Oyi        |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/42.1/repo/non-oss/  |        
13 | repo-debug-update                | openSUSE-Leap-42.1-Update-Debug                                          | Nonna           | ----             | Oyi        |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/oss                  |        
14 | repo-debug-update-non-oss        | openSUSE-Leap-42.1-Update-Debug-Non-Oss                                  | Nonna           | ----             | Oyi        |   99     | NONE   | http://download.opensuse.org/debug/update/leap/42.1/non-oss/             |        
15 | repo-source                      | openSUSE-Leap-42.1-Source                                                | Nonna           | ----             | Oyi        |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/42.1/repo/oss/     |        
16 | repo-update                      | openSUSE-Leap-42.1-Update                                                | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss/                       |        
17 | repo-update-non-oss              | openSUSE-Leap-42.1-Update-Non-Oss                                        | Oyi             | (r ) Oyi         | Oyi        |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/non-oss/                   |        


Thank you for sharing your repository list.

Because some of it is not in English i’m not quite sure whether i understand it correctly.

I suggest you try the following:

  1. change the priority of repositories 16 and 17 (update oss and update non-oss) to 98
  2. change the priority of repository 1 (KDE Extra) to 98
  3. change the priority of repository 7 (ATI) to 97
  4. change the priority of repositories 8 and 9 (packman and libdvdcss) to 96
  5. run
zypper dup
  1. post any errors here

Probably it would make sense to change the priority of repository 4 (Belgian eID package archive) as well but that i cant tell.

You can use YaST2 to change the priorities.

Best regards

susejunky

There seem to be duplicate repos some normal openSUSE and some Belgium URL. You should straight that out and use one source or the other. I doubt it to be a problem but it does confuse things and there is a possibility of a repo and it’s miror may not be in perfect sync at any given time which could lead to mixed packages

If your system is up-to-date, then you should have “grub2-x86_64-efi-2.02~beta2-76.1-x86_64” installed.

Where are you getting that patch that wants an older grub2-efi version?e

Hie there.

I reverted back to an old snapshot (begin of January) and applied all patches, except GRUB2 that still makes problems. The problem with Policy Kit and Plasma are solved. It remains the problem of the GRUB2 update.

The two patches that causes trouble are openSUSE-2015-927 and openSUSE-2016-10. One of them wants to uninstall the two packages below (grub2-x86_64-efi and grub2-snapper-plugin) and it sticks there.

If your system is up-to-date, then you should have “grub2-x86_64-efi-2.02~beta2-76.1-x86_64” installed.

Yes, its the case. But at the same time, it says that 73.1 and 70.1 are installed as well (but 68.2 not).
Same for grub2-snapper-plugin (76.1 an 70.1 installed but not 73.1 and 68.2)…

I’ll try now the suggestions of gogalthorp and susejunky and will post the result here.

I think you are misreading something.

I start Yast –> Software Management.

I search for “grub2”.

I click the line for “grub2-x86_64-efi”
I click the “Versions” tab toward the bottom of the screen.

It shows several versions. But only one of them has “(installed)” showing.

The only error with zypper dup, after adapting priorities is this one at the end (nevertheless it upgrades everything).

Un problème s'est produit pendant ou après l'installation ou la suppression des paquets :
Failed to cache rpm database (1).
Veuillez consulter le message d'erreur ci-dessus pour une indication.

(sorry for the French: “An error occured during or after installation or removing of packages:
Failed to cache rpm database (1).
Check the error message above for an indication”)

But if I make a zypper patch, this is the output:
(I’ve got the impression that the patch where applied but that the rpm database has still old version from the two packages marked as installed despite they are not anymore).

zypper patch
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW patches are going to be installed:
  openSUSE-2015-927 openSUSE-2016-10

The following 4 packages are going to be REMOVED:
  grub2-i386-pc grub2-snapper-plugin grub2-x86_64-efi grub2-x86_64-efi

The following package is going to be upgraded:
  grub2

1 package to upgrade, 4 to remove.
Overall download size: 2,4 MiB. Already cached: 0 B. After the operation, 51,4 MiB will be freed.
Continue? [y/n/? shows all options] (y): y
Retrieving package grub2-2.02~beta2-76.1.x86_64                                                                             (1/1),   2,4 MiB ( 19,8 MiB unpacked)
Retrieving: grub2-2.02~beta2-76.1.x86_64.rpm ..................................................................................................[done (1,8 MiB/s)]
Checking for file conflicts: ..............................................................................................................................[done]
(1/7) Removing grub2-snapper-plugin-2.02~beta2-70.1 .......................................................................................................[done]
(2/7) Removing grub2-snapper-plugin-2.02~beta2-70.1 ......................................................................................................[error]
Removal of (35983)grub2-snapper-plugin-2.02~beta2-70.1.noarch(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package grub2-snapper-plugin-2.02~beta2-70.1.noarch is not installed                                         


Abort, retry, ignore? [a/r/i] (a): i
(3/7) Removing grub2-x86_64-efi-2.02~beta2-70.1 ...........................................................................................................[done]
(4/7) Removing grub2-x86_64-efi-2.02~beta2-73.1 ...........................................................................................................[done]
Additional rpm output:
warning: file /usr/lib64/efi/grub.efi: remove failed: No such file or directory
warning: file /usr/lib64/efi/grub.der: remove failed: No such file or directory
warning: file /usr/lib/grub2/x86_64-efi/zfsinfo.module: remove failed: No such file or directory

(... etc with a hundred of files under /usr/lib/grub2/x86_64-efi/)


(5/7) Removing grub2-x86_64-efi-2.02~beta2-70.1 ..........................................................................................................[error]
Removal of (35987)grub2-x86_64-efi-2.02~beta2-70.1.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package grub2-x86_64-efi-2.02~beta2-70.1.x86_64 is not installed

Abort, retry, ignore? [a/r/i] (a): 


No, I don’t think so. I have two or three version with a “V”. The other ones (uninstalled) are with a circle.

See there on the screenshot

That’s weird (based on the snapshot). I’ve never seen that, except for kernels which do have multiple versions.

We usually call that mark a “checkmark” or “check” rather than a “V”.

Yes, it’s weird. And I think that it is the heart of the issue. There should not be two versions checked.

I’m suspecting that you have a corrupt RPM database.

I don’t remember the command to fix that. Maybe someone else can comment.

Hi
You mean (as root user);


rpm --rebuilddb

Thanks a lot @nrickert and @malcolmlewis. It did solve the issue. The patches are now applied and Yast show only one version installed.

A beer for you all !