I was running out of space on my Ubuntu box so I decide to clear apt-cache packages.
After this I cannot install anything due an error: “
Archive directory /var/cache/apt/archives/partial is missing"
The fix is quite simple and works fine on my Ubuntu 10.04 Lucid.
- Close Synaptic or any other apt-based manager
- Open a terminal and run the following commands (please be sure to us sudo!):
sudo mkdir -p /var/cache/apt/archives/partial
sudo touch /var/cache/apt/archives/lock
sudo chmod 640 /var/cache/apt/archives/lock
Now you can update your Synaptic or run
sudo apt-get update
Next time to clean the cache directory I will use the right command
sudo apt-get clean
That’s all! 😉