When installation ends (different Android API's) there message that installation finished with errors. I tried to use default location (.../Android/Sdk) and change it - no difference. Logs:
It seems that it thinks that no space left on device:
2018-06-20 22:33:05,075 [d thread 2] WARN - ectedPackagesStep$CustomLogger - An error occurred while preparing SDK package Google APIs: No space left on device.
/tmp dir is only 4GB, problem in this.
I tried to use TMPDIR=/home/rs/Downloads ./studio.sh
but I saw nothing in Downloads and /tmp
was 100% used.
I'm able to download small (4.0.3 for instance) images one by one and after reboot.
But last time I didn't see /tmp:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3,6G 0 3,6G 0% /dev
tmpfs 743M 9,5M 734M 2% /run
/dev/sda3 14G 7,2G 6,1G 55% /
tmpfs 3,7G 55M 3,6G 2% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 3,7G 0 3,7G 0% /sys/fs/cgroup
/dev/sda4 279G 11G 254G 4% /home
/dev/sda1 188M 3,4M 184M 2% /boot/efi
tmpfs 743M 48K 743M 1% /run/user/1000
$ mount | grep tmp
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3742072k,nr_inodes=935518,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=760336k,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=760336k,mode=700,uid=1000,gid=1000)
$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
UUID=7733e159-e4e2-405b-b75b-52a4cca7c90c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=902E-7BE8 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda4 during installation
UUID=edd2b68c-8e92-45d7-9261-9ca3ddf2f7de /home ext4 defaults 0 2
# swap was on /dev/sda2 during installation
UUID=0d00f89e-3af0-4b46-ae0c-dcdbb82fcedb none swap sw 0 0
sudo apt autoremove
?