Unable to install sync-gateway on Ubuntu 18.04

I am following the instruction here
https://docs.couchbase.com/sync-gateway/current/get-started-install.html
but after i succesfully downloaded the .deb file, when i run the dpkg command I get the following error:

marchiotto@edalab-dev10:~$ sudo dpkg -i couchbase-sync-gateway-community_2.8.2_x86_64.deb 
(Reading database ... 241664 files and directories currently installed.)
Preparing to unpack couchbase-sync-gateway-community_2.8.2_x86_64.deb ...
Failed to stop sync_gateway.service: Unit sync_gateway.service not loaded.
Failed to disable unit: Unit file sync_gateway.service does not exist.
Unpacking couchbase-sync-gateway (2.8.2-1) over (2.8.2-1) ...
Setting up couchbase-sync-gateway (2.8.2-1) ...
mkdir: cannot create directory ‘/home/sync_gateway’: Permission denied
chown: cannot access '/home/sync_gateway/logs': No such file or directory
mkdir: cannot create directory ‘/home/sync_gateway’: Permission denied
chown: cannot access '/home/sync_gateway/data': No such file or directory
The runtime base directory does not exist "/home/sync_gateway".
dpkg: error processing package couchbase-sync-gateway (--install):
 installed couchbase-sync-gateway package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 couchbase-sync-gateway

Any help is appreciated

From the logs it looks like you don’t have permission to write to /home/sync_gateway

Is possible to install it on another directory?