๐ ~1 min read
Table of contents
Symptom & Impact
apt and logs fail with ENOSPC, causing stalled upgrades and service instability.
Environment & Reproduction
Debian 13 hosts with small /var partitions and high log or cache churn.
Root Cause Analysis
Package cache, journal files, or container layers consumed all available /var capacity.
Quick Triage
Check filesystem usage and identify top consumers under /var.
Step-by-Step Diagnosis
Review apt cache, journal size, and old package artifacts for cleanup candidates.

Solution – Primary Fix
Clean apt cache, rotate journals, and remove stale artifacts before rerunning apt.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Extend /var filesystem capacity or move heavy application data to separate volumes.
Verification & Acceptance Criteria
Sufficient free space exists and package transactions complete without ENOSPC.
Rollback Plan
Restore archived logs from backup if data retention requirements demand recovery.
Prevention & Hardening
Set filesystem usage alerts and enforce retention policies for logs and caches.
Related Errors & Cross-Refs
Related failures include dpkg write errors and broken package unpack steps.
Related tutorial: View the step-by-step tutorial for Debian 13.
View all Debian 13 tutorials on the Tutorials Hub โ
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Debian administration guide and journalctl storage management docs.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today โ we respond within one business day.