fatal: Could not change back to '/root': Permission denied

3.6k Views Asked by At

I'm trying to install MaryTTS on ubuntu 16.4. but when I hit the line

sudo -u mary git clone https://github.com/marytts/marytts.git /local/mary/marytts

fatal: Could not change back to '/root': Permission denied

link tutorial, and link

1

There are 1 best solutions below

0
mikep On BEST ANSWER

When running command you are probably in homedir ~ (/root) so before sudo command switch to e.g. /tmp which has more open permissions

cd /tmp sudo -u mary git clone https://github.com/marytts/marytts.git /local/mary/marytts