Netatalk is an Open Source implementation of AFP. To get Netatalk you have to perform a custom build from the source code. To start: open system -> Administration -> Software Sources. Check the Source Code Box then click on close and click reload.
Then open a terminal and type the following commands:
sudo apt-get build-dep netatalk
sudo apt-get install cracklib2-dev fakeroot libssl-dev
sudo apt-get source netatalk
cd netatalk-2*
Next build the Netatalk package using:
sudo DEB_BUILD_OPTIONS=ssl dpkg-buildpackage -rfakeroot
sudo dpkg -i ~/netatalk_2*.deb
echo “netatalk hold” | sudo dpkg –set-selections
That’s it.