我無法將 ubuntu 從 13.04 升級到 13.10
當我嘗試升級時出現此錯誤:
W: GPG error: http://download.opensuse.org Release: The following signatures were invalid: KEYEXPIRED 1386276565
W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/source/Sources 404 Not Found
W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/source/Sources 404 Not Found
W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我已經嘗試過什麼?
- 在 Ubuntu 軟體中心 > 軟體來源上取消選取諸如 ..from CD-ROM.. 之類的內容。
- 嘗試使用此命令“sudo rm -rf /var/lib/apt/lists/*”
- 嘗試更換下載伺服器
我要怎麼解決這個問題?
答案1
在某些時候,您為natty-backports
您在錯誤中看到的儲存庫添加了一個合適的來源。由於某種原因,該存儲庫不再可用。
找到這個;它將是 中的一行/etc/apt/sources.list
或 中的一個文件/etc/apt/sources.list.d
。然後刪除該行或該文件,儲存並重試。