My way of fixing Client on Ubuntu (16)

I have been working hard to try to fix why I have not got the ubuntu client to urbackup to work. After many expriment, I came to the following, which solved many problems.

Settings / File Backups / Default Folders to Save: -x -f -d /boot -n boot

Client ubuntu

sudo uninstall_urbackupclient
rm -Rf /usr/local/var/urbackup
sudo rm /usr/local/var/urbackup/server_idents.txt

sudo apt-key adv --recv-keys --keyserver 370C85D709D26407
echo “deb [arch=amd64]$(lsb_release -sc) $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/datto-linux-agent.list
sudo apt-get update
sudo apt-get install dattobd-dkms dattobd-utils

sudo su
TF=mktemp && wget “” -O $TF && sh $TF; rm $TF
sudo apt install -f

If you get three choices as well, option 1.

sudo urbackupclientctl add-backupdir -x -f -d /boot -n boot

((sudo apt-get remove --purge urbackup-server))
sudo urbackupclientctl start --full --client (<–IPClient)
sudo urbackupclientbackend -i -v debug
sudo urbackupclientctl list-backupdirs

sudo urbackupclientctl add-backupdir -d /boot

The command:

echo “deb [arch=amd64]$ (lsb_release -sc) $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/datto-linux-agent.list

really f…ed me up good.
Now i can’t install anything or even use the command:

sudo apt-get update

I get:

E: Type ‘“deb’ is not known on line 1 in source list /etc/apt/sources.list.d/datto-linux-agent.list
E: The list of sources could not be read.

What is the solution for this?

I solved it by applying the command:

sudo rm /etc/apt/sources.list.d/datto-linux-agent.list

Be very careful when following these instructions.
My advice is, if you have urbackup server and client in the same machine and want to backup your ubuntu - don’t follow the instructions above and don’t use urbacku

Best to follow the instructions here for the Ubuntu section to install dattobd (if you want to use dattobd):

To install the Linux client here:

If you copy & paste the above there is probably a problem with quotes or something, since it is not in code tags.