apt 檔案更新:沒有可用索引

apt 檔案更新:沒有可用索引

為什麼我收到此訊息(“沒有可用索引”):

Downloading Index http://http.debian.net/debian/dists/wheezy/main/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://http.debian.net/debian/dists/wheezy/main/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 20.4M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.

答案1

嘗試更新/etc/apt/sources.list最終可以產生列表從這裡

當我嘗試檢查連結時“http://http.debian.net/debian/dists/wheezy/main/「瀏覽器將我重定向到當地的鏡子(這取決於我所連接的國家)。碰巧引發錯誤的檔案也在此儲存庫中遺失。

所以建議是使用不同的來源集然後運行以下命令須藤或作為特權用戶(即使沒有須藤

  sudo apt-get clean  
  sudo apt-get update  

最終您可能會發現手動清理目錄很有用

  sudo rm -r /var/cache/apt/archives/partial/*

相關內容