[Cialug] jessie apt-get lock out

Dan Hockey icepuck2k at gmail.com
Fri Jan 8 18:48:49 CST 2016


For some reason it is mounted as read only

mount / -o remount,rw
mount: cannot remount /dev/root read-write, is write-protected
the write protected must have been caused by errors.

fsck /dev/mmcblk0p1
is finding lots of errors.


On Fri, Jan 8, 2016 at 6:15 PM, Dan Hockey <icepuck2k at gmail.com> wrote:

> root at debian:/# rm -f /var/lib/apt/lists/lock
> rm: cannot remove '/var/lib/apt/lists/lock': Read-only file system
>
>
> On Fri, Jan 8, 2016 at 6:05 PM, chris rheinherren <c.rheinherren at gmail.com
> > wrote:
>
>> from a few internet searches that I've seen. you can try deleting the
>> /var/lib/apt/lists/lock file and see if it works again.
>>
>> On Fri, Jan 8, 2016 at 5:51 PM, Dan Hockey <icepuck2k at gmail.com> wrote:
>>
>> > root at debian:~# apt-get update
>> > Ign http://ftp.us.debian.org jessie InRelease
>> > Ign http://ftp.us.debian.org jessie Release.gpg
>> > Hit http://ftp.us.debian.org jessie Release
>> > W: Not using locking for read only lock file /var/lib/apt/lists/lock
>> > E: Couldn't create temporary file to work with
>> > /var/lib/apt/lists/ftp.us.debian.org_debian_dists_jessie_Release -
>> mkstemp
>> > (30: Read-only file system)
>> > W: Not using locking for read only lock file /var/lib/dpkg/lock
>> > root at debian:~#
>> >
>> >
>> > This is on a fresh install and this is what I got on the first try.
>> > Then I tried...
>> >
>> > root at debian:~# mount -o remount,rw /
>> > mount: cannot remount /dev/root read-write, is write-protected
>> >
>> > What should I try next?
>> > _______________________________________________
>> > Cialug mailing list
>> > Cialug at cialug.org
>> > http://cialug.org/mailman/listinfo/cialug
>> >
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
>>
>
>


More information about the Cialug mailing list