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 am a newbie in this operating system

I installed Ubuntu 12.10 and I found it very interesting to use.

Then once I install chromn from ubuntu software I got

I/O Error

After that I could not install any application.

sudo apt-get install unrar
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

When I type

sudo dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system

I have tried many solutions like

sudo apt-get autoremove && sudo apt-get clean && sudo apt-get autoclean
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

No used, I am really need your help.

Thank

share|improve this question
add comment

2 Answers 2

Try deleting the lock file i.e

/var/lib/dpkg/lock

and then run

dpkg --reconfigure -a

This error;

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

causes when software upgrade is interrupted.

You can also follow this link!

share|improve this answer
    
I think deleting the lock file do the trick After I delete this lock file I could install apt-get install unrar –  sayvortana Mar 19 '13 at 9:58
    
I could not vote you up since I don't have enough reputation THank –  sayvortana Mar 19 '13 at 9:59
    
I tried to install another software I got fopen: Input/output error debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Read-only file system dpkg: error processing man-db (--unpack): subprocess installed post-installation script returned error exit status 1 Processing triggers for hicolor-icon-theme ... dpkg: unrecoverable fatal error, aborting: unable to flush updated status of hicolor-icon-theme': Read-only file system touch: cannot touch /var/lib/update-notifier/dpkg-run-stamp': Read-only file system E: Sub-process /usr/bin/dpkg returned an error code (2) –  sayvortana Mar 19 '13 at 10:49
add comment

Try using:

sudo mount -o remount /dev/sda1

If sda1 is your hard disk.

share|improve this answer
    
I got this error mount: cannot remount block device /dev/sda6 read-write, is write-protected –  sayvortana Mar 19 '13 at 9:34
    
Can you post the result of: mount -l –  smile Mar 19 '13 at 9:45
    
It just show mount: cannot remount block device /dev/sda6 read-write, is write-protected –  sayvortana Mar 19 '13 at 9:50
    
Ok, can you create a file? for example doing: touch test and on the other hand, can you paste your /etc/fstab? –  smile Mar 19 '13 at 9:53
    
Thank smile, After I delete /var/lib/dpkg/lock I could install application again If there are any error I will post it –  sayvortana Mar 19 '13 at 10:02
show 1 more comment

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.