Web lists-archives.com

Re: Using ISO image of installer DVD as repository - How?




On 05/31/2019 08:30 AM, Dan Ritter wrote:
Richard Owlett wrote:
On 05/31/2019 07:30 AM, Dan Ritter wrote:
Richard Owlett wrote:
With the first DVD of Debian 9.8.0 I did:
     dd if=/dev/cdrom of=dvd.iso bs=4M
I edited sources.list to read
     deb file:///home/richard/dvd.iso stretch main contrib trusted=yes

When running Synaptic's
      Edit->Reload Package Information
I receive an error message:
The repository 'file:/home/richard/dvd.iso stretch Release'
does not have a Release file.

What is the problem?

The problem is that the .iso is not a mounted filesystem.

You could:

$ mkdir /home/richard/dvdmount
$ sudo mount /home/richard/dvd.iso /home/richard/dvdmount

If it complains about the filetype, try -t udf or -t iso9660.

It did not complain.


and then you can use this sources.list line:

      deb file:///home/richard/dvdmount stretch main contrib trusted=yes

(or similar; I don't recall if the debian repository on disc
starts in the root of the disc)

I now get a different error message:
The repository 'file:/home/richard/dvdmount stretch Release' is not signed.

I also added "allow-insecure=yes" to sources.list with the same result.

Try [trusted=yes] and/or [allow-insecure=yes]  --- the brackets
are part of the syntax.


Same message using each separately and using both.