Bug 1400654 - wireshark-gtk-2.2.2-3.fc26 scriptlet failures on upgrade
Summary: wireshark-gtk-2.2.2-3.fc26 scriptlet failures on upgrade
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: wireshark
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-01 17:41 UTC by Kevin Fenzi
Modified: 2019-01-19 19:46 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-21 08:54:38 UTC
Type: Bug


Attachments (Terms of Use)

Description Kevin Fenzi 2016-12-01 17:41:08 UTC
Upgrading   : wireshark-gtk-2.2.2-3.fc26.x86_64                                                                 34/75 
the primary link for wireshark must be /usr/sbin/wireshark
warning: %post(wireshark-gtk-2.2.2-3.fc26.x86_64) scriptlet failed, exit status 2
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk

Comment 1 Martin Sehnoutka 2016-12-02 08:54:47 UTC
.(In reply to Kevin Fenzi from comment #0)
> the primary link for wireshark must be /usr/sbin/wireshark

I've moved wireshark into /usb/bin directory yesterday (bug #1393855)

Could you provide me with more detailed description? e.g. complete output of `dnf update -v`.

Comment 2 Martin Sehnoutka 2016-12-02 15:39:28 UTC
Detailed description:

update-alternatives fails in %post scriptlet because the wireshark was moved from /usr/sbin to /usr/bin

Steps to reproduce:
1. Install the old version:
# rpm -q wireshark-gtk
wireshark-gtk-2.2.2-2.fc26.x86_64
# update-alternatives --list | grep wireshark
wireshark	auto	/usr/sbin/wireshark-gtk

2. Install the new version and watch it fail:
# dnf install ...
Upgrading: wireshark-2.2.2-3.fc26.x86_64 2/6 
Upgrading: wireshark-gtk-2.2.2-3.fc26.x86_64 3/6 
the primary link for wireshark must be /usr/sbin/wireshark
warning: %post(wireshark-gtk-2.2.2-3.fc26.x86_64) scriptlet failed, exit status 2
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk
Cleanup: wireshark-gtk-2.2.2-2.fc26.x86_64 4/6 
Cleanup: wireshark-2.2.2-2.fc26.x86_64 5/6
...

# rpm -q wireshark-gtk
wireshark-gtk-2.2.2-3.fc26.x86_64
# update-alternatives --list | grep wireshark
wireshark	auto	/usr/sbin/wireshark-gtk

Possible work around:
# update-alternatives --remove wireshark /usr/sbin/wireshark-gtk
# update-alternatives --install /usr/bin/wireshark wireshark /usr/bin/wireshark-gtk 10

Comment 3 nucleo 2016-12-03 12:05:13 UTC
The same in wireshark-qt

Upgrading   : wireshark-qt-2.2.2-3.fc26.i686

the primary link for wireshark must be /usr/sbin/wireshark
warning: %post(wireshark-qt-2.2.2-3.fc26.i686) scriptlet failed, exit status 2
Non-fatal POSTIN scriptlet failure in rpm package wireshark-qt
Non-fatal POSTIN scriptlet failure in rpm package wireshark-qt

Also wireshark.desktop from wireshark-qt can't run wireshark-qt. There is TryExec=/usr/sbin/wireshark in wireshark.desktop but both /usr/sbin/wireshark and /usr/bin/wireshark are missing.

Comment 4 Fedora End Of Life 2017-02-28 10:42:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 5 Martin Sehnoutka 2017-07-21 08:54:38 UTC
This bug has been fixed before f26 GA.

Comment 6 Garry T. Williams 2017-08-09 01:07:34 UTC
Not fixed again:

  Running scriptlet: wireshark-gtk-2.2.8-1.fc26.x86_64                    20/54 
  Upgrading        : wireshark-gtk-2.2.8-1.fc26.x86_64                    20/54 
  Running scriptlet: wireshark-gtk-2.2.8-1.fc26.x86_64                    20/54 
the primary link for wireshark must be /usr/sbin/wireshark
warning: %post(wireshark-gtk-2.2.8-1.fc26.x86_64) scriptlet failed, exit status 2
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk
Non-fatal POSTIN scriptlet failure in rpm package wireshark-gtk

$ uname -r
4.11.11-300.fc26.x86_64
$

Comment 7 Martin Sehnoutka 2017-08-09 07:03:09 UTC
Yes, I know. There was no fix in this update.

Comment 8 Martin Sehnoutka 2018-07-31 06:20:20 UTC
*** Bug 1610050 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.