Fix error: could not open file /var/lib/pacman/sync/apricity-core.db: Unrecognized archive format error

I don’t know what I’ve done when I want to upgrade android studio on my apricity box. The error is clear :

error: could not open file /var/lib/pacman/sync/apricity-core.db: Unrecognized archive format

The solution actually easy 🙂

# rm -R /var/lib/pacman/sync/

and then

# pacman -Syuf

save and still see error 🙂

Well, all solved after follow this guide carefully.

Case closed!

How to Install Kotlin Language in Apricity Linux

Today I stumble upon a new language that looks promising in the future. Yes, its Kotlin Language. The syntax very ‘industrial minded’ in my opinion but I like it. I have put these 2 books for my next to buy for future reference :

Kotlin for Android Developers: Learn Kotlin the easy way while developing an Android App

Published by Createspace, on demand book publisher from Amazon. So far the book got 3 average reviews but I believe its enough for newbie android developer that looking for ‘other’ way than facing java in beginning 🙂

Kotlin in Action

Published by Manning, well known publisher. So far the book not released yet but the book author also developer of Kotlin.

Ups, back to installation. Lets get start!

Install Kotlin in Linux

$ curl -s “” | bash

$ source “/home/alamsyahr/.sdkman/bin/”

$ sdk help

==== BROADCAST =================================================================
* 25/07/16: Groovyserv 1.1.0 released on SDKMAN! #groovyserv
* 21/07/16: Grails 3.2.0.M2 released on SDKMAN! #grailsfw
* 18/07/16: Gradle 2.14.1 released on SDKMAN! #gradle

Usage: sdk <command> [candidate] [version]
sdk offline <enable|disable>

install   or i    <candidate> [version]
uninstall or rm   <candidate> <version>
list      or ls   [candidate]
use       or u    <candidate> [version]
default   or d    <candidate> [version]
current   or c    [candidate]
outdated  or o    [candidate]
version   or v
broadcast or b
help      or h
offline           [enable|disable]
selfupdate        [force]
flush             <candidates|broadcast|archives|temp>

candidate  :  the SDK to install: groovy, scala, grails, akka, etc.
use list command for comprehensive list of candidates
eg: $ sdk list

version    :  where optional, defaults to latest stable if not provided
eg: $ sdk install groovy

$ sdk install kotlin
==== INTERNET NOT REACHABLE! ===============================

Some functionality is disabled or only partially available.
If this persists, please enable the offline mode:

$ sdk offline


This command is not available while offline.

$ sdk install kotlin

==== BROADCAST =================================================================
* 26/07/16: Gaiden 1.1 released on SDKMAN! #gaiden
* 25/07/16: Groovyserv 1.1.0 released on SDKMAN! #groovyserv
* 21/07/16: Grails 3.2.0.M2 released on SDKMAN! #grailsfw

Downloading: kotlin 1.0.3

In progress…

######################################################################## 100.0%

Installing: kotlin 1.0.3
Done installing!

Do you want kotlin 1.0.3 to be set as default? (Y/n): y

Setting kotlin 1.0.3 as default.

Testing if Kotlin Present in System

$ kotlin -version

Kotlin version 1.0.3 (JRE 1.8.0_102-b14)

$ kotlinc -version

info: Kotlin Compiler version 1.0.3

Looks great. I can follow next step in manual 🙂

Setting New PHP Development with Apricity OS & VirtualBox : Part 4 – Connecting Shared Folder, Setting PHP-FPM and Nginx


Host Activities

Create document root folder

In last post I already write about PHP installation in Ubuntu 14.04 LTS server 32 bit. All those PHP must have their own place and I already create the folders in VirtualBox Host (Apricity OS) within public_html folder :

php52; for location of testing on php 5.2.17

php53; for location of testing on php 5.3.29

php54; for location of testing on php 5.4.33

php55; for location of testing on php 5.5.34

php56; location of testing on php 5.6.20

php70; location of testing on php 7.0.5

Each folder already has file info.php with this code :




Continue reading

Setting New PHP Development with Apricity OS & VirtualBox : Part 3 – Install PHP 5.2, 5.3, 5.4, 5.5, 5.6 and 7.0 on single Ubuntu Server 14.04 LTS 32 bit

The application sholud be work on PHP 5 is no longer relevant term for my team. Client use more precision term like PHP 5.2.17, PHP 5.3.3 etc. Its insane to support checking all those claim. The only ‘fair’ play assumption is testing it with more common version. Like PHP 5.2 I decide to use latest version of 5.2 family like 5.2.17.

In this post I try to retry available post that already use same approach but using Ubuntu Server 16.04 LTS that use 64 bit architecture while I use 32 bit Ubuntu 14.04 server for this case.

The Plan

List of Supported PHP version in this post including from  museum are :

5.2 -> 5.2.17

5.3 -> 5.3.29

5.4 -> 5.4.33

5.5 -> 5.5.34

5.6 -> 5.6.20

7.0 -> 7.0.5

Those PHP version will be install in single VM that tun Ubuntu 14.04 server with memory 1GB. In case the memory not fit the process then I can add it easily 🙂


Install base package and friends

sudo apt-get install -y nginx git autoconf lynx wget build-essential libxml2-dev libssl-dev libbz2-dev libcurl4-openssl-dev  libpng12-dev libfreetype6-dev libxpm-dev libmcrypt-dev libmhash-dev libmysqlclient-dev libjpeg62-dev freetds-dev libjson-c-dev re2c

Setting Local Environment on Ubuntu 14.04 Server

sudo nano /etc/environment

Add these lines :


save. Continue reading

Setting New PHP Development with Apricity OS & VirtualBox : Part 2 – Install and Configure Ubuntu Server 14.04 LTS Guest

In last section I already write about setting VirtualBox for initial preparation. This time I’ll continue with Ubuntu Server 14.04 LTS install.

In this section nothing new beside next and next. One thing I need to use in install the server is only use OpenSSH server when server prompt available package during install.

For Part 1, click here.

Configuration Ubuntu Server 14.04 LTS

To continue with configuration step I prefer to do it from terminal. Open terminal from Apricity OS and type :

ssh [email protected] -p 2222

note : ubuntu is username that I use for my installation and server 123456.

Port 2222 is port that I use for port forwarding.

Like this one.

ssh [email protected] -p 2222

[email protected]’s password:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-27-generic i686) Continue reading