What to do when Debian's Apt archives are full
Cleaning Day

© Lead Image © Danila Krylov, 123RF.com
Full Apt archives might be unexpected, but there are a few solutions if you encounter the issue.
After decades of using Linux, I often imagine that I know my way around. Yet, humblingly, sometimes it can still surprise me. The latest example came with the sudden discovery that I could no longer install or delete packages, although applications continued to run normally. My search for a solution eventually led me to a full apt-cache archives
, the directory in which removed packages are stored in case they are wanted. But let me start with the symptoms first so others can save time by going directly to ways to fix the problem.
I had never had such a problem before, so I was unprepared when it struck. In the last eight months, however, I had been exploring and deleting packages more often than usual, unknowingly setting up the condition that would cause the problem to strike. The first sign was a Flatpak package that suddenly refused to start. There was no notification of a newer version of the package, and at first I put the problem down to some vagary of Flatpak. To my bewilderment, I could not delete the package. Stranger still, I could not delete any DEBs, either. Instead, running apt-get dist-upgrade
, alone of all the basic actions attempted, produced a "no space left" message. Yet typical productivity apps such as Firefox and LibreOffice continued to run as usual.
That was a clue, had I realized it at the time, but the message had misled me to the conclusion that the system as a whole had a memory problem. Yet managing packages is far from the most intensive action on a Debian installation, and the free
command showed that the installed RAM had barely been touched, let alone the swap partition. Perhaps my use of six filesystems was the problem? Either /tmp
or /var
, the two most changeable partitions, could have filled without me noticing? I was quite prepared to crop a few gigabytes from the /home
partition, the largest of my filesystems, but GNU Parted showed plenty of space remained on all of them. Clearly, the problem was not system-wide, but what was it then? I began searching through /var
for deletable files, and there I discovered Apt's cache.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
EndeavorOS Mercury Neo Available
A new release from the EndeavorOS team ships with Plasma 6.3 and other goodies.
-
Fedora 42 Beta Has Arrived
The Fedora Project has announced the availability of the first beta release for version 42 of the open-source distribution.
-
Dash to Panel Maintainer Quits
Charles Gagnon has stepped away as maintainer of the popular Dash to Panel Gnome extension.
-
CIQ Releases Security-Hardened Version of Rocky Linux
If you're looking for an enterprise-grade Linux distribution that is hardened for business use, there's a new version of Rocky Linux that's sure to make you and your company happy.
-
Gnome’s Dash to Panel Extension Gets a Massive Update
If you're a fan of the Gnome Dash to Panel extension, you'll be thrilled to hear that a new version has been released with a dock mode.
-
Blender App Makes it to the Big Screen
The animated film "Flow" won the Oscar for Best Animated Feature at the 97th Academy Awards held on March 2, 2025 and Blender was a part of it.
-
Linux Mint Retools the Cinnamon App Launcher
The developers of Linux Mint are working on an improved Cinnamon App Launcher with a better, more accessible UI.
-
New Linux Tool for Security Issues
Seal Security is launching a new solution to automate fixing Linux vulnerabilities.
-
Ubuntu 25.04 Coming Soon
Ubuntu 25.04 (Plucky Puffin) has been given an April release date with many notable updates.
-
Gnome Developers Consider Dropping RPM Support
In a move that might shock a lot of users, the Gnome development team has proposed the idea of going straight up Flatpak.