apt-get update not working on newly installed Debian 10
by Trent29 from LinuxQuestions.org on (#53K1K)
Just installed Debian 10 yesterday using ubootin and the Debian 10 .iso-1 file. I don't have a DVD or other optical drive on my laptop, so I installed it using the "USB Installation Method" from this Wikihow link https://www.wikihow.com/Install-Debian
Now whenever I as root user try to use apt-get update or apt-get install <name of program> I get a message like this:
root@Owner:/home/user# sudo apt update
Ign:1 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster InRelease
Err:2 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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 buster InRelease
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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.
Anyone know what went wrong with the installation or how to fix this?


Now whenever I as root user try to use apt-get update or apt-get install <name of program> I get a message like this:
root@Owner:/home/user# sudo apt update
Ign:1 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster InRelease
Err:2 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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 buster InRelease
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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.
Anyone know what went wrong with the installation or how to fix this?