Installation hangs on "delete drm-kmp-default"

This happens when upgrading from 14.3. I can get most of the way through the installation, and the system is sort of working, but some packages could not be installed

Hi, welcome to these forums.

Must say, that you don’t provide much info …
Does the system run on 15.1 now?
Please show output of


rpm -qa | grep drm-kmp

Hi and welcome to the Forums!
Not clear from what release you are upgrading, maybe Leap 42.3 (14.3 doesn’t exist).
If so, please be aware that upgrade is only guaranteed from one release to the next, so 42.3 to 15.0, then 15.0 to 15.1.
That said, likely drm-kmp-default cannot be uninstalled because it is in use by the graphic system: are you upgrading via “zypper dup” or via the DVD?
A clean install of 15.1 should work, so unless your 42.3 installation is highly customized, backup your user data, download the DVD and install 15.1 form scratch.
If you really need to upgrade, it is best to do that via the DVD. Maybe you have to manually uninstall drm-kmp-default from your system first (there is no such package in 15.1). Please ask if you don’t know how to do that.

 sudo rpm -qa | grep drm-kmp
[sudo] password for root: 
drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64


And pardon my dyslexia, it was 42.3. (I don’t know where I got 14!) The system is working well enough now that I can be typing this on it. I can’t delete the package in Yast, that hangs at 5% on the progress bar, too. What’s the next step?

You could try these. If they fail, there will hopefully be error messages.


sudo rpm -e  --noscripts  drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64 

sudo zypper  rm   drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64

Those commands gave me

~> sudo rpm -e  --noscripts  drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64 

warning: file /lib/modules/4.4.79-4-default/updates/drivers/gpu/drm/vmwgfx/vmwgfx.ko: remove failed: No such file or directory
warning: file /lib/modules/4.4.79-4-default/updates/drivers/gpu/drm/vmwgfx: remove failed: No such file or directory
...
warning: file /lib/modules/4.4.79-4-default/updates/drivers: remove failed: No such file or directory
warning: file /lib/modules/4.4.79-4-default/updates: remove failed: No such file or directory

~> sudo zypper  rm   drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64
Loading repository data...
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
Reading installed packages...
'drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64' not found in package names. Trying capabilities.
No provider of 'drm-kmp-default-4.9.33_k4.4.79_4-5.2.x86_64' found.
Resolving package dependencies...

Nothing to do.

This is a dual boot machine with Windows 10, for which I just had to do a clean reinstall. Updating openSUSE has always been so easy by comparison, I wasn’t really prepared for any problems :frowning:
I really would like to avoid another clean reinstall!

Troubles may arise when you skip a release when upgrading… nevertheless if your system is in an useable state we may try to repair it.
First of all, check that you are indeed running 15.1; with the following command you should see:

bruno@LT_B:~> uname -r
4.12.14-lp151.28.36-default
bruno@LT_B:~>

If not so, please post the result so that we can help you.
Then you have no 15.1 repositories defined, apparently, so you must define at least the basic ones by:

zypper ar http://download.opensuse.org/distribution/leap/15.1/repo/oss/ repo-oss
zypper ar http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/ repo-non-oss
zypper ar http://download.opensuse.org/update/leap/15.1/oss/ repo-update
zypper ar http://download.opensuse.org/update/leap/15.1/non-oss/ repo-update-non-oss

at this point you may try an update to the last packages provided by those 15.1 repos, in case you still have some 42.3 package in your system:

zypper dup

If that last command doesn’t complete, it should at least spit error messages so we can understand, hopefully, what went wrong in the first place.
If something is not clear to you, please ask here before doing further damages :wink:

Lets see if the package is really still there.


   sudo rpm --rebuilddb 

   rpm  -qa  drm-kmp-default

This is best done BEFORE anything I recommended in post #7, so at least we can start from the correct list of packages currently installed.

~> uname -r
4.12.14-lp151.28.36-default

That was good!

zypper ar http://download.opensuse.org/distribution/leap/15.1/repo/oss/ repo-oss
zypper ar http://download.opensuse.org/distribution/leap/15.1/repo/non-oss/ repo-non-oss
zypper ar http://download.opensuse.org/update/leap/15.1/oss/ repo-update
zypper ar http://download.opensuse.org/update/leap/15.1/non-oss/ repo-update-non-oss

Those worked well and

zypper dup

After a lot of downloading and installing, that ran to completion without any errors at the end. And searching for drm-kmp in Yast returned nothing, so it looks like we’re good! Many thanks to all!!!