Release' does not have a Release file.

Help with issues regarding installation of Debian

Release' does not have a Release file.

Postby hack3rcon » 2020-05-28 15:14

Hello,
I want to upgrade Debian 10.3 amd64 to 10.4. I downloaded the DVDs and added them via "apt-cdrom" command, but it show me "Release' does not have a Release file." Error.
The source file content is:
Code: Select all
$ cat /etc/apt/sources.list

# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:

# 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 cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-3 20200509-10:26]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-2 20200509-10:26]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26]/ buster contrib main

And the error is:
Code: Select all
$ sudo apt-get update

Ign:1 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-3 20200509-10:26] buster InRelease
Ign:2 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-2 20200509-10:26] buster InRelease
Ign:3 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster InRelease
Err:4 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-3 20200509-10:26] buster Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:5 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-2 20200509-10:26] buster Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:6 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-3 20200509-10:26] buster 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.
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-2 20200509-10:26] buster 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.
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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.

How can I solve it?

Thank you.
hack3rcon
 
Posts: 476
Joined: 2015-02-16 09:54

Re: Release' does not have a Release file.

Postby CwF » 2020-05-28 15:41

dump all the debs sorted how you like in a directory structure like pool/dists/buster/binary-i386/
Then install dpkg-dev, and from a terminal in that directory run
Code: Select all
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Add to your sources list
Code: Select all
deb [trusted=yes] file:///pool/dists/buster/binary-i386/ ./

then apt-update, and continue
.
I cut-n-pasted from last time, update to your situation, should still work
CwF
 
Posts: 818
Joined: 2018-06-20 15:16

Re: Release' does not have a Release file.

Postby hack3rcon » 2020-05-30 14:58

CwF wrote:dump all the debs sorted how you like in a directory structure like pool/dists/buster/binary-i386/
Then install dpkg-dev, and from a terminal in that directory run
Code: Select all
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Add to your sources list
Code: Select all
deb [trusted=yes] file:///pool/dists/buster/binary-i386/ ./

then apt-update, and continue
.
I cut-n-pasted from last time, update to your situation, should still work

What this command do?
No other solution?
hack3rcon
 
Posts: 476
Joined: 2015-02-16 09:54

Re: Release' does not have a Release file.

Postby CwF » 2020-05-30 15:50

hack3rcon wrote:What this command do?
No other solution?

I'm sure lots of ways to do it...
Doing offline computers, this is how I do it, bypass all the hurdles.
The command switch -scanpackages from the package dpkg-dev will collate all the debs in the directory tree into a master file Packages.gz that apt can parse. No other repository entries need to exist other than one line like listed that points to Packages.gz. the contents of Packages.gz , ie your tree of debs, will be the entire contents of the apt database. Any deb can be included in your tree, contrib, nonfree, homemade, etc.
In this method there is no release file, not needed, or you can make one to reflect your custom mix.
CwF
 
Posts: 818
Joined: 2018-06-20 15:16

Re: Release' does not have a Release file.

Postby hack3rcon » 2020-06-04 09:45

This method need disk space.
hack3rcon
 
Posts: 476
Joined: 2015-02-16 09:54

Re: Release' does not have a Release file.

Postby hack3rcon » 2020-06-04 09:55

I added "deb [trusted=yes] cdrom:[Debian GNU/Linux..." and problem solved.
hack3rcon
 
Posts: 476
Joined: 2015-02-16 09:54


Return to Installation

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable