
我是 Ubuntu 新用戶。我嘗試更新我的 Ubuntu,但它顯示了這些錯誤。
Reading package list... Done
W: http://archive.canonical.com/ubuntu/dists/precise/Release.gpg:
Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-security/InRelease:
Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease:
Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease:
Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: http://us.archive.canonical.com/ubuntu/dists/precise/Release.gpg:
Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://extras.ubuntu.com/ubuntu precise Release:
The following signatures couldn't be verified because the public key is not available:
NO_PUBKEY 16126D3A3E5C1192
W: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/next/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead
如何解決這些問題?
答案1
剛剛檢查了 PPA 抱怨“無法獲取”錯誤。
來自該 PPA 的 dist 目錄,它沒有 Xenial 的版本。所以唯一的解決方案可能是刪除該 ppa。
如果您要從 12.04 升級到 16.04,您可以嘗試使用以下命令刪除該 ppa:
sudo add-apt-repository --remove ppa:tualatrix/next
並使用 更新軟體列表sudo apt-get update
,然後您應該能夠繼續您的升級任務。
或者您可以嘗試升級到 14.04,該 ppa 可用於 Trusty。
答案2
- 一一執行以下命令..
- rm -rf /var/lib/apt/lists/*
- 如果使用代理,請在具有 root 權限的終端機中透過以下命令匯出代理設定:
- 導出http_proxy=http://代理位址:端口
- 使用 sudo 環境設定來執行 add ppa
- sudo -E add-apt-儲存庫