Page 1 of 1

Matrix on the NanoPi sync-available problem

Posted: Wed Dec 14, 2016 6:42 pm
by davef
I have a NanoPi running some fairly big applications, ie PHP5 and Apache2 and when I do free I have about 5M. I can do a sync-available on this unit.

I want to incorporate the Matrix code, so I am building a system on another NanoPi. This unit has PHP5 but no Apache2. I updated Debian Jessie on it and then tried sync-available. I got this error:

Code: Select all

 dpkg: unrecoverable fatal error, aborting: failed to allocate memory: Cannot allocate memory


Doing free shows 1M, so following some on-line advise I did:

Code: Select all

echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches



This gives me 8-16M, but when I do sync-available I still get the error and free shows 1M.

Can anyone suggest where the problem might be?

Thanks,
Dave

Re: Matrix on the NanoPi sync-available problem

Posted: Thu Dec 15, 2016 8:23 am
by davef
The problem is that /var/cache/apt/archives is too full.

Run:

Code: Select all

apt-get autoclean