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

After I installed experimental Nvidia drivers, Ubuntu will not boot. How can I remove the drivers from recovery mode?

If I choose recovery mode and in the menu choose "root" (drop to root shell prompt), and then try to use the command sudo apt-get remove --purge nvidia-*

it says:

sudo: unable to open /var/lib/sudo/thakang/console: read-only file system

W: Not using locking for read only lock file /var/lib/dpkg/lock  
E: Unable to write to /var/cache/apt/ 
E: the package lists or status file could not be parsed or opened.

I have used login and logged in so my shell now shows :~$

Thank you

share|improve this question
possibly related: about stalling fsck in recovery mode. – guntbert Feb 3 '13 at 20:43

You need to mount your system first in read/write mode:

mount -o remount,rw /
share|improve this answer

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.