After latest kernel upgrade there is no more kernel-default-extra, after successfull upgrade extra was left installed, so I wanted to remove it by force (after inspecting the new kernel-default.rpm: I found it provides all files kernel-default-extra package had before):
rpm --erase --nodeps kernel-default-extra-xxx.xx
It has done, but now zypper is broken, I have tried already rpm --rebuilddb
zypper -v dup
Verbosity: 1
Initializing Target
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Force resolution: No
Computing upgrade...
Problem: This request will break your system!
nothing provides requested kernel-default-extra
Have you enabled all requested repositories?
Solution 1: ignore the warning of a broken system (requires:kernel-default-extra)
Choose the above solution using '1' or cancel using 'c' [1/c] (c): 1
Applying solution 1
Resolving dependencies...
Computing distribution upgrade...
Force resolution: No
Computing upgrade...
Problem: This request will break your system!
nothing provides requested kernel-default-extra
Have you enabled all requested repositories?
Solution 1: ignore the warning of a broken system (requires:kernel-default-extra)
Choose the above solution using '1' or cancel using 'c' [1/c] (c): 1
Applying solution 1
Resolving dependencies...
Computing distribution upgrade...
Force resolution: No
Computing upgrade...
Problem: This request will break your system!
nothing provides requested kernel-default-extra
Have you enabled all requested repositories?
Solution 1: ignore the warning of a broken system (requires:kernel-default-extra)
Choose the above solution using '1' or cancel using 'c' [1/c] (c):
“shot myself into the knie” is a german saw allowing you to lough like about Chaplin. It’s like to be vice president going for a hunt with friends but all allone: impossible but worked!
Five days ago, making a dist-upgrade 11.1 to 11.2 and loosing zypper, I had put this into /etc/zypp/systemCheck :
##
## This file contains requirements/conflicts which fulfill the
## needs of a running system.
## For example the system would be broken if not glibc or kernel is
## installed.
## So the user will be informed if these packages will be deleted.
##
## format: Each line represents one dependency:
## e.g.
## requires:kernel
## requires:glibc
requires:glibc
requires:zypper
requires:kernel-default
requires:kernel-default-base
requires:kernel-default-extra
Now that “kernel-default-extra” vanished from the repos I was lost, because I didn’t remembered …
This is typically happening when ‘–nodeps’ is being used. Never Never use that. On my laptop it’s all working as it should, incl. zypper. My /etc/zypp/systemCheck looks like this, I think yours should look the same now:
This file contains requirements/conflicts which fulfill the
needs of a running system.
For example the system would be broken if not glibc or kernel is
installed.
So the user will be informed if these packages will be deleted.
format: Each line represents one dependency:
e.g.
requires:kernel
requires:glibc
requires:glibc
Changing the file like this should solve your trouble AFAIK.