16.03.2014
by Esa Turtiainen
tags: Android cyanogenmod

I am using CyanogenMod 10.2. (Android 4.3.1) in my Galaxy S3. Now a dozen of applications fail to update. They try again and again but the result is always "Insufficient storage available".

Some of the problematic applications were major, like Google Chrome, Netflix and Lync.

It starts to be a problem for my data plan and battery usage when e.g. Google Chrome tries to update every day but fails.

There are many hints in the net but this article was on the right track.

It simply states that there is extra information left in:

/data/app-lib/<application_name>-<number>/

What I found out is that that the failed applications have created always two of those directories, one with "name-1" and another "name-2".

I have not proven this yet, but my theory is that if there are two versions of that directory, "name-1" and "name-2", the new installation fails with "insufficient storage available". [*]

The problem disappears if I delete the directory "name-2" and make the update. It has worked every time.

Deleting "name-1" does not solve the problem.

The directory may contain some important information. I have not noticed problems after delete and update. However, it is not good idea to delete the directory unless you have an update waiting. But it sounds safe to uninstall, delete possible leftover directories and reinstall.

[*]All the applications that have problems have two versions in my systems. Few non-problematic applications have two versions of the directory as well, but it is possible that they do not have had updates yet.