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

ARO56

New Member
Oct 26, 2023
19
2
3
Hello, i am using Proxmox more than a year now for an Homeassistant installation.

Now i want to set up a new container and i saw that i can´t update the system.

I received the error "You don't have enough free space in /var/cache/apt/archives/."

I searched in the net and found some solutions with
"sudo apt clean"
"sudo apt autoremove"

The problem is sudo is not installed and if i try, i get the same message
You don't have enough free space in /var/cache/apt/archives/ to install sudo.

root@pve:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 1.7M 6.3G 1% /run
/dev/mapper/pve-root 94G 94G 0 100% /
tmpfs 32G 49M 32G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
efivarfs 192K 109K 79K 59% /sys/firmware/efi/efivars
/dev/nvme0n1p2 1022M 12M 1011M 2% /boot/efi
/dev/fuse 128M 20K 128M 1% /etc/pve
192.168.1.15:/Proxmox_Backup 35T 19T 16T 55% /mnt/pve/QNAP_NAS
root@pve:/#


I see that there is no space left on:
/dev/mapper/pve-root

I try to find a solution in this forum but i cant see it.

Please know, that i am a linux beginner (Install only with copy and paste :)

Can sombody help me please ?

Thank you and best regards
Andreas


I deleted 3 other containers which were not in use
But same result
 
Last edited:
First show where some space could be get with "du -sk /tmp/* /var/tmp/* /var/log/* /var/lib/vz/*"
 
Hi Waltar thanks for answering !!
this is the result:

----------------------------
root@pve:~# du -sk /tmp/* /var/tmp/* /var/log/* /var/lib/vz/*
8 /tmp/systemd-private-7590a135c1574147bee01defa160d592-chrony.service-A6xJm3
8 /tmp/systemd-private-7590a135c1574147bee01defa160d592-systemd-logind.service-BmajAQ
4 /var/tmp/pve-reserved-ports
8 /var/tmp/systemd-private-7590a135c1574147bee01defa160d592-chrony.service-Zth9Dp
8 /var/tmp/systemd-private-7590a135c1574147bee01defa160d592-systemd-logind.service-X9NvvV
0 /var/log/alternatives.log
4 /var/log/alternatives.log.1
4 /var/log/alternatives.log.2.gz
4 /var/log/alternatives.log.3.gz
4 /var/log/alternatives.log.4.gz
4 /var/log/alternatives.log.5.gz
4 /var/log/alternatives.log.6.gz
4 /var/log/alternatives.log.7.gz
56 /var/log/apt
0 /var/log/btmp
0 /var/log/btmp.1
4 /var/log/ceph
4 /var/log/chrony
4 /var/log/corosync
0 /var/log/dpkg.log
24 /var/log/dpkg.log.1
4 /var/log/dpkg.log.2.gz
36 /var/log/dpkg.log.3.gz
0 /var/log/faillog
4 /var/log/fontconfig.log
4 /var/log/glusterfs
1124 /var/log/ifupdown2
147508 /var/log/journal
4 /var/log/lastlog
4 /var/log/lxc
4 /var/log/private
3640 /var/log/pve
28 /var/log/pveam.log
56 /var/log/pveam.log.0
4 /var/log/pve-firewall.log
4 /var/log/pve-firewall.log.1
4 /var/log/pve-firewall.log.2.gz
4 /var/log/pve-firewall.log.3.gz
4 /var/log/pve-firewall.log.4.gz
4 /var/log/pve-firewall.log.5.gz
4 /var/log/pve-firewall.log.6.gz
4 /var/log/pve-firewall.log.7.gz
584 /var/log/pveproxy
0 /var/log/README
8 /var/log/runit
4 /var/log/samba
24 /var/log/vzdump
44 /var/log/wtmp
89738312 /var/lib/vz/dump
4 /var/lib/vz/images
5399384 /var/lib/vz/template
root@pve:~#
 
Last edited:
I see you are using /mnt points for NAS. Most likely you wrote data to the local /mnt folder instead of to the supposedly mounted NW storage (was inaccessible at the time).

Showing output for: du -h -x -d1 / will confirm this.
 
I see you are using /mnt points for NAS. Most likely you wrote data to the local /mnt folder instead of to the supposedly mounted NW storage (was inaccessible at the time).

Showing output for: du -h -x -d1 / will confirm this.
Hi thanks

here the result
can you see if it is the problem ?


root@pve:~# du -h -x -d1 /
2.3G /usr
4.0K /opt
4.0K /home
36K /tmp
4.0K /media
5.0M /etc
16K /lost+found
94M /boot
12K /mnt
92G /var
56K /root
4.0K /srv
94G /
root@pve:~#
 
Last edited:
Your /mnt is not the problem - 12k is normal. But /var has 92G - that is using most of your total space. Backups maybe in /var/lib/vz/dump/ ? Check & delete / move to another storage as appropiate.

Check size with du -h -x -d1 /var/lib/vz/dump/
 
  • Like
Reactions: RanchoHam
Most all space of your 94g "/" is used here in that dump folder. See there what you need further and better move that to your nas space.
Thanks i will try tomorrow and give you the answer.
i appreciate your fast help
 
Hello yes there are a lot of waste files in this folder and this should solve of my problem.
Thank you very much again and best regards Andreas
 
  • Like
Reactions: waltar
I searched in the net and found some solutions with
"sudo apt clean"
"sudo apt autoremove"

The problem is sudo is not installed ...
@ARO56 got past this, but for someone else who might find this and have a similar question...
You don't need to sudo apt ... because you are already root, sudo lets you execute a command as if you were root. PVE's >_Shell buttton is equivalent to sudo su - root which gives you a shell as if you logged in as root. (That may even be what it does behind the scenes. I don't know as I am not a proxmox programmer.)
 
Your /mnt is not the problem - 12k is normal. But /var has 92G - that is using most of your total space. Backups maybe in /var/lib/vz/dump/ ? Check & delete / move to another storage as appropiate.

Check size with du -h -x -d1 /var/lib/vz/dump/
Perfect solution. Thanks!