Page 1 of 1

CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-17 20:51
by MrBW
Everytime I install Debian I always have to bother with removing the CD-ROM in "/etc/apt/sources.list":
deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 DVD Binary-1 20181217-04:26]/ buster contrib main

I find this very strange that this is the default. I assume 99 out of 100 users want and have e.g. "deb http://deb.debian.org/debian/ buster main" as the repository.

Can anyone tell me why this is a good idea?

it not, how do we request a feature requests for Debian (which package is responsible for this, debian-installer?)
It can hardly be called a bug (but it's just as annoying as one)

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-17 20:55
by arochester
Just access your sources.list, as Root, and put a # at the beginning of the CD-Rom line and save it.

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-17 21:06
by Head_on_a_Stick
MrBW wrote:Can anyone tell me why this is a good idea?
Because some people want to have an offline installation.

Not everybody has an internet connection and Debian is kind enough to accommodate such people by providing their packages on CDs & DVDs, this is extremely useful actually and not something offered by many other distributions.

To avoid having to edit your sources after installation simply ensure that the installer has an internet connection and is provided with a mirror when it requests one.

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-18 07:57
by MrBW
Head_on_a_Stick wrote:
MrBW wrote:Can anyone tell me why this is a good idea?
Because some people want to have an offline installation.

Not everybody has an internet connection and Debian is kind enough to accommodate such people by providing their packages on CDs & DVDs, this is extremely useful actually and not something offered by many other distributions.

To avoid having to edit your sources after installation simply ensure that the installer has an internet connection and is provided with a mirror when it requests one.
1: I'm not saying it should not be possible to have the CD-ROM as the repository! I criticize that is default, when assuming 99 out of 100 are using the online repository.
2: I do have an internet connection under installation and also selecting a mirror. This happens both for Debian 9 & 10

So, it's the debian-installer which take care of this?

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-18 11:31
by Deb-fan
Everybody's a critic sheesh. Still an overall trivial thing, after all the amazing work the folks behind Debian put into things. Curious does it give any errors?

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-18 11:32
by Ardouos
Deb-fan wrote:Curious does it give any errors?
If the installation media is not inserted, it will sit and time out. It is better just to comment it out.

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-18 11:38
by Deb-fan
^Thanks, always do net installs, generally without any connection and inevitably end up having to manually populate sources.list. Still tiny effort and time compared to the people who dev/maintain Debian.

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-18 19:54
by Head_on_a_Stick
MrBW wrote:I'm not saying it should not be possible to have the CD-ROM as the repository! I criticize that is default, when assuming 99 out of 100 are using the online repository.
It's not a default, the CDROM entry is only left active if no mirror is supplied.
MrBW wrote:I do have an internet connection under installation and also selecting a mirror. This happens both for Debian 9 & 10
Bullshit.

There is no "Debian 10" and there won't be for several months.

If you have experienced this with the Debian buster installer (which I doubt) then please indicate exactly which image you tried.

I will allow you some benefit of the doubt in respect of Debian 9 because there are problems reported sometimes if the "live" ISO image is used to install a system, the general advice is to use the netinstall image instead as that seems to be more reliable.

I have personally installed Debian jessie & stretch *many* times (using the non-free netinstall image) and I have never had to comment out the CDROM source, the internet sources have always been activated correctly.

And I've just tested the alpha5 buster netinstall image and that also commented out the CDROM lines and added the mirror that I supplied, here is the proof:

Code: Select all

empty@shinken:~ $ cat /mnt/etc/apt/sources.list                         
# 

# deb cdrom:[Debian GNU/Linux buster-DI-alpha5 _Buster_ - Official Snapshot amd64 NETINST 20190126-00:14]/ buster contrib main non-free

#deb cdrom:[Debian GNU/Linux buster-DI-alpha5 _Buster_ - Official Snapshot amd64 NETINST 20190126-00:14]/ buster contrib main non-free

deb http://deb.debian.org/debian/ buster main non-free contrib
deb-src http://deb.debian.org/debian/ buster main non-free contrib

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

# 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.
empty@shinken:~ $
^ I think the last 5 lines are the clincher here, no?

Now please go troll some other forum, your attempts are pathetic.

Re: CD-ROM repository.....come on, this is 2019!

Posted: 2019-03-19 08:35
by Deb-fan
^Thanks for confirming the situation. What I'd been thinking is the case but not in a position to do what you did to verify. Cool to know what's what. :)