Zypper dup freezes when installing kernel

Hi,

When I try to upgrade my system with zypper dup, everything goes smoothly until the system tries to install the kernel. Then the upgrade freezes just when the progress bar shows that the installation of the kernel is 100% complete.

I use the following command when I upgrade Tumbleweed.


sudo zypper dup --no-allow-vendor-change

I rebooted the system and tried to start all over in the hope that it would succeed the second time, but it froze at the exact same place.

Any ideas what I can do?

Are you sure it is frozen?

My experience is that after the new kernel is installed (100% showing), there is a noticeable delay before anything else happens. That’s because a kernel update requires other changes, such as generating a new “initrd”. And those other changes can take a while.

No-allow-vendor-change was made default in /etc/zypp/zypp.conf somewhere between two & three years ago, so unless you are using a really old zypp.conf file, you don’t need to type it out.

I rebooted the system and tried to start all over in the hope that it would succeed the second time, but it froze at the exact same place.

Any ideas what I can do?[/QUOTE]Wait longer? How long did you wait?

I don’t let dup upgrade my kernel. I keep it locked, using a wildcard, so a new one only gets installed if and when I choose. When I install it manually (zypper in kernel-default), after the dup has completed all its post scripts, zypper asks about removing the lock. I say yes, but it does not remove it due to the wildcard in the lock, and proceeds with new kernel installation.

I waited approximately 20+ minutes, don’t remember precisely. I know from previous upgrades that the installation of a new kernel takes time because of the additional changes as you guys point out. But it never took this long.

Just now, I’m trying to upgrade a third time. This time it installed all the packages, strangely no kernel was installed. But the installation has yet again frozen. This time at the final stage with, where the prompt reads:


Executing %posttrans script 'e2fsprogs-1.45.1-1.1.x86_64.rpm' .......................<33%>====================================================================-]

I’ve waited for 35+ minutes, but it’s still stuck at 33%.

Good to know, thanks.

I don’t let dup upgrade my kernel. I keep it locked, using a wildcard, so a new one only gets installed if and when I choose. When I install it manually (zypper in kernel-default), after the dup has completed all its post scripts, zypper asks about removing the lock. I say yes, but it does not remove it due to the wildcard in the lock, and proceeds with new kernel installation.

I assume you do this as a cautionary step. How do I lock it with a wildcard?

Exit the graphical session and update from there, show the Repository you have first

zypper ls -d

I just rebooted the system and tried once more “zypper dup”. This time the prompt replied “Computing distribution upgrade…” and then “Nothing to do” :slight_smile:

When I check KInfocenter, it says that my system is:

openSUSE Tumbleweed 20190521
Plasma: 5.15.5
KDE frameworks: 5.58.0
Qt: 5.12.3
Kernel: 5.1.3-1

I guess the upgrade finally went through… despite my mishandling of it, which in my mind speaks volumes of openSUSE’s robustness.

A happy camper!

I believe my problem is solved. But here’s the output that shows my repositories. If you find my setup troublesome, I’d be glad to know what you think I ought to do.


brahmavihara@linux-0xse:~> zypper ls -d
#  | Alias                               | Name                         | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                     
---+-------------------------------------+------------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------------------------
1  | TW_Debug_repository                 | TW Debug Repository          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/debug                                     
2  | TW_KDE_Extra                        | TW KDE Extra                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Tumbleweed/              
3  | TW_Main_Repository_(NON-OSS)        | TW Main Repository (NON-OSS) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/non-oss                                   
4  | TW_Main_Repository_(OSS)            | TW Main Repository (OSS)     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/oss                                       
5  | TW_Source-non-oss_Repository        | TW Source-non-oss Repository | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/src-non-oss                               
6  | TW_Source-oss_repository            | TW Source-oss Repository     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/tumbleweed/repo/src-oss                                   
7  | TW_Update_repository                | TW Update Repository         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/                                         
8  | http-download.opensuse.org-bd29e9c1 | openSUSE:Tumbleweed          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/Tumbleweed/standard/                
9  | http-download.opensuse.org-e589adab | home:psifidotos              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/psifidotos/openSUSE_Tumbleweed_standard/
10 | http-download.opensuse.org-e8724ee4 | Kernel:stable                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Kernel:/stable/standard/                     
11 | http-ftp.gwdg.de-7938c81b           | Packman Repository           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Tumbleweed/                         
12 | http-opensuse-guide.org-4b7d5e29    | libdvdcss repository         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/                                     
13 | iridium                             | iridium                      | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://downloads.iridiumbrowser.de/openSUSE_Tumbleweed/         


In part, but more an exercise of control. It’s a big download and space consumer. Unless I’m waiting on a particular fix or know something is fubar, I like to not fix what ain’t broke. :slight_smile:

How do I lock it with a wildcard?
Examples:

  • zypper al kernel-defaul?
  • zypper al kerne?-de?ault
  • zypper al rnel-de

Technically the latter two each have two wildcards. :slight_smile: The last is a bit expansive, might catch something unintended.

I see. I have a fast broadband access with an unlimited download plan. Since I also use snapper, I figure that I can always revert back to a previous kernel in case the kernel introduces some bugs.

Thanks for showing me how to lock it with wildcards!