簡體   English   中英

Ubuntu 22.04 遇到找不到發布文件的錯誤

[英]Release file not found error encountered with Ubuntu 22.04

我見過一些類似的問題,但就我而言,當我運行sudo apt-get update時彈出以下錯誤:


ICON_lab) randychen@randychen-Delta-15-A5EFK:~/projects$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]     
Ign:3 http://packages.ros.org/ros/ubuntu jammy InRelease                       
Err:4 http://packages.ros.org/ros/ubuntu jammy Release                         
  404  Not Found [IP: 140.211.166.134 80]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]  
Get:6 http://www.deb-multimedia.org jessie InRelease [15.4 kB]                 
Hit:7 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Hit:8 http://security.ubuntu.com/ubuntu jammy-security InRelease               
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [95.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [257 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:13 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [11.4 kB]
Ign:6 http://www.deb-multimedia.org jessie InRelease                           
Hit:12 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
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: GPG error: http://www.deb-multimedia.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117
E: Release file for http://www.deb-multimedia.org/dists/jessie/InRelease is expired (invalid since 388d 20h 52min 20s). Updates for this repository will not be applied.
W: https://packagecloud.io/slacktechnologies/slack/debian/dists/jessie/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.


起初我以為這是由於 PPA,但我這里沒有。 我嘗試按照這篇文章解決問題,並在文件頂部添加了那行代碼,但它也不起作用。

任何幫助是極大的贊賞!

您必須更正 url:

sudo grep -rlF 'http://packages.ros.org' /etc/apt/sources* |
    xargs sed -i 's@http://packages.ros.org@https://ubuntu.osuosl.org/@'
sudo apt update

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM