After you download the source (currently the latest version of the 0.4 series is 0.4.4).
Extract the Tarball
tar -xvf keepassx-0.4.4.tar.gz
Fix the Source
The build process currently fails as standard in Ubuntu 18.04 due to a missing include directive. This needs to be added as follows:
- Open the source file
keepassx/src/lib/random.cpp
using a text editor.
- Add the line
#include <unistd.h>
immediately before the line #include <QCryptographicHash>
and save the file.
After editing, the random.cpp
file should look like:
...
#include <unistd.h>
#include <QCryptographicHash>
...
Install the Dependencies
sudo apt install qt4-default libxtst-dev build-essential
Build and Install
Ensure you are in the root folder of the source (~/Downloads/keepassx-0.4.4
for example).
qmake
make
sudo checkinstall make install
KeePassX V0.4.4 should now be available within the launcher.
sudo apt install keepassx
, orkeepassxc
orkeepass2