[Private reply, but feel free to quote it publicly]and as a result, after the installation apt will wait for a non-existent CD-ROM when requested to install packages which are present in the installation image.
Hi Holger,
On 06/04/2025 at 00:20, Holger Wansing wrote:
On Sat, 5 Apr 2025 18:09:13 +0200 BW <m40636067@gmail.com> wrote:
This is the year 2025 and I can promise you that 99% of all installations >>> are NOT performed from a CD/DVD media, but from USB flash/network or
whatever, but NOT an optical media.
But still you have designed the installation for CD-ROM?
If I "burn" the installation-iso to a USB flash media and do an
installation I will not able to do an "apt update" or install any packages, >>> because CD-ROM is set to be main repository.
I have to modify "/etc/apt/sources.list" to get a working system.
I'm not saying it shouldn't be possible to do an installation the we did it >>> in 1990, but please design the system to how 99% of all people actually
install Debian today.
What you describe (installing packages inside the installer, but by hand, so >> bypassing the installer)
I may be wrong, but my understanding is that the submitter complains because when you install from a DVD or larger installation image on a USB flash drive, d-i (apt-setup) leaves the "cdrom:" entry in /etc/apt/sources.list enabled and in first position,
So, it's another report of "please disable the sources.list entries from installation media, when installation is finished".
But there's no difference, if the CD/DVD image is on optical media or on USB...
It does not get any updates in any case.
On 07/04/2025 at 17:32, Holger Wansing wrote:
So, it's another report of "please disable the sources.list entries from installation media, when installation is finished".
Sort of. I think there was some discussion about this topic in the past.
But there's no difference, if the CD/DVD image is on optical media or on USB...
By default an optical disc is mounted on /media/cdrom and makes apt happy, whereas a USB flash drive is usually mounted elsewhere.
It does not get any updates in any case.
IIRC, the issue is not when doing updates but when installing packages which are present in the original installation image and apt insists on using the installation media instead of the network repositories.
Am 7. April 2025 20:23:09 MESZ schrieb Pascal Hambourg <pascal@plouf.fr.eu.org>:
On 07/04/2025 at 17:32, Holger Wansing wrote:
So, it's another report of "please disable the sources.list entries from installation media, when installation is finished".
Sort of. I think there was some discussion about this topic in the past.
But there's no difference, if the CD/DVD image is on optical media or on USB...
By default an optical disc is mounted on /media/cdrom and makes apt happy, whereas a USB flash drive is usually mounted elsewhere.
It does not get any updates in any case.
IIRC, the issue is not when doing updates but when installing packages which are present in the original installation image and apt insists on using the installation media instead of the network repositories.
We should not make a difference here: on the long term you will need sources.list entries, that work for the whole archive.
Still rely on an installation image as only source will not work for the long future.
You will for sure end up with the situation, where a package you need is not on the CD/DVD image, and then you have to switch to a debian online mirror anyway.
Am I right with this, or do I miss something?
Am 7. April 2025 20:23:09 MESZ schrieb Pascal Hambourg <pascal@plouf.fr.eu.org>:
Still rely on an installation image as only source will not work for the long future.
You will for sure end up with the situation, where a package you need is not on the CD/DVD image, and then you have to switch to a debian online mirror anyway.
Am I right with this, or do I miss something?
Let's say we have 1000 random Debian users performing a new server installation.
999 of these will not use optical media (CD-ROM/DVD) and will have a broken package-configuration (out-of-the-box) and will need to take special steps
to get it working (modifying the sources file).
Please design Debian to target the vast majority, by fare, of
installations scenarios by NOT putting CD-ROM as the 1st priority package source in the sources.
In order to move forward I prepared a patch implementing the following
logic:
if installation media is not a real CD/DVD/BD
automatically disable cdrom entries
else if sources.list has network entries
if installation media is netinst, live or single desktop
automatically disable cdrom entries
else
ask user whether to disable cdrom entries
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 96:29:08 |
Calls: | 9,679 |
Files: | 13,725 |
Messages: | 6,174,438 |