Revert "Don't set ubuntu-specific environment variables"

This reverts commit 60fa0016ad1b27d85953ed1efd386d21f67fb1fe.

That commit was unauthorised.