Problems installing nitrokey app on fedora 23

:question: Hello,

I’m trying to installl the nitrokey app from nitrokey.com/download on my fedora 23 system. However, this fails (see output below). Any suggestions?

Kind regards,

aanno

RedHat, CentOS, SuSE, RPM-based Linux amd64 rpm:

[tpasch@redsnapper tmp] $ sudo dnf install ~/Downloads/nitrokey-app-0.2-Linux.rpm 
Die letzte Prüfung auf abgelaufene Metadaten wurde vor 2:48:55 am Fri Feb 19 18:26:22 2016 ausgeführt.
Abhängigkeiten sind aufgelöst.
=================================================================================================
 Package                   Arch            Version                   Paketquelle           Größe
=================================================================================================
Installieren:
 libappindicator           x86_64          12.10.0-10.fc23           fedora                 41 k
 libdbusmenu               x86_64          12.10.2-9.fc23            fedora                 74 k
 libdbusmenu-gtk2          x86_64          12.10.2-9.fc23            fedora                 37 k
 libindicator              x86_64          12.10.1-5.fc23            fedora                 67 k
 nitrokey-app              x86_64          0.2-1                     @commandline          373 k

Transaktionsübersicht
=================================================================================================
Installieren  5 Pakete

Gesamtgröße: 592 k
Gesamte Downloadgröße: 219 k
Installationsgröße: 1.4 M
Ist dies in Ordnung? [j/N] : j
Pakete werden heruntergeladen:
determining the fastest mirror (1 hosts).. done.
(1/4): libappindicator-12.10.0-10.fc23.x86_64.rpm                 76 kB/s |  41 kB     00:00    
(2/4): libdbusmenu-gtk2-12.10.2-9.fc23.x86_64.rpm                 69 kB/s |  37 kB     00:00    
(3/4): libdbusmenu-12.10.2-9.fc23.x86_64.rpm                     113 kB/s |  74 kB     00:00    
(4/4): libindicator-12.10.1-5.fc23.x86_64.rpm                    294 kB/s |  67 kB     00:00    
-------------------------------------------------------------------------------------------------
Gesamt                                                           109 kB/s | 219 kB     00:02     
Transaktionsüberprüfung wird ausgeführt
Transaktionsprüfung war erfolgreich.
Transaktion wird getestet
Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Fehler bei der Transaktionsüberprüfung:
  file /etc/bash_completion.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/share/applications from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/share/locale from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/share/locale/de_DE from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/share/locale/de_DE/LC_MESSAGES from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/share/pixmaps from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /etc/bash_completion.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package fcoe-utils-1.0.30-3.git91c0c8c.fc23.x86_64
  file /etc/bash_completion.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package bash-completion-1:2.1-8.20150513git1950590.fc23.noarch
  file /etc/bash_completion.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package lldpad-1.0.1-2.git986eb2e.fc23.x86_64
  file /etc/udev from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package systemd-222-14.fc23.x86_64
  file /etc/udev/rules.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package systemd-222-14.fc23.x86_64
  file /etc/bash_completion.d from install of nitrokey-app-0.2-1.x86_64 conflicts with file from package opensc-0.15.0-4.fc23.x86_64

Fehler-Zusammenfassung
----------------------

I’ve also tried an alien-converted rpm version of Ubuntu 15.04 Vivid amd64 deb:

$ sudo dnf install ./nitrokey-app-0.2-2.x86_64.rpm 
Die letzte Prüfung auf abgelaufene Metadaten wurde vor 2:43:12 am Fri Feb 19 18:26:22 2016 ausgeführt.
Abhängigkeiten sind aufgelöst.
=================================================================================================
 Package                   Arch            Version                   Paketquelle           Größe
=================================================================================================
Installieren:
 libappindicator           x86_64          12.10.0-10.fc23           fedora                 41 k
 libdbusmenu               x86_64          12.10.2-9.fc23            fedora                 74 k
 libdbusmenu-gtk2          x86_64          12.10.2-9.fc23            fedora                 37 k
 libindicator              x86_64          12.10.1-5.fc23            fedora                 67 k
 nitrokey-app              x86_64          0.2-2                     @commandline          317 k

Transaktionsübersicht
=================================================================================================
Installieren  5 Pakete

Gesamtgröße: 536 k
Installationsgröße: 1.4 M
Ist dies in Ordnung? [j/N] : j
Pakete werden heruntergeladen:
[SKIPPED] libappindicator-12.10.0-10.fc23.x86_64.rpm: Already downloaded                        
[SKIPPED] libdbusmenu-12.10.2-9.fc23.x86_64.rpm: Already downloaded                             
[SKIPPED] libdbusmenu-gtk2-12.10.2-9.fc23.x86_64.rpm: Already downloaded                        
[SKIPPED] libindicator-12.10.1-5.fc23.x86_64.rpm: Already downloaded                            
Transaktionsüberprüfung wird ausgeführt
Transaktionsprüfung war erfolgreich.
Transaktion wird getestet
Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Fehler bei der Transaktionsüberprüfung:
  file / from install of nitrokey-app-0.2-2.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
  file /usr/bin from install of nitrokey-app-0.2-2.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64

Fehler-Zusammenfassung
----------------------

:exclamation: Hello again,

I now could (partly) answer the question: The problem described in my post is triggered by a know bug of alien. As alien is currently unmaintained (see joeyh.name/code/alien/), the bug probably never get fixed.

However, it seems to be possible to fix the rpm built by alien with

rpmrebuild -pe <rpm file>

(see ask.fedoraproject.org/en/questi … ilesystem/ for details).

However, even with that, still a modification after install is needed: You have to remove the plugdev group from /etc/udev/rules.d/40-nitrokey.rules (see stackoverflow.com/questions/2495 … ot-working why this is also needed).

With the 3 steps (alien, rpmrebuild, 40-nitrokey.rules modification) I could finally use nitrokey-app on fedora 23!

Cheers,

aanno

Thank you for the clarification. That maybe useful to other users.