forcing APT-GET UPDATE to reget the package lists

Derek Broughton news at pointerstop.ca
Wed Jul 4 17:01:09 UTC 2007


Matthew Flaschen wrote:

> David Vincent wrote:
>> sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
>> sudo touch /etc/apt/sources.list
>> sudo apt-get update
>> sudo rm /etc/apt/sources.list
>> sudo mv /etc/apt/sources.list.backup /etc/apt/sources.list
>> sudo apt-get update
>> 
>> ...will delete any downloaded lists you have and force apt to go out and
>> download the latest copies...
> 
> From where?  You've hidden the repository list, not the downloaded
> packages lists.

Precisely.  The package lists are under /var/lib/apt/lists - but moving them
should do the job.
-- 
derek





More information about the ubuntu-users mailing list