You are here

Ubuntu 18.04 as Apple File Server

Error message

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in drupal_strip_dangerous_protocols() (line 1458 of /home2/crephoto/public_html/techblog/includes/common.inc).

My recent upgrade to 18.04 Bionic Beaver went fairly smoothly. The final glitch was getting the Apple Filing Protocol (AFP) services running again. I've abandoned the use of Ubuntu for Time Machine backups, opting for a local hard drive solution instead. This just leaves file services utilizing afpd, netatalk, and avahi. My difficulty appeared to be related to the change from netatalk version 2 to 3, but not all my packages were updated in the process. I ended up following the well-documented procedure on the Netatalk Sourceforge Wiki which lists the dependencies (most of which were already installed), and steps for building the latest version of netatalk, currently 3.1.12. All my previously shared volumes re-appeared and co-exist happily with my Samba shares as well.