On 2018-12-16 13:03 -0600, Richard Owlett wrote:

> My sources.list has lines of the form
> deb trusted=yes file:/media/richard/debian9/dvd1 stable main contrib
>
> When using Synaptic's "Edit->Reload Package Information" the error
> message is:
>> E: Malformed entry 3 in list file /etc/apt/sources.list (URI parse)
>> E: The list of sources could not be read.
>> Go to the repository dialog to correct the problem.
>> E: _cache->open() failed, please report.
>
> https://manpages.debian.org/stretch/apt/sources.list.5.en.html states
>> Uses the archive stored locally (or NFS mounted) at /home/apt/debian
>> for stable/main, stable/contrib, and stable/non-free.
>>
>> deb file:/home/apt/debian stable main contrib non-free
>>
> It also states:
>> The format for two one-line-style entries using the deb and deb-src types is:
>>
>> deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] 
>> [...]

It might not be totally obvious, but the square brackets around
"option=value" need to be put verbatim in sources.list entries.  Note
the spaces after the opening and before the closing bracket.

deb [ trusted=yes ] file:/… works for me.

Cheers,
       Sven

Reply via email to