Installing KeePassX 0.4 on Ubuntu 16.04

Download the KeePassX 0.4 .DEB from  https://launchpad.net/ubuntu/xenial/amd64/keepassx/0.4.3+dfsg-0.1ubuntu1

sudo dpkg -i keepassx_0.4.3+dfsg-0.1ubuntu1_amd64.deb

sudo apt-get install -f