[2022] W: Some index files failed to download. They have been ignored, or old ones used instead.

<p>In a high-speed network environment, this seems to occur more frequently due to the greater number of accesses within a given time period.</p> <p>The problem is the number of accesses within a certain period of time, so if an error occurs, apt upgrade again after some time, and this time the error seems to disappear.<br /> I do the following: If apt upgrade fails, I sleep for 60 seconds and try apt upgrade again. This is repeated until it succeeds.</p> <pre> until (apt -y upgrade) do sleep 60; done </pre> <h1>## Solution 3</h1> <p>Delete the index file.<br /> The index file is located in&nbsp;<strong>/var/lib/apt/lists</strong></p> <p>Let&rsquo;s delete it. Just mv it to be safe.</p> <pre> sudo mv /var/lib/apt/lists ~/</pre> <p>Again, use the apt command to update. This will be a full download, so it will take some time.</p> <p><a href="https://medium.com/geekculture/2022-w-some-index-files-failed-to-download-they-have-been-ignored-or-old-ones-used-instead-595e9f7345ac"><strong>Learn More</strong></a></p>
Tags: index Files