Cannot upgrade via Yast online update anymore

My Yast online update works no longer.
When trying, I get messages like this:

Subprocess failed. Error: RPM failed: error: package gcc7-7.5.0+r278197-lp152.3.3.1.x86_64 is not installed

This is an older version than I have.

Giving the command

rpm -qa | grep gcc7-7

gives as result:

gcc7-7.5.0+r278197-lp152.3.6.1.x86_64
gcc7-7.5.0+r278197-lp152.3.6.1.x86_64
gcc7-7.5.0+r278197-lp152.3.6.1.x86_64
gcc7-7.5.0+r278197-lp152.3.6.1.x86_64
libstdc++6-devel-gcc7-7.5.0+r278197-lp152.3.6.1.x86_64
libstdc++6-devel-gcc7-7.5.0+r278197-lp152.3.6.1.x86_64

I seem to have some packages multiple times.

This is what uname -a gives:

Linux localhost.localdomain 5.3.18-lp152.60-default #1 SMP Tue Jan 12 23:10:31 UTC 2021 (9898712) x86_64 x86_64 x86_64 GNU/Linux

First execute “rpm --query --dupes --all” – ignore the following entries:


 > rpm --query --dupes --all
gpg-pubkey.(none)
kernel-default-devel.x86_64
kernel-default.x86_64
kernel-devel.noarch
kernel-source.noarch
virtualbox-kmp-default.x86_64
 > 

  • “gpg-pubkey” are the GNU PGP keys associated with the repositories …

If you can’t remove the duplicate gcc7 packages with either “rpm erase” or “zypper remove” it may be that, the RPM database is corrupted –

  • Execute “rpm --rebuilddb”.

Wasn’t it also found that sometimes when people have repos double (or even triple) in their repo list, such double (and triple) packages are reported?

Maybe show a

zypper lr -d

for inspection.

Having tried to resolve things by ignoring conflicts, I ended up with a system that had no working browser anymore.
I used fsarchiver to restore the filing system to a situation from nearly two months ago. After a successfull start I applied all updates and all seems to work well now.

So I could no try your suggestion. But I’ll make a note of it for the next time.

This command gives the following result:

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±-------------------------------------±-----------------------------------±--------±----------±--------±---------±-------±--------------------------------------------------------------------------------±-------
1 | VLC | VLC | Yes | (r ) Yes | No | 99 | rpm-md | http://download.videolan.org/pub/vlc/SuSE/Leap_15.2/ |
2 | download.nvidia.com-leap | nVidia Graphics Drivers | Yes | (r ) Yes | Yes | 99 | rpm-md | Index of /opensuse/leap/15.2 |
3 | http-download.opensuse.org-e189599a | openSUSE:Leap:15.2:Update | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/ |
4 | https-download.opensuse.org-967995e3 | multimedia:apps | Yes | (r ) Yes | Yes | 99 | rpm-md | https://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Leap_15.2/ |
5 | https-download.opensuse.org-b1ea25ef | multimedia:libs | Yes | (r ) Yes | Yes | 99 | rpm-md | https://download.opensuse.org/repositories/multimedia:/libs/openSUSE_Leap_15.2/ |
6 | openSUSE-Leap-15.2-1 | openSUSE-Leap-15.2-1 | No | ---- | ---- | 99 | rpm-md | cd:/?devices=/dev/disk/by-id/ata-TSSTcorp_CDDVDW_SH_PU |
7 | opensuse-guide.org-repo | Libdvdcss Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/ |
8 | packman.inode.at-suse | Packman Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/ |
9 | repo-debug | Debug Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/ |
10 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/ |
11 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.2/oss/ |
12 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/debug/update/leap/15.2/non-oss/ |
13 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/ |
14 | repo-oss | Main Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/ |
15 | repo-source | Source Repository | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/ |
16 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/ |
17 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss |
18 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/ |

Here, number 6, 9, 10, 11, 12, 15 and 15 are not enabled.

It is difficult to read, but I see at least that #3 and #17 are the same. Maybe more.

Please check for yourself if some of them have the same URI. When yes, remove the superfluous ones.
When needing help with this repost the list, but use CODE tags.

Going through your Repository list:


 3 | http-download.opensuse.org-e189599a | openSUSE:Leap:15.2:Update | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/ |
17 | repo-update                         | Main Update Repository    | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/leap/15.2/oss  |

  • The aliases for the Repositories #3, #4 and#5 are strange – did you add them by “One-Click Install” ?
  • Most folks have the Debug and Source Repositories disabled –

[INDENT=2]As of 2019, it has been estimated that, 26.4 million humans on this planet are writing software code.
Even if we double that figure to estimate the number of humans who can read and debug code, the conclusion is, given a planetary population of 7.8 billion (2020) that, only about 6 thousandths (0.6 %) of humans vaguely understand software code …
[/INDENT]