[PlanetCCRMA] Re: question about /var/cache/apt

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Thu Jun 2 10:11:01 2005

On Thu, 2005-06-02 at 08:57, Gregory McCourt wrote:
> Hi Fernando,
> Following a recent posting, I've also discovered that /var/apt/archive was full of RPMs, so I did an apt-get clear. Now, when I try to update I get this:
> [root@ip-61 dos]# apt-get update
> Get:1 http://ccrma.stanford.edu fedora/3/i386 release [1424B]
> Fetched 1424B in 0s (22.0kB/s)
> Hit http://ccrma.stanford.edu fedora/3/i386/core pkglist
> Hit http://ccrma.stanford.edu fedora/3/i386/core release
> Hit http://ccrma.stanford.edu fedora/3/i386/updates pkglist
> Hit http://ccrma.stanford.edu fedora/3/i386/updates release
> Get:1 http://ccrma.stanford.edu fedora/3/i386/planetccrma pkglist [250kB]
> Hit http://ccrma.stanford.edu fedora/3/i386/planetccrma release
> Hit http://ccrma.stanford.edu fedora/3/i386/planetcore pkglist
> Hit http://ccrma.stanford.edu fedora/3/i386/planetcore release
> Fetched 250kB in 19s (12.8kB/s)
> Failed to fetch http://ccrma.stanford.edu/planetccrma/apt/fedora/3/i386/base/pkglist.planetccrma  Size mismatch
> Reading Package Lists... Done
> Building Dependency Tree... Done
> E: Some index files failed to download, they have been ignored, or old ones used instead.
> I've tried multiple times at different times of the day and get the same. 
> It's the same "Failed to fetch..." as well. I never had this before I did 
> the apt-get clear: Did I mess something up? Is there a quick-fix to this?

This is usually caused by a cache in between your computer and the web
site. It keeps old stuff around instead of getting the newest. 

You could try forcing a fetch without the cache by doing this:
  wget --cache=off URL
where URL is the url that is failing. For example:
  wget --cache=off

Most probably it will work after doing this, but as I have not had this
problem I don't know for sure. 

-- Fernando