Ubuntu 安装失败,导致 apt 损坏

Ubuntu 安装失败,导致 apt 损坏

我一直在尝试获取 Ubuntu GNOME 17.04 并最终使其启动,但是在安装即将结束时失败,导致我的apt存储库设置不正确。希望这是唯一失败的部分,但是我只是一步一步地完成。这是我尝试更新时显示的内容:

CorruptComputer@Ubuntu-GNOME:~$ sudo apt update
[sudo] password for CorruptComputer: 
Ign:1 cdrom://Ubuntu-GNOME 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty InRelease
Err:2 cdrom://Ubuntu-GNOME 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://us.archive.ubuntu.com/ubuntu zesty InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]
Get:5 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Hit:6 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease            
Reading package lists... Done                                  
E: The repository 'cdrom://Ubuntu-GNOME 17.04 _Zesty Zapus_ - Release amd64 (20170412) zesty 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.

答案1

我可以按照此处答案中的相同步骤解决此问题:如何恢复默认存储库?

相关内容