Easy Fix for "Archive directory /var/cache/apt/archives/partial is missing." error



 

I had a new problem today while running apt-get update. It turned out that my /var/cache/apt/archives/partial directory was missing. Here, I'll show you how to easily fix that error.

apt-get update returns error that a directory is missing

Today while running sudo apt-get update, apt-get returned the following error:

Archive directory /var/cache/apt/archives/partial is missing.

I knew immediately why I was receiving this error. See, a few days ago, I was having some problems with low disk space. So I did what any knucklehead would do - I erased everything in the /var/cache directory!

No fear, a simple google search would easily find the solution to this dilemma. Without fixing this problem, I would no longer be able to update my system with apt-get.

 

To fix this error, all I did was this:

I opened up a console window and ran:

cd /var/cache/apt/archives

... which returned the error:

bash: cd: /var/cache/apt/archives/: No such file or directory

Ok, so I checked to see if the /var/cache/apt directory was there.

It wasn't.

So I created the /var/cache/apt directory with the following command:

sudo mkdir /var/cache/apt

And then I created the /var/cache/apt/archives directory with this command:

sudo mkdir /var/cache/apt/archives

And finally, I created the /var/cache/apt/archives/partial directory:

sudo mkdir /var/cache/apt/archives/partial

Now that those three directories were recreated, all I had to do was to clean apt-get's cache with:

sudo apt-get clean

And that did it. I was now able to run sudo apt-get update.

 

 


kalyan, 14-10-10 05:16:
very useful info...

I had to wait for 4 days to upgrade to maverick...
I am now sorted.
Thanks a lot

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.