dpkg:错误:无法访问dpkg状态区域:只读文件系统

我是这个操作系统的新手

我安装了Ubuntu 12.10,我发现使用它非常有趣。

然后,一旦我从ubuntu软件安装chromn,我得到了

I/O Error 

之后我无法安装任何应用程序。

 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. 

当我打字

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

我尝试了许多解决方案

 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. 

没用过,我真的需要你的帮助。

谢谢

尝试使用:

 sudo mount -o remount /dev/sda1 

如果sda1是你的硬盘。

尝试删除锁定文件即

 /var/lib/dpkg/lock 

然后跑

 dpkg --reconfigure -a 

这个错误;

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

软件升级中断的原因。

您也可以点这个链接 !

试试这个

 sudo mount / -o remount,rw 

然后运行:

 sudo dpkg --configure -a 

由于这两个解决方案都完成了一半,我根据它们添加了我 运行do-release-upgrade时按ctrl+c我遇到了这个问题。

我使用lsblkfdisk -l找出我需要重新安装的分区,让我们称之为/dev/x并将其挂载到/

我使用dmesg来确定分区是否有任何问题。 我使用fsck /dev/x来修复错误,如果有任何和mount / -o remount,rw在读写模式下重新安装分区。

之后我运行pkill dpkg ,最后运行dpkg --reconfigure -a