Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Created June 23, 2023 02:29
Show Gist options
  • Save ederrafo/5ab5e4e59edea8aed5a2de68af9fa0a8 to your computer and use it in GitHub Desktop.
Save ederrafo/5ab5e4e59edea8aed5a2de68af9fa0a8 to your computer and use it in GitHub Desktop.
ubuntu server

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
@hannnan3825
Copy link

tank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment