Running netatalk 2.2~beta4-1 on Debian Squeeze

Running netatalk 2.2~beta4-1 on Debian Squeeze is straightforward because the Wheezy release includes the package already. This article explains how to install the updated version using apt pinning.

Step 1: Add the wheezy sources to apt.

Using your favorite editor create the file /etc/apt/sources.list.d/wheeze.list

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

Step 2: Pin debian packages to a specific releases.

Create the file /etc/apt/preferences.d/default with contents:

Package: *
Pin: release a=stable
Pin-Priority: 500

Create the file /etc/apt/preferences.d/netatalk with the contents:

Package: netatalk
Pin: release a=testing
Pin-Priority: 1000

Package: libgcrypt11
Pin: release a=testing
Pin-Priority: 1000

Package: libgnutls26
Pin: release a=testing
Pin-Priority: 1000

Package: libgpg-error0
Pin: release a=testing
Pin-Priority: 1000

Step 3: Update apt and install the new netatalk.

# apt-get update
# apt-get install netatalk

Step 4:Finishing up.

That’s it. After this restart netatalk with:

# /etc/init.d/netatalk restart

Step 5: Clean up after the upgrade (optional).

If your volumes show up empty or are missing, see the file /usr/share/doc/netatalk/README.Debian for instructions to resolve the issue.

The newer version of netatalk uses Berkeley DB 4.8 or newer. This implied that if you upgraded from an older install, the old metadata caches will be incompatible. The README mentioned above explains how to perform an upgrade of these files.

We decided to remove the .AppleDB metadata databases with the command:

# find / -name .AppleDB -exec rm -rf {} \;
Posted in debian | Tagged , ,