Problem in installing flair 3.0-2

Dear FLUKA and Flair experts,

I am trying to install the Flair 3.0-2 released recently. I have installed FLUKA 2011.3.0 and Flair 3.0-1 on ZorinOS (based on Ubuntu 18.04 LTS). I just uninstalled flair 3.0-1 and then tried to install the 3.0-2 version. However, when I made with the .deb package, the following problem appeared:

$ sudo dpkg -i flair_3.0-2_all.deb
Selecting previously unselected package flair.
(Reading database … 306281 files and directories currently installed.)
Preparing to unpack flair_3.0-2_all.deb …
Unpacking flair (3.0-2) …
dpkg: dependency problems prevent configuration of flair:
flair depends on flair-geoviewer; however:
Package flair-geoviewer is not installed.

dpkg: error processing package flair (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
flair

And when I tried to install geoviwer first, the following problem appreared:

$ sudo dpkg -i flair-geoviewer_3.0-2_ubuntu18.04_amd64.deb
Selecting previously unselected package flair-geoviewer.
(Reading database … 307220 files and directories currently installed.)
Preparing to unpack flair-geoviewer_3.0-2_ubuntu18.04_amd64.deb …
Unpacking flair-geoviewer (3.0-2) …
dpkg: dependency problems prevent configuration of flair-geoviewer:
flair-geoviewer depends on flair (= 3.0-2); however:
Package flair is not configured yet.

dpkg: error processing package flair-geoviewer (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
flair-geoviewer

It looks like Flair and geoviewer depends on each other and either first installed will trigger dependency problem from the other.

So, how to deal with this problem?

Dear yuxiao,

you can install flair and geoviewer at the same time with a single command:

sudo dpkg -i flair_3.0-2_all.deb flair-geoviewer_3.0-2_ubuntu18.04_amd64.deb

Dear Horvathd,

It works, thank you!

Hi @yuxiao
for installing manually flair, the instruction of @horvathd are perfect. If you want to add flair to the package manager to have it automatically updated please execute only once the instructions found at Flair-Download as below

  1. First install the public repository key
    $ sudo wget -q -O - https://cern.ch/flair/download/ubuntu/KEY.gpg | sudo apt-key add -
  2. Install the repository.
    $ sudo add-apt-repository 'deb [arch=all,amd64] https://cern.ch/flair/download/ubuntu/18.04 /'
  3. Type the command
    $ sudo apt install flair