I get the error like this:
root@DarkEnergy:~# apt-get install x-window-system
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The...