Hello I would simply like to know if apt-get update is related to internet connectivity
is it normal for an error message to be returned in case of a cdrom or dvd in sources.list?
). You can reference repositories from a CD-ROM or from the Internet.
Good luck
kiff665
Hello and thank you for the reply.
Indeed, I looked in sources.list which updates with apt-cdrom add. But apt-get update returns an error message I didn’t have at the start with the 10.2 ISO, DVD 1, 2 and 3. I deleted them since I ran out of space after they had been used to install my virtual machine (VirtualBox) Debian, and the apt-get install or update went fine. Since loading 10.3, apt-cdrom add works fine and updates the source, but updates and installs no longer succeed. Is this a bug due to the virtual machine?
I’m sending you the messages:
root@debian:~# apt-cdrom add
Using the mount point /media/cdrom0/ for the CD-ROM
Identification ...[c66dba850c655d782b0dbd976d80d3c9-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
Label “Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08 ” found
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
root@debian:~# apt-cdrom add
Using the mount point /media/cdrom0/ for the CD-ROM
Identification ...[976e6f2050b61067f7f0f5b9354c1530-2]
Examining the disc for index files...
0 package indexes found, 0 source indexes, 0 translation indexes and 0 signatures
Using the mount point /media/cdrom/ for the CD-ROM
Unmounting the CD-ROM...
Waiting for the disc...
Please insert a disc into the reader and press the [Enter] key
Mounting the CD-ROM...
E: No package file found. This may not be a Debian disc or the architecture may be incorrect.
E: Failed to mount the cdrom.
E: No CD was detected or found on the default mount point.
You can use the --cdrom option to specify the CD-ROM mount point.
See the apt-cdrom manual page for more information on auto-detecting CDs and the mount point.
root@debian:~# apt-cdrom add
Using the mount point /media/cdrom/ for the CD-ROM
Mounting the CD-ROM...
Waiting for the disc...
Please insert a disc into the reader and press the [Enter] key
Mounting the CD-ROM...
Identification ...[f82438324c2d6bf9d9ea8e0ac6035f5d-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
Label “Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08 ” found
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
root@debian:~# apt-cdrom add
Using the mount point /media/cdrom/ for the CD-ROM
Identification ...[965a9c1e5d523f38ca94c99df32ceb39-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
Label “Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ” found
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
(root@debian:~# apt-cdrom add
Using the mount point /media/cdrom/ for the CD-ROM
Identification ...[f82438324c2d6bf9d9ea8e0ac6035f5d-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
root@debian:~# apt-cdrom add
Using the mount point /media/cdrom/ for the CD-ROM
Identification ...[b82438324c2d6bf9d9ea8e0ac6035f5d-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
Label “Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ” found
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
(root@debian:~# apt-cdrom add
Using the mount point /media/cdrom/ for the CD-ROM
Identification ...[965a9c1e5d523f38ca94c99df32ceb39-2]
Examining the disc for index files...
2 package indexes found, 0 source indexes, 3 translation indexes and 0 signatures
Label “Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ” found
This disc is called:
“ Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08 ”
Reading Package Indexes... Done
Reading Translation Indexes... Done
Writing the new list of sources
The entries of the sources lists for this disc are:
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08]/ buster contrib main
Please repeat this operation for all discs of your CD set.
(APT-CDROM ADD)
)
And the sources.list is updated:
root@debian:~# cat /etc/apt/sources.list
#
#
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main
#
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main
#
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-2 20191116-09:57]/ buster contrib main
#
# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-3 20191116-09:57]/ buster contrib main
#
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08]/ buster contrib main
deb http://security.debian.org/debian-security/ buster/updates main contrib
deb-src http://security.debian.org/debian-security/ http://security.debian.org/debian-security/ buster/updates main contrib
# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
But apt-get update no longer works:
root@debian:~# apt-get update
Ign:1 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08] buster InRelease
Ign:2 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08] buster InRelease
Ign:3 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08] buster InRelease
Err:4 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08] buster Release
Please use apt-cdrom to make this CD-ROM recognized by your APT. apt-get update cannot be used to add new CD-ROMs
Err:5 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08] buster Release
Please use apt-cdrom to make this CD-ROM recognized by your APT. apt-get update cannot be used to add new CD-ROMs
Err:6 cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08] buster Release
Please use apt-cdrom to make this CD-ROM recognized by your APT. apt-get update cannot be used to add new CD-ROMs
Atteint:7 http://security.debian.org/debian-security/ buster/updates InRelease
Atteint:8 http://ftp.debian.org/debian/ buster-updates InRelease
Reading package lists... Done
E: The repository cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-3 20200208-12:08] buster Release has no Release file.
N: Updates from such a repository cannot be performed securely, and are therefore disabled by default.
N: See apt-secure(8) for details.
E: The repository cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-2 20200208-12:08] buster Release has no Release file.
N: Updates from such a repository cannot be performed securely, and are therefore disabled by default.
N: See apt-secure(8) for details.
E: The repository cdrom://[Debian GNU/Linux 10.3.0 _Buster_ - Official amd64 DVD Binary-1 20200208-12:08] buster Release has no Release file.
N: Updates from such a repository cannot be performed securely, and are therefore disabled by default.
N: See apt-secure(8) for details.
Thank you in advance
mamiemando
Moderator
Hello,
Sorry for the late reply. In your case, here is what the cleaned /etc/apt/sources.list file should look like (for me, stable has been replaced by testing, i.e., currently Debian Bullseye)
deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
deb https://www.debian.org/security/ stable-security main contrib non-free
deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free
Good luck
kiff665
thank you a few shadows but my problem is solved
mamiemando
Moderator
If your problem is resolved, that’s what matters.
Just to try to clarify the gray areas:
- apt searches for repositories in the file /etc/apt/sources.list (standard repositories) and any files contained in /etc/apt/sources.list.d (non-standard repositories, one file per application, e.g. /etc/apt/sources.list.d/skype-stable.list)
- these files contain two types of repositories: deb (binary packages, the ones we actually use) and deb-src (source packages, only used by people who want to recompile a software, which is exceptional in practice, which is why I personally remove them)
- each repository is associated with an "address": typically a URL, CD-ROM, etc. If a CD-ROM source is defined, then the corresponding CD-ROM must be inserted into the drive. In practice it is often a bad idea to keep these sources after installation. We only keep the internet sources. They can remain after an installation done with a CD-ROM. In that case, simply delete the lines related to CD-ROM repositories in these files by editing them with root rights (e.g. via the command pkexec gedit /etc/apt/sources.list), or comment them out by adding a # in front of them.
Personally I recommend installations done from a USB key in netinstall. This ensures that, at the end of the installation, Debian is completely up to date right away. In addition, the repositories will be configured directly since the installation is done from the internet repositories. And finally, fewer and fewer PCs (especially laptops) have a CD-ROM drive, so it’s better to get used to installing from a USB key.