This is due to the Ubuntu's pg_wrapper (more info man pg_wrapper).

The right way to solve it is to set the Barman's path_prefix setting to /usr/lib/postgresql/9.6/bin avoiding to use pg_wrapper to execute pg_receivexlog (See http://docs.pgbarman.org/release/2.1/#wal-streaming).

Regards,
Marco