Hi,
I just installed Debian 12.1 Bookworm from a usb flash drive. When I booted into the system and opened up Discover, the system/package immediately generated the following error.
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.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details.
E: cdrom://[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49] bookworm Release is not (yet) available (Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs)
How do I set up Debian 12.1 to allow package installation using Discover ?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] [Installation] Can't install packages in Debian 12.1
- None1975
- df -h | participant
- Posts: 1412
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: [Installation] Can't install packages in Debian 12.1
Hello.
You must edit Apt sources configuration file. This configuration file is at
You can edit this files (as Superuser) using your favorite text editor.
Example:
And near the top, comment out the line that looks like this:
comment is a hash
Press to exit the nano text editor, pressing to save your changes
Then finally you'll need to run:
To update your package lists.
You must edit Apt sources configuration file. This configuration file is at
Code: Select all
/etc/apt/sources.list
Example:
Code: Select all
sudo nano /etc/apt/sources.list
Code: Select all
#cdrom://[Debian GNU/Linux 12.1.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20230722-10:49
Code: Select all
#
Code: Select all
Ctrl+X
Code: Select all
y
Then finally you'll need to run:
Code: Select all
sudo apt-get update
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: [Installation] Can't install packages in Debian 12.1
I would add
Sudo apt-get update will update your sources list, but it will not download and install packages.
https://www.freecodecamp.org/news/sudo- ... ifference/
Code: Select all
sudo apt upgrade
https://www.freecodecamp.org/news/sudo- ... ifference/
Re: [Installation] Can't install packages in Debian 12.1
Hi,
@@arochester: Thank you for such a very swift and clear reply. It should be no problem to implement these changes which I will do as soon as I can. Thank you also for the link to the Debian handbook. This will no doubt prove very useful.
I have been using Kubuntu for the last few years and this sort of thing is usually set up as part of a default install. This is why I am a little bit adrift in how to do things the "Debian way".
@@arochester: Thank you for such a very swift and clear reply. It should be no problem to implement these changes which I will do as soon as I can. Thank you also for the link to the Debian handbook. This will no doubt prove very useful.
I have been using Kubuntu for the last few years and this sort of thing is usually set up as part of a default install. This is why I am a little bit adrift in how to do things the "Debian way".
Re: [Installation] Can't install packages in Debian 12.1
Hi,
@None1975: Thank you for such a swift and detailed reply. As stated in my reply to @arochester, I have been using Kubuntu for the last few years where this sort of thing is set up as part of a default install. This explains why I am a little adrift in doing things the "Debian way".
@None1975: Thank you for such a swift and detailed reply. As stated in my reply to @arochester, I have been using Kubuntu for the last few years where this sort of thing is set up as part of a default install. This explains why I am a little adrift in doing things the "Debian way".
- sunrat
- Administrator
- Posts: 6511
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 489 times
Re: [Installation] Can't install packages in Debian 12.1
The cdrom lines are normally hashed out (disabled) if you have an internet connection during installation and standard Debian repositories are enabled. Presumably you weren't connected.
If you wish to use the online repositories (recommended) and you don't have them you will need to add them to sources manually - https://wiki.debian.org/SourcesList . I'm not sure if you can do that inside Discover but it's easy to do manually with a text editor anyway. You probably need extra components non-free-firmware and possibly contrib and non-free.
If you wish to use the online repositories (recommended) and you don't have them you will need to add them to sources manually - https://wiki.debian.org/SourcesList . I'm not sure if you can do that inside Discover but it's easy to do manually with a text editor anyway. You probably need extra components non-free-firmware and possibly contrib and non-free.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 1
- Joined: 2024-03-17 13:06
- LinkedIN: cjohnsonmn
Re: [Solved] [Installation] Can't install packages in Debian 12.1
I had the same error, but this solution didnt fix anything (there was no "#" to comment-out the cdrom source path). The problem is/was the missing "Release file".
The easy solution posted by hack3rcon is to trust the cd as a source in etc/apt/sources.list :
I added "deb [trusted=yes] cdrom:[Debian GNU/Linux..." and problem solved.
Once you do that you just need to load the cd when you want to add apps with the discover gui application manager app.
The easy solution posted by hack3rcon is to trust the cd as a source in etc/apt/sources.list :
I added "deb [trusted=yes] cdrom:[Debian GNU/Linux..." and problem solved.
Once you do that you just need to load the cd when you want to add apps with the discover gui application manager app.