Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Apt does not work after successful installation of Debian 11

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
fernandocesarpinto
Posts: 25
Joined: 2021-05-13 14:44

Apt does not work after successful installation of Debian 11

#1 Post by fernandocesarpinto »

I freshly installed Debian 11 from image debian-bullseye-DI-rc1-amd64-DVD-1.

After I login, open a terminal and `sudo apt update` I get the following errors:
~$ sudo apt update
Ign:1 cdrom://[Debian GNU/Linux bullseye-DI-rc1 _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20210415-20:26] bullseye InRelease
Err:2 cdrom://[Debian GNU/Linux bullseye-DI-rc1 _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20210415-20:26] bullseye 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://deb.debian.org/debian bullseye InRelease
Hit:4 http://security.debian.org/debian-security bullseye-security InRelease
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux bullseye-DI-rc1 _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20210415-20:26] bullseye 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.
Any idea of what is wrong?

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Apt does not work after successful installation of Debia

#2 Post by craigevil »

Comment the cd-rom lines in /etc/apt/sources.list {Corrected}
Last edited by craigevil on 2021-05-18 00:08, edited 1 time in total.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Apt does not work after successful installation of Debia

#3 Post by 4D696B65 »

craigevil wrote:Comment the cd-rom lines in /etc/sources.list
/etc/apt/sources.list

fernandocesarpinto
Posts: 25
Joined: 2021-05-13 14:44

Re: Apt does not work after successful installation of Debia

#4 Post by fernandocesarpinto »

Looks like a bug in the installation of RC1. I edited the file /etc/apt/sources.list and there was this line doubled, and just one of them already commented:

Code: Select all

# deb cdrom:[Debian GNU/Linux bullseye-DI-rc1 _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20210415-20:26]/ bullseye contrib main

deb cdrom:[Debian GNU/Linux bullseye-DI-rc1 _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20210415-20:26]/ bullseye contrib main

deb http://deb.debian.org/debian/ bullseye main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
After commenting it out, it works.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Apt does not work after successful installation of Debia

#5 Post by kedaha »

fernandocesarpinto wrote:Looks like a bug in the installation of RC1. I edited the file /etc/apt/sources.list and there was this line doubled, and just one of them already commented:
[ ...]
After commenting it out, it works.
No, it's not a bug; The second line was uncommented because it was a DVD image, which is to allow additional stuff to be installed initially from this medium with low bandwidth. It would have got commented if it had been a small net install image.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

Post Reply