March 16, 2013 4.2k views
Hi, After experimenting on another server I had installed webmin with virtual min but unfortunately this messed up my permissions, then I reinstalled from backup and my browser is telling me it cannot connect, then I restored from backup and I get this error when trying to sud apt-get install apache or proftpd to try and get my files back to start from scratch, what do I do? Thanks, Marcus
2 Answers
sorry, This error:

sudo: unable to open /var/lib/sudo/marcus/0: 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.
you might be booted to rescue mode, you will have mount your drive and use scp command to copy your files to another server

sudo mount -o remount,rw /

this will mount your drive which will give you access to your files.
Have another answer? Share your knowledge.