I ran into a few problems trying to mount my AFP share (netatalk) being hosted on my Solaris NAS from my Ubuntu 11.10 VM. These are the steps I took to get it to work.
# apt-get install libreadline6 libreadline-dev libreadline6-dev libgcrypt-dev libgmp3-dev libfuse-dev
Then I downloaded the latest version of afpfs-ng and installed from source.
# make install
To mount the volume use the following command:
$ mount_afp afp://user:firstname.lastname@example.org/sharename /media/AFP
It should be noted you can compile, install, and attempt to mount the share but will get the following error without
libgcrypt-dev libgmp3-dev packages installed.
Mounting 192.168.1.101 from User on /media/AFP
Could not pick a matching UAM