Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197557

Re: How to"apt update" from an USB key ?

From davidson <davidson@freevolt.org>
Newsgroups linux.debian.user
Subject Re: How to"apt update" from an USB key ?
Date 2018-07-12 17:40 +0200
Message-ID <waLRg-1ul-9@gated-at.bofh.it> (permalink)
References <wafHH-88i-1@gated-at.bofh.it> <wancd-42o-1@gated-at.bofh.it> <wavjr-bs-1@gated-at.bofh.it> <waA9r-3fE-1@gated-at.bofh.it> <waJmq-8oN-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, 12 Jul 2018, David Wright wrote:

> On Thu 12 Jul 2018 at 03:05:49 (+0000), davidson wrote:
>> On Wed, 11 Jul 2018, Pierre Couderc wrote:
>>
>>>
>>> On 07/11/2018 03:14 PM, Curt wrote:
>>>> On 2018-07-11, Pierre Couderc <pierre@couderc.eu> wrote:
>>>>> On an ultraslim (ACER swift 3) I have no CDROM no Ethernet,
>>>>> only an USB key.
>>>>> I have installed stretch (without GUI) from the USB key, and now I want
>>>>> to install connman, but I do not success to apt-cdrom on an USB.
[trimmed material]
>>>>  First adjust sources.list to only have
>>>>
>>>>    deb [ trusted=yes ] file:/media/DVD-1/ stretch main
>>>>
>>>> ("trusted" avoids warnings about unauthenticated packages--you trust
>>>> the iso on the stick, we assume.)
>>>>
>>>>  Make the DVD-1 directory:
>>>>
>>>>    mkdir /media/DVD-1/
>>>>
>>>>  and insert the USB stick. Obtain the device name from dmesg or lsblk.
>>>>  Then (for example)
>>>>
>>>>    mount /dev/sdg1 /media/DVD-1/
>>>>
>>>> apt update; apt install connman
>>>>
>>
>>> Merci  beucoup, Curt I had seen this kind of solution, but it did
>>> not work as I had not discovered the "trusted" option.
>>>
>>> Now, I have to understand why it says me :
>>>
>>> Malformed line 6 in source list /etc/apt/sources.list (URI parse)
>>>
>>> when my line 6 is :
>>>
>>> deb [trusted=yes] file:/media/cdrom/ stretch main
>>
>> On-topic:
>>
>> I hesitate to speculate out loud about features I have never used and
>> am too lazy to test out myself, but since the OP is getting complaints
>> about malformed lines, I will remark that in every example shown in...
>>
>>   $ man sources.list
>>
>> ... where option-values are passed within square brackets ([]), there
>> are spaces separating the option specification from its enclosing
>> brackets.  For example, one sees
>>
>>   deb [ someoption=somevalue ] uri stretch main
>>
>> but never
>>
>>   deb [someoption=somevalue] uri stretch main
>>
>> So maybe the spaces following '[' and preceding ']' are important.
>
> FWIW my take on this man page is different from yours.
>
>  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] [...]
>    deb-src [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]
>
> The " [ " and " ] " stand for themselves, and delimit the option list.
>
> The " [component1] " stands for, say, "main" or "contrib" etc., ie
> brackets are metacharacters.

It must be just as you say. The spaces in the examples serve only to
disambiguate between literal- and meta-brackets.

And now I know why I couldn't locate any discussion in sources.list(5)
which explicitly stated that including such spaces is important.
(Because in fact they are not important in the slightest.)

Thanks.

>
> Perhaps:
>
>   deb "[" option1=value1 option2=value2 "]" uri suite [component1] [component2] [...]
>   deb-src "[" option1=value1 option2=value2 "]" uri suite [component1] [component2] [...]
>
> would be clearer.

You don't take this far enough.  This calls for full Extended
Backus-Naur form, sudoers(5) style.

Only then can we be certain there will be no confusion.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-11 07:20 +0200
  Re: How to"apt update" from an USB key ? john doe <johndoe65534@mail.com> - 2018-07-11 07:30 +0200
    Re: How to"apt update" from an USB key ? john doe <johndoe65534@mail.com> - 2018-07-11 08:30 +0200
  Re: How to"apt update" from an USB key ? Darac Marjal <mailinglist@darac.org.uk> - 2018-07-11 12:30 +0200
  Re: How to"apt update" from an USB key ? Roberto C. Sánchez <roberto@debian.org> - 2018-07-11 13:40 +0200
  Re: How to"apt update" from an USB key ? Curt <curty@free.fr> - 2018-07-11 15:20 +0200
    Re: How to"apt update" from an USB key ? Brian <ad44@cityscape.co.uk> - 2018-07-11 17:50 +0200
      Re: How to"apt update" from an USB key ? Curt <curty@free.fr> - 2018-07-11 18:50 +0200
    Re: How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-12 00:00 +0200
      Re: How to"apt update" from an USB key ? davidson <davidson@freevolt.org> - 2018-07-12 05:10 +0200
        Re: How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-12 07:40 +0200
        Re: How to"apt update" from an USB key ? David Wright <deblis@lionunicorn.co.uk> - 2018-07-12 15:00 +0200
          Re: How to"apt update" from an USB key ? davidson <davidson@freevolt.org> - 2018-07-12 17:40 +0200
      Re: How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-12 07:40 +0200
      Re: How to"apt update" from an USB key ? Brian <ad44@cityscape.co.uk> - 2018-07-12 11:50 +0200
        Re: How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-12 12:30 +0200
          Re: How to"apt update" from an USB key ? Brian <ad44@cityscape.co.uk> - 2018-07-12 12:50 +0200
            Re: How to"apt update" from an USB key ? Pierre Couderc <pierre@couderc.eu> - 2018-07-12 13:30 +0200
          making console font legible [was Re: How to"apt update" from an USB  key ?] davidson <davidson@freevolt.org> - 2018-07-12 19:40 +0200
            Re: making console font legible [was Re: How to"apt update" from an  USB key ?] Pierre Couderc <pierre@couderc.eu> - 2018-07-12 20:50 +0200
          Re: making console font legible (was How to"apt upd...) Felix Miata <mrmazda@earthlink.net> - 2018-07-12 20:50 +0200
            Re: making console font legible (was How to"apt upd...) Pierre Couderc <pierre@couderc.eu> - 2018-07-12 20:50 +0200

csiph-web