SQL Server Linux(Ubuntu) Connection Options
Shared Memory and Named Pipes protocols are only available with SQL Server on Windows. 

Note the documentation links above call out "SQL Server (Windows only)" in the APPLIES TO header.