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

Re: rm -rf /var/cache/apt/archives/



On Thu, May 31, 2001 at 02:13:45AM +0530, Rajkumar S. wrote:
> Just before I found out the apt-get clean I wiped out the
> /var/cache/apt/archives/. As it can be expected I badly screwed my apt-get
> :)
> 
> How can I bring this back?


Just do (as root, of course):

mkdir /var/cache/apt/archives/partial
chmod 755 /var/cache/apt/archives/partial

touch /var/cache/apt/archives/lock
chmod 640 /var/cache/apt/archives/lock

(You may not need to re-create the lock file, as apt-get will probably
do it.)

In any case, you can use the following commands to clean out your
cache (in the future):

apt-get clean

apt-get autoclean
  (my preferred way, only deletes old debs)

rm /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb

HTH,
Ian




Reply to: