Score:0

getting errors when using apt update and when runnin g the software updater get failed to download repository information check internet connection

gr flag

updating from 20 to 21 and i get failed to download repository so tried in terminal and it gave me this error

sudo apt update
[sudo] password for jules: 
Ign:1 cdrom://Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1) focal InRelease
Err:2 cdrom://Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1) focal 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://archive.canonical.com/ubuntu hirsute InRelease
Hit:4 http://security.ubuntu.com/ubuntu hirsute-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu hirsute InRelease
Hit:6 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease
Hit:8 http://archive.ubuntu.com/ubuntu hirsute-security InRelease
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1) focal 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: Target Sources (partner/source/Sources) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:40
W: Target Sources (partner/source/Sources) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:40
guiverc avatar
cn flag
You've mentioned Ubuntu releases 20 & 21; there is no 21 release. Ubuntu's main products use the *year.month* format (eg. 20.04, 20.10, 21.04 etc) but specialist *snap* only products (since 2016) have used the *year* format, eg. Ubuntu Core 20 - but they differ and don't use *deb* packages thus don't have sources like your paste (apps aren't upgraded when you move release; as *snap* packages are the same for all releases - one of the benefits). so Ubuntu 20.04 is a different product to Ubuntu Core 20 for example.
uz flag
Jos
One or more things are wrong in your `/etc/apt/sources.list` file. Please add it to your question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.