
私は新しい 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
- 以下のコマンドを1つずつ実行します。
- rm -rf /var/lib/apt/lists/*
- プロキシを使用する場合は、ルート権限を持つターミナルで以下のコマンドを実行してプロキシ設定をエクスポートします。
- エクスポート http_proxy=http://プロキシアドレス:ポート
- sudo環境設定でadd ppaを実行します。
- sudo -E aptリポジトリを追加します