I put an Image of Ubuntu 18.04.3 onto a 32GB SD card. It came with no desktop, so I am trying to install xubuntu. When I try to install it using
sudo apt-get install xubuntu-desktop I get the following error:
You don't have enough free space in `/var/cache/apt/archives`
sudo apt-get autoclean
sudo apt-get clean and different variants of
sudo apt-get autoremove but nothing worked.
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 2.1G 1.4G 513M 74% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9B 0 1.9G 0% /dev/shm tmpfs 1.9G 2.5M 1.9G 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware tmpfs 381M 0 381M 0% /run/user/1000`
I'm new to linux, but why is my root (and filesystem in general) so small if my SD card is 32GB? And is there a way to increase root through the command line(maybe fdisk)? I don't have another linux machine that I can run Gparted on. But I do have a Windows laptop that could possibly do Gparted Live. I've never done that before so if that is the best solution, tips to get started would be much appreciated.
Don't know if it matters but I'm following the instructions here Raspberry Pi 4 Ubuntu Server/ Desktop 18.04.3 Image (unofficial) to try and get Ubuntu up and running xubuntu on my Rpi 4.
$ sudo parted -ls Model: SD SK32G (sd/mmc) Disk /dev/mmcblk0: 31.9GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File System Flags 1 1049kB 269MB 268MB primary fat32 boot,lba 2 269MB 31.9GB 31.6GB primary ext4
$ lsblk -f Name Fstyle Label UUID Mountpoint mmcblk0 |_mmcblk0p1 vfat system-boot E497-1FDF boot/firmware |_mmcblk0p2 ext4 writable bfa0733b-bdb9-4846-914a-45160bac3ed0 /