Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I install the Matlab2009a to my computer successfully and when I try to activate it without using the internet (Activate manually without the Internet) and provide the path to license file. Then an error coming out

Could not complete Activation because the License File could not be written to disk. You might not have write permission on the License File or the folder. /home/linyulin/licenses/license_ubuntu_161051_R2010a.lic See your System Administrator for assistance. The specific error message text is:

/home/linyulin/licenses/ license_ubuntu_161051_R2010a.lic (Permission denied).

Thank you very much for your help. I'm really anxious about this problem because I have spent lots of time on this problem and really don't want to mass it up. Thank you again!

share|improve this question
what does the command ls -la linyulin/licenses/ say? – daithib8 May 26 '12 at 16:47

On Linux you get this error because you don't have permissions for the license folder. An easy way to get past this is by launching the activation script with sudo:

cd $MATLAB/R20***/bin/
sudo ./

($MATLAB/R20*** is your root MATLAB installation folder)

share|improve this answer


ls -la /home/linyulin/licenses/license_ubuntu_161051_R2010a.lic

to see what the permissions are on that file. If you don't own it, you could try

sudo chown linyulin /home/linyulin/licenses/license_ubuntu_161051_R2010a.lic

If that by itself doesn't make the activation go forward, you can try

chmod +x /home/linyulin/licenses/license_ubuntu_161051_R2010a.lic

to make it executable, or, failing everything else,

chmod 777 /home/linyulin/licenses/license_ubuntu_161051_R2010a.lic
share|improve this answer

You can try the instructions given by . Essentially, sudo chown -R linyulin:linyulin .matlab/. If that doesn't do it you could also do sudo chown -R linyulin:linyulin licenses/

share|improve this answer

do gksudo ./

This will most probably solve the permission issues and activate Matlab.

share|improve this answer
gksudo is not installed by default in Ubuntu. – Braiam Nov 13 '13 at 17:58
@Braiam That's only started with 13.04/13.10, I believe. Version is not given, but OP could be on 12.04. – chaskes Nov 13 '13 at 18:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.