0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

raspberrypiでapt updateしたときErr:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic Release 404 Not Found となる場合

Last updated at Posted at 2024-01-07

はじめに

raspberry pi (debian)でupdateを行おうとしたときに,
Err:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic Release 404 Not Found
と出たので,解決方法を備忘録として上げておきます.debian,ubuntuなら同様の方法で解決出来ると思われます.

環境

  • raspberry pi 4
  • NAME="Debian GNU/Linux"
  • VERSION_ID="11"
  • VERSION="11 (bullseye)"

エラー

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Ign:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic InRelease
Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease
Err:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic Release
  404  Not Found [IP: 2620:2d:4000:1::81 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

対策

/etc/apt/sources.list.d/内にあるdeadsnakes-ubuntu-ppa-mantic.listdeadsnakes-ubuntu-ppa-mantic.listをコメントアウトしてあげれば,これを無視してupdateが行われる.

  • 好きなエディタでファイルを開く(例はnanoを使用)
sudo nano /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-mantic.list
  • 開いたファイルの以下の行をコメントアウト
deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic main

# deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu mantic main
  • もう一度アップデートコマンドを入力
sudo apt update

終わりに

同様に困っている方がいたら参考にしてください.間違えなどありましたら,教えていただけるとありがたいです.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?