For marketers
who love technology
Home » » How to install keepass2 in debian squeeze

How to install keepass2 in debian squeeze

If you want to install Keepass2 under Debian Squeeze, you will have a problem: keepass2 is not in the official repositories. Only keepassX is available.

In this blog post I explain how to install Keepass2 nevertheless.

The KeePass Password Safe icon.
At first glance, I see two potential solutions:
  1. We can find the keepass2 package on the web, download it, and install it. That's the solution I chose.
  2. Otherwise, a perhaps cleaner solution would be to download the source package and compile it. That's cumbersome because Keepass is windows oriented.

The installation of a .deb package, is usually simpler. I cleaned a bit the packages on my machine, installed the main dependencies, and gave a try to the installation of the ubuntu Natty package.

sudo apt-get autoremove
sudo apt-get install -f
sudo apt-get install mono-devel xdotool
dpkg -i keepass2_2.15+dfsg-2~natty1_all.deb 

It worked !
If you have liked this article, please put a link to it on your Google+ profile are any other kind of web site: it will help others find it in the search engines. Thanks!

A screencapture from Keepass2

About Gilles


  1. nice one! Thanks saved me

  2. Wget fails with a 404 error. Is this a broken link ?

  3. Thanks Eric for pointing this out. I've updated the post accordingly. Does it work on your side with the new instructions?

  4. I downloaded the package "keepass2_2.25+dfsg-1_all.deb" from but could not install using dpkg or even aptitude.

    Dependency is not satisfiable: mono-runtime (>= 3.0~)

    The apt-add-repository is not available on my system.

    Suggestions ?

  5. I've added the ppa repo. Unfortunately, I get an error when I run "apt-get update":

    Err lucid/main i386 Packages
    404 Not Found
    W: Impossible de récupérer 404 Not Found

    I haven't found the updated info in your post. Was that the broken hyperlink ?

    Does it has to do with the fact that I'm running Debian Squeeze 32 bits ?

    1. Hello Eric,

      I have updated the post with a method that works on my side. Please tell me if it works for you too (it should!). Thanks

    2. Works like a charm ! Many thanks.