apt-get update 命令在 Ubuntu 20.04.2 LTS 中不起作用

apt-get update 命令在 Ubuntu 20.04.2 LTS 中不起作用

我无法更新 ubuntu 20.04 并出现以下错误

Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://packages.microsoft.com/repos/code stable InRelease                
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:5 https://linux.teamviewer.com/deb stable InRelease                        
Hit:6 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu cosmic InRelease           
Ign:7 http://archive.ubuntu.com/ubuntu cosmic InRelease                        
Hit:8 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease 
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Err:10 http://archive.ubuntu.com/ubuntu cosmic Release
  404  Not Found [IP: 2001:67c:1360:8001::24 80]
Reading package lists... Done
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic 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 的输出:- 在此处输入图片描述

答案1

您必须/etc/apt/sources.list使用注释掉有问题的行宇宙的释放然后重试

sudo apt-get update

相关内容