Bug 1610050 - RPM install link error
Summary: RPM install link error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: wireshark
Version: 28
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-30 23:17 UTC by John Mellor
Modified: 2019-01-19 19:47 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-01-02 20:14:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Mellor 2018-07-30 23:17:01 UTC
Description of problem: Incorrect install link assumption


Version-Release number of selected component (if applicable):
wireshark-qt-1:2.6.2-1.fc28.x86_64


How reproducible:
N/A, Incorrect Installation issue


Steps to Reproduce:
1. normal dnf update


Actual results:
  Upgrading        : wireshark-qt-1:2.6.2-1.fc28.x86_64                    6/20 
  Running scriptlet: wireshark-qt-1:2.6.2-1.fc28.x86_64                    6/20 
the primary link for wireshark must be /usr/sbin/wireshark
warning: %post(wireshark-qt-1:2.6.2-1.fc28.x86_64) 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



Expected results: normal update


Additional info: system is an upgrade from F27 originally

Comment 1 Martin Sehnoutka 2018-07-31 06:20:20 UTC
This is a known issue coming from f26. See this comment for the workaround:
https://bugzilla.redhat.com/show_bug.cgi?id=1400654#c2

*** This bug has been marked as a duplicate of bug 1400654 ***

Comment 2 John Mellor 2018-07-31 23:51:53 UTC
Suggested workaround taken from the similar F26 bug does not work.  Please re-open issue and fix the wireshark packaging.

Workaround log:
$ sudo update-alternatives --remove wireshark /usr/sbin/wireshark-gtk
[sudo] password for john: 
/usr/sbin/wireshark-gtk has not been configured as an alternative for wireshark
$ update-alternatives --install /usr/bin/wireshark wireshark /usr/bin/wireshark-gtk 10
the primary link for wireshark must be /usr/sbin/wireshark

Comment 3 Martin Sehnoutka 2018-08-02 07:08:17 UTC
No, this issues won't be fixed. It is a mystery to me how this bug can be triggered 2 releases after the move from /sbin to /bin. Anyway, it is not important anymore, because Wireshark GTK GUI has been deprecated by upstream and it won't be available in Fedora 29.

Try this workaround, which is taken from RPM scriptlet:
update-alternatives --remove-all wireshark
update-alternatives --install /usr/bin/wireshark wireshark /usr/bin/wireshark-qt

Comment 4 Michal Ruprich 2019-01-02 20:14:19 UTC
This issue is gone in f29 and newer. It was caused by package gui split between GTK and QT. Wireshark in f29 is Qt only so this issue is no longer relevant.


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