LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-07-2024, 08:33 PM   #1
xann
LQ Newbie
 
Registered: Mar 2024
Distribution: debian
Posts: 3

Rep: Reputation: 0
can't update my packages via apt


That's what I get instead:

xann@debian:~$ sudo apt update && apt upgrade
[sudo] password for xann:
Ign:1 cdrom://[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27] bookworm InRelease
Err:2 cdrom://[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27] 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 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:4 https://brave-browser-apt-nightly.s3.brave.com stable InRelease
Hit:5 https://deb.debian.org/debian bookworm InRelease
Hit:6 https://downloads.1password.com/linux/debian/amd64 stable InRelease
Hit:7 https://repo.protonvpn.com/debian stable InRelease
Ign:8 https://deb.debian.org/debian bookworm-security InRelease
Hit:9 https://deb.debian.org/debian bookworm-updates InRelease
Err:10 https://deb.debian.org/debian bookworm-security Release
404 Not Found [IP: 2a04:4e42:8b::644 443]
Hit:11 https://packages.mozilla.org/apt mozilla InRelease
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27] 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.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-nightly.s3.brave.com stable InRelease' doesn't support architecture 'i386'
E: The repository 'https://deb.debian.org/debian bookworm-security 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.
 
Old 03-07-2024, 09:16 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
It's a long shot, but, as root, check your /etc/apt/sources.list file and make sure the CD is not listed or is remarked out.

Also, when posting terminal output, please enclose it in "code" tags, which become available when you click the "Go Advanced" button beneath the compose/edit post window. It makes terminal output much easier to read.

And welcome to LQ.

Last edited by frankbell; 03-07-2024 at 09:22 PM.
 
Old 03-08-2024, 01:08 AM   #3
xann
LQ Newbie
 
Registered: Mar 2024
Distribution: debian
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
It's a long shot, but, as root, check your /etc/apt/sources.list file and make sure the CD is not listed or is remarked out.

Also, when posting terminal output, please enclose it in "code" tags, which become available when you click the "Go Advanced" button beneath the compose/edit post window. It makes terminal output much easier to read.

And welcome to LQ.
Hey thanks for the answer and for the welcome.

So, I kinda solved the issue by commenting few strings in that directory:

Code:
#deb cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27]/ bookworm contrib main non-free-firmware

deb https://deb.debian.org/debian/ bookworm non-free-firmware main
deb-src https://deb.debian.org/debian/ bookworm non-free contrib non-free-firmware main #Added by software-properties

#deb https://deb.debian.org/debian/ bookworm-security non-free-firmware main
#deb-src https://deb.debian.org/debian/ bookworm-security non-free-firmware main #Added by software-properties

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb https://deb.debian.org/debian/ bookworm-updates non-free-firmware main
deb-src https://deb.debian.org/debian/ bookworm-updates non-free-firmware main #Added by software-properties

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

# Debian 12 "Bookworm"
deb https://deb.debian.org/debian/ bookworm contrib non-free
UPD: so it basically works but the only package that is being updated is brave-nightly
UPD2: i tried gui, it failed: http://ibb.co/gJftbFG

Last edited by xann; 03-08-2024 at 01:32 AM. Reason: tried the gui
 
Old 03-10-2024, 05:46 PM   #4
xann
LQ Newbie
 
Registered: Mar 2024
Distribution: debian
Posts: 3

Original Poster
Rep: Reputation: 0
I FIGURED IT OUT!!!
steps to reproduce to fix what i had:
i commented the first line (deb cdrom...)
and then i added -security into deb and deb-src https://deb.debian.org/debian/ -> https://deb.debian.org/debian-security/
Code:
#deb cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27]/ bookworm contrib main non-free-firmware

deb https://deb.debian.org/debian/ bookworm non-free-firmware main
deb-src https://deb.debian.org/debian/ bookworm non-free contrib non-free-firmware main #Added by software-properties

deb https://deb.debian.org/debian-security/ bookworm-security non-free-firmware main
deb-src https://deb.debian.org/debian-security/ bookworm-security non-free-firmware main #Added by software-properties

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb https://deb.debian.org/debian/ bookworm-updates non-free-firmware main
deb-src https://deb.debian.org/debian/ bookworm-updates non-free-firmware main #Added by software-properties

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

# Debian 12 "Bookworm"
deb https://deb.debian.org/debian/ bookworm contrib non-free
Thanks to frankbell for trying to help me out!
 
  


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
[SOLVED] Error message being received while attempting to update linux debian via terminal using sudo apt-get update david1089 Linux - Newbie 11 06-16-2018 01:00 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 - Desktop

All times are GMT -5. The time now is 07:49 AM.

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