Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu 12.04 LTS and I tried to upgrade to Ubuntu 12.10. When I clicked in the Update Manager Upgrade a messagebox apeared:

Can not run the upgrade. This usually is caused by a system where /tmp is mounted noexec. Please remount without noexec and run the upgrade again.

I tried to make /tmp executable in Terminal with the following command:

mount -o remount,exec /tmp /var/tmp

I pressed Enter and I got the following message from Terminal:

mount: only root can do that

What should I do now to make /tmp executable and upgrade the OS.

share|improve this question
2  
Welcome to Ask Ubuntu! Could you include the output of cat /proc/mounts in your question? To be sure about the configuration on your system. –  gertvdijk Jun 22 '13 at 14:28
    
You need to mount it as root using the sudo command like this sudo mount -o remount,exec /tmp /var/tmp –  Scott Goodgame Jun 22 '13 at 15:11

2 Answers 2

up vote 5 down vote accepted

You must to have root privileges. For this, put sudo in front of the command:

sudo mount -o remount,exec /tmp

When you are asked about password, just insert your usual user password.

share|improve this answer
    
This command doesn't work for me. Instead I get a : "mount: /tmp not mounted or bad option" error –  Dark Star1 Apr 14 at 21:21

Privileges and permissions in linux can be confusing. I recommend reading this before you start using sudo. Once you understand the difference between root, sudo, and normal user, you'll have a much better grasp of why this error happened (and *nix in general). See also the man pages for chown and chmod.

share|improve this answer

Your Answer

 
discard

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.