[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: out of space in /var/cache/apt/archives



Nick Hastings wrote:

>Hi,
>
>* Nori Heikkinen <nori@sccs.swarthmore.edu> [030205 11:31]:
>> my /var is 465M.  i'm trying to do and apt-get upgrade, which i
>> haven't in a while, and got the following message:
>> 
>> Need to get 69.0MB/109MB of archives. After unpacking 39.1MB will be
>> used.
>> E: Sorry, you don't have enough free space in /var/cache/apt/archives/
>> to hold all the .debs.
<snip>
>
>To safely remove old/obsolete packages from the cache:
>
>apt-get autoclean
>
>If this still doesn't give you enough space you can tell apt to put
>the cache somewhere other than /var, however I can't remember how to
>do that. I think there was a thread regarding this a few weeks ago, so
>have a look in the archives, or try reading the apt-get man page or
>the apt howto.

I had the same problem.  The solution for me was to move the cache.
	1.	mkdir /home/aptcache		# or pick another location--/usr/local/lib
										# comes to mind
	2.	in /etc/apt/apt.conf do 
Dir::Cache::Archives "/home/aptcache";

See man apt.conf
--
gt                  kk5st@sbcglobal.net
 If someone tells you---
 "I have a sense of humor, but that's not funny." 
                                  ---they don't.



Reply to: