Error file:/cdrom jammy Release
$ sudo apt-get update
[sudo] password for costamar:
Get:1 file:/cdrom jammy InRelease
Ign:1 file:/cdrom jammy InRelease
Get:2 file:/cdrom jammy Release
Err:2 file:/cdrom jammy Release
File not found - /cdrom/dists/jammy/Release (2: No such file or directory)
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Reading package lists... Done
E: The repository 'file:/cdrom jammy Release' no longer has 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.
Solution
To resolve this problem from terminal you must remove/comment this CD-ROM repository source directly from /etc/apt/sources.list
sudo nano /etc/apt/sources.list
and comment or remove lines that include cdrom. eg:
#deb [check-date=no] file:///cdrom jammy main restricted
tank you