[G3 Original Android Development] tclayson:
I'm on the latest CM12 nightly (5/2/15) and I'm having some trouble trying to install certain apps.

Telegram & Google Now Launcher both won't install.

I download them in the play store, they try to install and they fail with the error 'Unknown error code during application installation: "-506"'

This is after a full wipe and install. Any idea what is causing this?

Thanks guys!

EDIT Here's the error in my logcat:

D/Finsky ( 9737): [1] 9.onPostExecute: Successfully unpacked gzipped APK to update org.telegram.messenger
D/Finsky ( 9737): [1] FastHtmlParser.fromHtml: Doing slow HTML parse due to unexpected tag <a href="h
I/installd( 292): free_cache(10654141) avail 4668465152
D/Finsky ( 9737): [1] 1.onPostExecute: Committing session 948008536 for org.telegram.messenger
D/Finsky ( 9737): [1] 4.installBeginning: Begin install of org.telegram.messenger
D/Finsky ( 9737): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4
D/Finsky ( 9737): [1] WorkerTask.onPreExecute: Verification Requested for id = 4, data=file:///data/app/vmdl948008536.tmp flags=18 fromVerificationActivity=false
D/Finsky ( 9737): [564] PackageVerificationService.getPackageInfo: Cannot read archive for file:///data/app/vmdl948008536.tmp in request id=4
D/PackageManager( 918): /data/app/vmdl948008536.tmp already staged; skipping copy
D/Finsky ( 9737): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4
D/PackageManager( 918): Renaming /data/app/vmdl948008536.tmp to /data/app/org.telegram.messenger-1
W/PackageManager( 918): Package org.telegram.messenger desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
E/installd( 292): cannot create dir '/data/data/org.telegram.messenger': File exists
E/installd( 292): Couldn't opendir /data/data/org.telegram.messenger: Permission denied
W/PackageManager( 918): Package couldn't be installed in /data/app/org.telegram.messenger-1
W/PackageManager( 918): com.android.server.pm.PackageManagerException: Unable to create data dirs [errorCode=-1]
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:5826)
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5375)
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:10717)
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11240)
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService.access$2400(PackageManagerService.java:270)
W/PackageManager( 918):	at com.android.server.pm.PackageManagerService$5.run(PackageManagerService.java:9165)
W/PackageManager( 918):	at android.os.Handler.handleCallback(Handler.java:739)
W/PackageManager( 918):	at android.os.Handler.dispatchMessage(Handler.java:95)
W/PackageManager( 918):	at android.os.Looper.loop(Looper.java:135)
W/PackageManager( 918):	at android.os.HandlerThread.run(HandlerThread.java:61)
W/PackageManager( 918):	at com.android.server.ServiceThread.run(ServiceThread.java:46)
I/art ( 918): Explicit concurrent mark sweep GC freed 245887(12MB) AllocSpace objects, 39(2MB) LOS objects, 24% free, 49MB/65MB, paused 1.109ms total 88.297ms
D/Finsky ( 9737): [1] PackageInstallerImpl.cancelSession: Canceling session 948008536 for org.telegram.messenger
E/Finsky ( 9737): [1] PackageInstallerImpl.handleCommitCallback: Error -506 while installing org.telegram.messenger: INSTALL_FAILED_INSUFFICIENT_STORAGE: Package couldn't be installed in /data/app/org.telegram.messenger-1: Unable to create data dirs [errorCode=-1]
W/Finsky ( 9737): [1] 4.installFailed: Install failure of org.telegram.messenger: -506 null
D/Finsky ( 9737): [1] InstallerTask.cancelCleanup: Cancel running installation of org.telegram.messenger