I face a not enough space left on device after attempting to do sudo apt upgrade on the device.
the same scenario happen if i try to update the cloud9 by pulling by following example in https://beagleboard.org/upgrade
i also try to follow https://www.hackster.io/175809/tidl-on-beaglebone-ai-1ee263 but all of these will fail at the same 'not enough space scenario'
originally i thought the 8GB sd card i use is really insufficient then i change to a much bigger one and realize problem persists....then it must be something wrong
below is my sudo apt update and the subsequent sudo apt upgrade procedure
debian@beaglebone:/var/lib/cloud9$ sudo apt update
[sudo] password for debian:
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://repos.rcn-ee.com/debian stretch InRelease [3,064 B]
Get:4 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2,365 B]
Get:7 http://deb.debian.org/debian stretch-updates/main armhf Packages [27.3 kB]
Get:8 http://repos.rcn-ee.com/debian stretch/main armhf Packages [1,066 kB]
Get:9 http://deb.debian.org/debian-security stretch/updates/main armhf Packages [484 kB]
Get:10 http://deb.debian.org/debian-security stretch/updates/contrib armhf Packages [1,764 B]
Get:11 http://deb.debian.org/debian-security stretch/updates/non-free armhf Packages [1,272 B]
Get:12 http://deb.debian.org/debian stretch/main armhf Packages [6,915 kB]
Get:13 http://deb.debian.org/debian stretch/contrib armhf Packages [42.1 kB]
Get:14 http://deb.debian.org/debian stretch/non-free armhf Packages [59.7 kB]
Fetched 8,906 kB in 17s (511 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
56 packages can be upgraded. Run 'apt list --upgradable' to see them.
debian@beaglebone:/var/lib/cloud9$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
chromium
The following packages will be upgraded:
base-files bb-cape-overlays bonescript e2fslibs e2fsprogs gpiod libcomerr2 libcpupower1 libcups2 libexpat1 libexpat1-dev libgd3 libglib2.0-0 libgpiod2 libicu57 libiio-utils libiio0
libldap-2.4-2 libldap-common libmariadbclient18 libnghttp2-14 libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip
libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libpam-systemd libpq5
libss2 libssl1.0.2 libssl1.1 libsystemd0 libudev-dev libudev1 libxslt1.1 linux-cpupower linux-libc-dev nginx nginx-common nginx-full openssh-client openssh-server openssh-sftp-server
openssl systemd systemd-sysv tzdata udev unzip usbutils
55 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 32.0 MB of archives.
After this operation, 194 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
subsequently i do a fdisk -l for my very huge sd card after reading about https://www.linuxquestions.org/questions/debian-26/no-space-left-on-device-880308/ but unsure if i can follow it
here's my fdisk output
debian@beaglebone:/var/lib/cloud9$ sudo fdisk -l
Disk /dev/mmcblk0: 119.3 GiB, 128043712512 bytes, 250085376 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf7146e7c
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 7372799 7364608 3.5G 83 Linux
Disk /dev/mmcblk1: 14.6 GiB, 15678308352 bytes, 30621696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x209da4b7
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 8192 30621695 30613504 14.6G 83 Linux
Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
debian@beaglebone:/var/lib/cloud9$