wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Joe Doss <joe@solidadmin.com>
To: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Fedora/CentOS error: wireguard-dkms-1:0.0.20180420-1.fc28.noarch: erase failed
Date: Mon, 14 May 2018 14:44:48 -0500	[thread overview]
Message-ID: <f5c5a4c8-e20b-d810-909a-12ed0129b0a9@solidadmin.com> (raw)

One of my coworkers stumbled on this error this morning where the 
WireGuard DKMS module would get removed by a kernel update and leave the 
wireguard-dkms-0.0.20180420-1.fc28.noarch RPM hanging out where it 
couldn't uninstall correctly. You will see this error on a dnf/yum update:

Failed:
   wireguard-dkms.noarch 1:0.0.20180513-1.fc28

You can verify the issue with this command:

# rpm -qa |grep wireguard-dkms
wireguard-dkms-0.0.20180513-1.fc28.noarch
wireguard-dkms-0.0.20180420-1.fc28.noarch

You will see the old snapshot RPM won't manually be removed like this:

# rpm -e wireguard-dkms-0.0.20180420-1.fc28.noarch
error: %preun(wireguard-dkms-1:0.0.20180420-1.fc28.noarch) scriptlet 
failed, exit status 3
error: wireguard-dkms-1:0.0.20180420-1.fc28.noarch: erase failed

You can fix this easily with:

# dkms install -m wireguard -v 0.0.20180420

Verify it is installed:

# dkms status
wireguard, 0.0.20180420, 4.16.6-302.fc28.x86_64, x86_64: installed 
(WARNING! Diff between built and installed module!)
wireguard, 0.0.20180513, 4.16.6-302.fc28.x86_64, x86_64: built
wireguard, 0.0.20180513, 4.16.7-300.fc28.x86_64, x86_64: installed

Manually remove the old snapshot RPM:

# rpm -e wireguard-dkms-0.0.20180420-1.fc28.noarch

Verify that it is uninstalled:

# rpm -qa |grep wireguard-dkms
wireguard-dkms-0.0.20180513-1.fc28.noarch

This issue seems to be a pretty rare edge case, and the fix is easy. I 
will try and improve the RPM so this can't happen in the future. Any 
ideas from the list on how to prevent this edge case are welcome.

Joe




-- 
Joe Doss
joe@solidadmin.com

             reply	other threads:[~2018-05-14 19:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-14 19:44 Joe Doss [this message]
2018-05-15 13:21 ` Fedora/CentOS error: wireguard-dkms-1:0.0.20180420-1.fc28.noarch: erase failed Germano Massullo
2018-05-15 14:49   ` Joe Doss
2018-05-15 15:01     ` Germano Massullo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5c5a4c8-e20b-d810-909a-12ed0129b0a9@solidadmin.com \
    --to=joe@solidadmin.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).