Re: Using ISO image of installer DVD as repository - How?
On Sun 02 Jun 2019 at 18:28:24 +0100, Brian wrote:
> A resumé of parts of the first few messages in this thread might focus
> minds. It started with
> > I edited sources.list to read
> > deb file:///home/richard/dvd.iso stretch main contrib trusted=yes
> It was pointed out by Dan Ritter (correctly) that
> > The problem is that the .iso is not a mounted filesystem.
> There is another mistake in the line which was regrettably perpetuated
> by Dan when he gave the revised line
> > deb file:///home/richard/dvdmount stretch main contrib trusted=yes
> On the OP saying
> > I now get a different error message:
> > The repository 'file:/home/richard/dvdmount stretch Release' is not signed.
> the advice was
> > Try [trusted=yes] and/or [allow-insecure=yes]
> Hmm, an example line might have prevented the slide into apt mayhem.
> At this point my guess would be that the OP substituted one malformed
> line for another malformed line and sank deeper into the morass. A
> rescue could be effected by using sources.lis(5) but there is, as yet,
> no sign that its advice has been followed or tried.
I am getting bored with soliloquy and waiting for self-education to bear
The starting point is
> deb file:///home/richard/dvdmount stretch main contrib trusted=yes
As the sources.list manual indicates, this should be
deb [trusted=yes] file:///home/richard/dvdmount stretch main contrib
and will get the error message
> Release file for file:///home/richard/dvdmount/Release is expired (invalid since...).
As sources.list(5) relates:
> A repository creator can declare a time until which the data
> provided in the repository should be considered valid, and if
> this time is reached, but no new data is provided, the data is
> considered expired and an error is raised.
We now update the line to
deb [trusted=yes check-valid-until=no] file:///home/richard/dvdmount stretch main contrib
and there we have it. Success.