Web lists-archives.com

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

On 05/31/2019 01:31 PM, Thomas Schmitt wrote:

new idea after googling and finding several examples like Dan Ritter's

Try the "exact path" form of "suite":

   deb file:///home/richard/dvdmount pool/main/
   deb file:///home/richard/dvdmount pool/contrib/

or the usual form without mentioning (demanding ?) "stretch":

   deb file:///home/richard/dvdmount pool main contrib


You report this program message:
The repository 'file:/home/richard/dvdmount/pool stretch Release'
does not have a Release file.

/mnt/iso/pool has "main" and "contrib" but no "stretch".

man 5 sources.list says:

        deb [ options ] uri suite [component1] [component2] [...]
     can specify an exact path, in which case the components must be omitted
     and suite must end with a slash (/). This is useful for the case when
     only a particular sub-section of the archive denoted by the URI is of
     interest. If suite does not specify an exact path, at least one
     component must be present.

Suite "stretch" is neither "exact path" nor does it appear in the pool
tree of DVD 1.

Further for the "exact path" case:

     In the traditional style sources.list format since only one
     distribution can be specified per line it may be necessary to have
     multiple lines for the same URI, if a subset of all available
     distributions or components at that location is desired.

I first tried
  deb file:///home/richard/dvdmount pool main contrib
  deb file:///home/richard/dvdmount pool/main/
  deb file:///home/richard/dvdmount pool/contrib/

Both gave " ... does not have a Release file" messages.
The later also said:
Updating from such a repository can't be done securely, and
is therefore disabled by default.See apt-secure(8) manpage
for repository creation and user configuration details.

I suspect I'm running up against two things:
1. Documentation (esp man pages) authors assume *ALL* readers have
   the same background they do. I don't. {I was on the other side
   ~50 years ago as an Engineering Co-op student writing the
   inspection manual for a new oscilloscope ;}
2. Changes in what apt identifies acceptable repositories.

I'm reading or re-reading:






with special focus on
    "Chapter 6. Maintenance and Updates: The APT Tools"

I intend to experiment with modifying files in /etc/apt/apt.conf.d rather than modifying sources.list. This will require I dedicate a separate machine to the experiment. I will also use that machine to compare stretch to earlier releases.