Check the permission of the file path with the following command.
stat -c “%a %n” /name-of-filepath
Change the permission of the file path to be editable with the following command.
sudo chmod 777 /name-of-filepath
(be sure to change it back to it’s previous permission after finished)