Search code examples
permissionsmarytts

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


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


Solution

  • 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