i am Roger Li

apt-get update 出現404 Not Found問題

執行sudo apt-get update , 出現以下狀況......
image.png

[email protected]:~/$ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu impish InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Ign:3 http://hk.archive.ubuntu.com/ubuntu impish InRelease
Ign:4 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:5 http://hk.archive.ubuntu.com/ubuntu impish-updates InRelease
Err:6 http://security.ubuntu.com/ubuntu impish-security Release
  404  Not Found [IP: 91.189.91.39 80]
Ign:7 http://hk.archive.ubuntu.com/ubuntu impish-backports InRelease
Err:8 http://hk.archive.ubuntu.com/ubuntu impish Release
  404  Not Found [IP: 91.189.91.38 80]
Err:9 http://hk.archive.ubuntu.com/ubuntu impish-updates Release
  404  Not Found [IP: 91.189.91.38 80]
Err:10 http://hk.archive.ubuntu.com/ubuntu impish-backports Release
  404  Not Found [IP: 91.189.91.38 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security Release' no longer has 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.
E: The repository 'http://hk.archive.ubuntu.com/ubuntu impish Release' no longer has 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.
E: The repository 'http://hk.archive.ubuntu.com/ubuntu impish-updates Release' no longer has 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.
E: The repository 'http://hk.archive.ubuntu.com/ubuntu impish-backports Release' no longer has 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.

解決方法:
mkdir ~/solution cd ~/solution/ wget https://gist.githubusercontent.com/ishad0w/788555191c7037e249a439542c53e170/raw/3822ba49241e6fd851ca1c1cbcc4d7e87382f484/sources.list sudo rm -r /etc/apt/sources.list sudo cp -r ~/solution/sources.list /etc/apt/sources.list

sudo mv /etc/apt/sources.list.d/* ~/solution

sudo apt-get update


ref: https://askubuntu.com/questions/1385440/ubuntu-sudo-apt-get-update-404-not-found-problem

發佈回覆

你的電郵地址並不會被公開。 必要欄位標記為 *