Installing Barry on Debian or Ubuntu or Mint


There are two recent non-Barry bugs popping up that are making this install process just a little bit more tricky for Debian/Ubuntu/Mint users.

One is a bug in apt-get, which causes downloads to stop with an error if one of the HTTP header lines is longer than 360 characters. Normally, this bug is not encountered, but it is encountered on

The Barry repositories on netdirect are setup to redirect all large binary file downloads to the appropriate file on sourceforge. The apt repo metadata, such as signatures and checksums are downloaded from netdirect's server itself, and the binary files are checked against them. includes a cookie in one HTTP header line that is about 550 characters long. This has been causing trouble for a number of users.

Fortunately, the 360 character limit should be removed eventually, as this has been fixed upstream, according to this Debian bug report.


If, after following the usual steps below, you encounter the "360 char limit" error, there is a workaround. Go to the Barry file download page and navigate to your distro and platform. For example, if you are using squeeze on 64bit, navigate through: bmbuild/dists/squeeze/main/binary-amd64. Then download all the .deb files into your /var/cache/apt/archives/ directory, and install again. Apt will notice the existing files, check them, and resolve dependencies for you.

Sorry for the inconvenience. We now return to the usual documentation...

The Setup

Starting with the 0.18.x version series, Barry and OpenSync binary packages are available via apt-get.

To install the latest version of Barry onto Debian Squeeze, add the following line to your /etc/apt/sources.list file:

deb squeeze main

If you only want to use a specific version of Barry, you can change the URL from "barry-latest" to, for example, "barry-0.18.3". Check out the latest available versions at the Sourceforge file list page.

There are multiple versions of Ubuntu available. Replace the word "squeeze" above with one of the following:

  • ubuntu1004
  • ubuntu1104
  • ubuntu1110
  • ubuntu1204

For Mint, pick the version of Debian or Ubuntu that your version of Mint is based on.

Finally, you will need to update your apt keyring with the following key:

        82DE DE11 74C1 0EA7 C55D  5679 3B52 35AE B6C2 250E

One way to fetch this key is by using gpg:

        gpg --keyserver --recv-key B6C2250E
        gpg --armor --export B6C2250E > barry.key
        apt-key add barry.key

The Packages

Barry is split up into multiple binary packages. For example, if you want the GUI backup program, you will also need the Barry library.

For most non-development systems, you will need:

  • libbarry18
  • barry-util
  • barrybackup-gui
  • barrydesktop

For syncing, you will also need one of the available versions of OpenSync (either 0.2x, or 0.39). Note that OpenSync 0.39 is sometimes called 0.4x.

The 0.2x series includes the following packages:

  • libopensync0
  • msynctool
  • opensync0-plugin-barry
  • opensync0-plugin-evolution
  • opensync0-plugin-file
  • opensync0-plugin-kdepim

The 0.4x series includes the following packages:

  • libopensync1
  • osynctool
  • opensync1-plugin-barry
  • opensync1-plugin-evolution
  • opensync1-plugin-evolution3
  • opensync1-plugin-file
  • opensync1-plugin-vformat
  • opensync1-plugin-xmlformat

There are 3 convenience packages: binarymeta2x, binarymeta4x, and binarymeta-everything. Install these if you want to install everything.

For development systems, you will need the following additional packages:

  • libbarry-dev


Everything depends on the following 3 packages: libbarry18, libopensync0, and/or libopensync1. Remove them, and the rest will follow.