
我將 Ubuntu 安裝在外在硬碟上
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
嘗試 sudo apt update 時出現錯誤
sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://deb.anydesk.com all InRelease
Ign:4 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:5 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 64.50.233.100 80]
Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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.
W: http://deb.anydesk.com/dists/all/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
或甚至當我使用命令 sudo apt-get update 時:
sudo apt-get update
Hit:1 http://deb.anydesk.com all InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:5 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 140.211.166.134 80]
Reading package lists... Done
W: http://deb.anydesk.com/dists/all/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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.
我還檢查了說明sudo apt update 錯誤但看起來毫無希望
我還檢查了評論中建議的問題答案:
並運行程式碼
sudo add-apt-repository --remove ppa:mc3man/trusty-media
sudo apt-get update
但得到了同樣的錯誤
難道我的--命中:1http://de.archive-- 是問題所在嗎?
答案1
轉到程式選單或按鍵盤上的 windows 來顯示它。
選擇軟體和更新程式或在選單中搜尋它以顯示並打開它。
確保這些標籤中標記了更新選項“Ubuntu 軟體和更新”,您也可以查看同一程式中的其他軟體標籤。
標記將詢問密碼的框後,按一下“關閉”,按一下從新視窗重新載入並等待其完成更新緩存,然後嘗試在終端機中更新。