New Tumbleweed Install, zypper dup tries to remove 4 packages and fails

Hi,

I installed Tumbleweed a few days ago, updated, installed NVIDIA drivers, etc, and I noticed that now when I dup it tries to remove the same 4 packages:

Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

The following 4 packages are going to be REMOVED:
  kernel-macros mozilla-nss-tools pesign pesign-systemd

4 packages to remove.

Package install size change:
              |         0 B    required by packages that will be installed
    -1.7 MiB  |  -    1.7 MiB  released by packages that will be removed

It fails with the following error:

error: package pesign-116-8.1.x86_64 is not installed
(1/4) Removing: pesign-116-8.1.x86_64 ..................................................................................................................................................................................................................[error]
Removal of (112753)pesign-116-8.1.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: Command exited with status 1.

rpm -q on these packages reveals they are installed:

rpm -q kernel-macros mozilla-nss-tools pesign pesign-systemd
kernel-macros-6.18.6-1.1.noarch
mozilla-nss-tools-3.119.1-1.1.x86_64
pesign-116-9.1.x86_64
pesign-systemd-116-9.1.noarch

I can uninstall these packages in zypper if I specify the full name, but then I get into a loop where it tries to reinstall them and remove them, and then we end up back here. It also broke my NVIDIA drivers and I could only fix them by selecting the ‘open’ meta package.

Does anyone know what’s going on here? Is the problem on my side? My repos look like this:

# | 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 | openSUSE:repo-non-oss      | repo-non-oss      | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/non-oss          | openSUSE
3 | openSUSE:repo-openh264     | repo-openh264     | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://codecs.opensuse.org/openh264/openSUSE_Tumbleweed | openSUSE
4 | openSUSE:repo-oss          | repo-oss          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/oss              | openSUSE
5 | openSUSE:repo-oss-debug    | repo-oss-debug    | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/debug/tumbleweed/repo/oss        | openSUSE
6 | openSUSE:repo-oss-source   | repo-oss-source   | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/source/tumbleweed/repo/oss       | openSUSE
7 | openSUSE:update-tumbleweed | update-tumbleweed | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/update/tumbleweed                | openSUSE

Thanks for any help!

Does this help? It can fix stale rpm database entries that sometimes cause zypper to try removing packages incorrectly:

sudo rpm --rebuilddb
sudo zypper clean -a
sudo zypper dup

If that doesn’t do it, wait for further advice. (I don’t have NVIDIA hardware.)

1 Like

Looks like that did it, thank you very much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.