E: You don't have enough free space in /var/cache/apt/archives/

hi there,
I experience this below:

Need to get 64.4 MB of archives.
After this operation, 244 kB of additional disk space will be used.
E: You don’t have enough free space in /var/cache/apt/archives/.

I install my debian image in the 4Gb sd-card. I tried 8Gb, I still experience the same thing.
Some advice to install on the SD-card, but that’s what i did.


  1. How to install app onto the SD-card?
  2. when i check the capacity, df -h, why it doesnt show the full capacity of the SD card which is 4GB?
  3. Even when i used 8GB, I still see that it uses only 2GB, the rest of the sd card is “unallocated”. why?
    How to increase the capacity of the sd-card? (I believe this is because I used the image).


root@beaglebone:/var/lib/apt/lists# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 1.6G 1.6G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 100M 544K 99M 1% /run
/dev/mmcblk0p2 1.6G 1.6G 0 100% /
tmpfs 249M 0 249M 0% /dev/shm
tmpfs 249M 0 249M 0% /sys/fs/cgroup
tmpfs 100M 0 100M 0% /run/user
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/mmcblk0p1 96M 70M 27M 73% /boot/uboot



As an alternative to Robert’s answer …

If you have access to a Linux computer, you can plug the microSD card into the
Linux computer and use the application “Gparted” to expand the partition to the
full size of the card. Since “Gparted” has a GUI, you get to see what is going on.

— Graham

cd /opt/scripts/tools/
git pull || true
sudo ./grow_partition.sh
sudo reboot