Note: The PPA will install a whole bunch of mono libraries in your system. If you are not comfortable with it, this is not for you.

Install KeePass 2 in Ubuntu

Open a terminal and type: That’s all you need to get KeePass 2 working in Ubuntu.

Importing KeePassX database to KeePass 2

If you have been using KeePassX, your password database will be in .kdb form which is incompatible with KeePass2 .kdbx. Furthermore, when you try to import in your .kdb database to KeePass 2, it will show an error stating that the importing is only supported in Windows.

A way to get around this is to first export your .kdb database to KeePassX XML file.

Next, in your KeePass2, go to FIle -> Import. Select KeePassX XML as the format and choose the XML file that you have earlier exported.

Done.