Howto fix “E: Archive directory /var/cache/apt/archives/partial is missing” error.
I was running low on disk space so I went and downloaded baobab a visual tool to show how muh space is being occupied by various directories on the file system. I saw that the /var/cache/apt/archives was using up a lot of space and since most of the directory contents were .deb files I decided to delete this files, the next day I tried running apt and got the error
“E:Archive directory /var/cache/apt/archives/partial is missing.”
To fix this error make sure you recreate the archives folder as well as the partial folder. open a console window and type
1. cd /var/cache/apt
2. Type ls check to make sure archives folder is displayed in case you dont see the archives folder create the folder
sudo mkdir archives if you already have the archives folder then skip this step.
3. type cd archives , create the partial folder by typing sudo mkdir partial
4. type sudo apt-get autoclean to make sure apt is working properly.
Thats it you should now be able to get apt to work properly.
Hi LILTUX,
thant for your information, I had the same problem and your workaround works fine.
catoser
July 3, 2007 at 1:55 am
TNX, this helped me alot.
Gnonthgol
July 22, 2007 at 9:04 am
haii…thanks a bunch!
Wildan
September 7, 2007 at 1:40 pm
This is why I love community… thanks man
Steve
October 7, 2007 at 7:20 pm
Excellent. I had the same problem and this was the info I needed to fix it. Thank you.
Dan Crooks
October 17, 2007 at 6:47 pm
Just solved the problem – thanks man !
Tom
January 10, 2008 at 6:46 pm
awesome, thanks very much, fix worked ace
I love the internet, it is made of good people.
alfie
January 14, 2008 at 12:11 pm
Thanks, did the trick after I deleted in just the same way you did.
William
January 16, 2008 at 11:02 pm
Thanks! You’re a champ.
Mike
January 17, 2008 at 12:29 am
That worked for me as well. Many thanks!
Serban
January 25, 2008 at 2:25 am
legend! helped me alot, i will be a lot more careful next time i am trying to save some space
adamlark
February 23, 2008 at 9:09 am
Thank you for this useful post. I was in the middle of the same story. I have a firewall/router/web/file/etc server (pentium2 450Mhz with 96 MB ram:)) at home that is running from a 1GB cf card (with CF->IDE converter) to avoid mechanic failures on the master drive, and an additional 300GB ide disk for the files. I ran out of disk space, so I deleted this dir and after that I had to re-create them manually. But I rather made archive a symbolic link to my big drive, to keep the space freed up: so I first created the directory as You suggested then:
# ln -s /path/to/archives/ /var/cache/apt/archives
and from now on the update packages are stored on the big drive. cheers,
Marton
Marton
March 5, 2008 at 2:38 pm
Thanx ^^
Tux
March 18, 2008 at 12:55 pm
Thanks man.. this solved my problem too!
Comrade
April 3, 2008 at 9:34 am
thanks a bunch
krusty
April 19, 2008 at 5:29 am
Thanks, your tip helped me really a lot
Had the same problem with low space on disk!
stef
April 26, 2008 at 9:18 am
very much appreciated
Joe C
November 13, 2008 at 12:06 pm
Thanks a lot!
Roel
December 3, 2008 at 1:58 pm
[...] directory /var/cache/apt/archives/partial is missing”. Searching through Google I came to know this solution and it worked for me. You have to follow these steps: To fix this error make sure you recreate the [...]
Fix “Archive directory /var/cache/apt/archives/partial is missing” error | Technowledge
February 21, 2009 at 12:17 pm
Thanks for the tip.
You can combine the steps above into one:
`sudo mkdir -p /var/cache/apt/archives/partial`
which will work no matter where you are, and will gracefully fail if the directories already exist.
Andrew Conkling
March 8, 2009 at 8:54 pm
WOW! it’s realy works!
i have fix my debian at few moments =)
thanks very match!
ruX
April 21, 2009 at 4:10 pm
Give the man a chocolate fish.
Figjam
July 1, 2009 at 6:39 pm
Nice tip too Andrew Conkling
mark
September 15, 2009 at 2:38 pm