LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-28-2023, 11:58 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
Error trying to use apt update


Greetings, While trying to use apt update in the new V12.1 version I'm getting the following error messages and I can't get any updated because of this issue.

The same or similar messages appear while also trying to use the GUI in KDE to do updates.
Running in VMware V12 virtual machine. Installed from an ISO.

Any help will be appreciated. Thanks

root@Debian-V12-1-64Bit:/home/howardr# apt update
Ign:1 cdrom://[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49] bookworm InRelease
Err:2 cdrom://[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49] bookworm 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://debian.csail.mit.edu/debian bookworm InRelease
Get:4 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:5 http://debian.csail.mit.edu/debian bookworm-updates InRelease
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49] bookworm 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.

Below is a copy of the 'sources.list' file

root@Debian-V12-1-64Bit:/etc/apt# cat sources.list
deb cdrom:[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49]/ bookworm main non-free-firmware

deb http://debian.csail.mit.edu/debian/ bookworm main non-free-firmware
deb-src http://debian.csail.mit.edu/debian/ bookworm main non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/d..._and_backports
deb http://debian.csail.mit.edu/debian/ bookworm-updates main non-free-firmware
deb-src http://debian.csail.mit.edu/debian/ bookworm-updates main non-free-firmware
root@Debian-V12-1-64Bit:/etc/apt#


root@Debian-V12-1-64Bit:/etc# cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/Debian--V12--1--64Bit--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=fd6aad0c-51d0-40a3-be7a-a03cf3edcb12 /boot ext2 defaults 0 2
/dev/mapper/Debian--V12--1--64Bit--vg-swap_1 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
root@Debian-V12-1-64Bit:/etc#

Last edited by swamprat; 08-28-2023 at 12:06 PM.
 
Old 08-28-2023, 04:45 PM   #2
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: NC
Distribution: Slackware64 15.0
Posts: 154

Rep: Reputation: 21
Hey there,

The issue here is stemming from this line in your sources.list: deb cdrom:[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49]/ bookworm main non-free-firmware

To fix the issue, you'll either need to comment that line out or completely delete it using your preferred text editor as root. Afterward, run
Code:
apt update
again as root, & the problem should go away. This may or may not be a bug in the Debian installer (I've never installed from the binary DVD's & have always used netinstalls, & the netinstalls always get the cdrom entry commented out by the installer upon completion)
 
Old 08-31-2023, 10:38 AM   #3
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
Thank you for your response. Would be kind enough to tell me where the 'source.list' is located. I think it would be in the etc but i don't know which directory to look in.

Thanks again.
 
Old 08-31-2023, 12:37 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
deja vu?

https://www.linuxquestions.org/quest...-a-4175699419/
 
Old 09-01-2023, 04:30 AM   #5
fedoralinuxjunkie
Member
 
Registered: Jun 2008
Location: NC
Distribution: Slackware64 15.0
Posts: 154

Rep: Reputation: 21
Quote:
Originally Posted by swamprat View Post
Thank you for your response. Would be kind enough to tell me where the 'source.list' is located. I think it would be in the etc but i don't know which directory to look in.

Thanks again.
No problem, you almost had it actually. It's located at /etc/apt/sources.list

You'll need to open that file in a text editor as root. Then you can either comment out or delete the cdrom line, which should fix the issue
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \ > /etc/apt/apt.conf.d/01keep-debs Outabux Debian 10 12-30-2022 12:12 PM
[SOLVED] synaptic, apt-get update, apt update all stopped working tnandy Linux - Software 6 09-09-2020 03:50 PM
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration