Because it is available via Personal Package Archives for Ubuntu (PPA), installing KeePassX 2.0 Alpha 6 (look for the latest Alpha version/link in the “Latest News” section at the bottom of the home page) on Ubuntu is easier than you may think. All you have to do is add the correct PPA for KeePassX to your system, update the local repository index, and install the keepassx package. Here’s how:

sudo add-apt-repository ppa:keepassx/daily

Ignore warnings and press entere (note: since this is still in alpha state, it’s advisable to make backup copies of you database regularly. Fortunately KeePassX makes it easy to to this automatically. Adjust the preferences to your liking to accomplish this)

sudo apt-get update
sudo apt-get install keepassx