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


Groups > linux.debian.user > #197472 > unrolled thread

How to"apt update" from an USB key ?

Started byPierre Couderc <pierre@couderc.eu>
First post2018-07-11 07:20 +0200
Last post2018-07-12 20:50 +0200
Articles 20 on this page of 22 — 9 participants

Back to article view | Back to linux.debian.user


Contents

  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

Page 1 of 2  [1] 2  Next page →


#197472 — How to"apt update" from an USB key ?

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-11 07:20 +0200
SubjectHow to"apt update" from an USB key ?
Message-ID<wafHH-88i-1@gated-at.bofh.it>
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.
I have googled but did not find a correct howto to do that...

Thanks in advance
PC

[toc] | [next] | [standalone]


#197473

Fromjohn doe <johndoe65534@mail.com>
Date2018-07-11 07:30 +0200
Message-ID<wafRn-8bb-3@gated-at.bofh.it>
In reply to#197472
On 7/11/2018 7:10 AM, Pierre Couderc 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.
> I have googled but did not find a correct howto to do that...
> 

Why not updating/installing using your internet connection?

If the package that you want to install is on your usb key you will need 
to modify /etc/apt/sources.list accordingly.:

https://askubuntu.com/questions/3576/how-to-make-usb-drive-as-local-repository

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#197474

Fromjohn doe <johndoe65534@mail.com>
Date2018-07-11 08:30 +0200
Message-ID<wagNr-gV-1@gated-at.bofh.it>
In reply to#197473
On 7/11/2018 7:55 AM, Pierre Couderc wrote:
> On 07/11/2018 07:27 AM, john doe wrote:
>> On 7/11/2018 7:10 AM, Pierre Couderc 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.
>>> I have googled but did not find a correct howto to do that...
>>>
>>
>> Why not updating/installing using your internet connection?
> Because I have no internet connexion for the moment...
>>
>> If the package that you want to install is on your usb key 
> For the moment, my usb key contians a dd 
> if=debian-9.4.0-amd64-DVD-1.iso  of=/dev/sdc
>> you will need to modify /etc/apt/sources.list accordingly.:
>>
>> https://askubuntu.com/questions/3576/how-to-make-usb-drive-as-local-repository 
>>
> I had soon tried many of the solutions proposed here and none did work. 
> Maybe, you have a specific idea about which is "the" correct one ?
> 

No, other then insuring that the pkg that you want is on that "dvd".

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#197479

FromDarac Marjal <mailinglist@darac.org.uk>
Date2018-07-11 12:30 +0200
Message-ID<wakxH-2rr-5@gated-at.bofh.it>
In reply to#197472

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

On Wed, Jul 11, 2018 at 07:10:25AM +0200, Pierre Couderc 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.
>I have googled but did not find a correct howto to do that...

Personally, for this, I would have used "apt-zip", but it seems that 
that is no longer updated. If you're willing to give it a go, grab the 
.deb file from https://packages.debian.org/wheezy/apt-zip and install it 
with "dpkg -i /path/to/apt-zip*.deb". Documentation for it is in the 
manpage but, essentially, running "apt-zip-list -m /mnt/usb -p conman" 
should ask apt which packages are needed to install conman on your 
system and write a script to /mnt/usb which will wget them. The idea, 
then, is that you take the USB stick to an internet-connected PC and run 
the script (it's possible to run it from Cygwin or Bash For Windows if 
required). The script downloads the packages to the USB and, finally, 
you take the USB stick back to your disconnected PC and run 
"apt-zip-inst -m /mnt/usb" and those packages get installed.

>
>Thanks in advance
>PC
>
>
>

-- 
For more information, please reread.

[toc] | [prev] | [next] | [standalone]


#197483

FromRoberto C. Sánchez <roberto@debian.org>
Date2018-07-11 13:40 +0200
Message-ID<walDr-323-5@gated-at.bofh.it>
In reply to#197472
On Wed, Jul 11, 2018 at 07:10:25AM +0200, Pierre Couderc 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.
> I have googled but did not find a correct howto to do that...
> 
The package you want to use is apt-offline.  Here is the description:

 apt-offline can be used to generate a signature on a machine (with no network).
 This signature contains all download information required for the APT database
 system. This signature file can be used on another machine connected to the
 internet (which need not be a Debian box and can even be running windows) to
 download the updates.
 The downloaded data will contain all updates in a format understood by APT and
 this data can be used by apt-offline to update the non-networked machine.

Regards,

-Roberto

-- 
Roberto C. Sánchez

[toc] | [prev] | [next] | [standalone]


#197495

FromCurt <curty@free.fr>
Date2018-07-11 15:20 +0200
Message-ID<wancd-42o-1@gated-at.bofh.it>
In reply to#197472
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.
> I have googled but did not find a correct howto to do that...

Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
you're trying to use apt-cdrom with the stick and the machine has no
internet connection and you installed from the stick this is my
assumption.  Others seem to have assumed other things. As I have a very
low assumption batting average lately I hesitate slightly to join the
fray.)

(copied from a post by UK Brian--I think there's only one over there)

 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

It occurs to me I have no idea whether connman is on CD1 (or DVD1, or
whatever's on the stick). But if you've asked the right question this
may be the correct answer. Bonne chance.


> Thanks in advance
> PC
>
>
>
>

[toc] | [prev] | [next] | [standalone]


#197501

FromBrian <ad44@cityscape.co.uk>
Date2018-07-11 17:50 +0200
Message-ID<wapxn-5hW-7@gated-at.bofh.it>
In reply to#197495
On Wed 11 Jul 2018 at 13:14:22 +0000, 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.
> > I have googled but did not find a correct howto to do that...
> 
> Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
> you're trying to use apt-cdrom with the stick and the machine has no
> internet connection and you installed from the stick this is my
> assumption.  Others seem to have assumed other things. As I have a very
> low assumption batting average lately I hesitate slightly to join the
> fray.)

But you feel kindly disposed after Tuesday night's result. :)

> (copied from a post by UK Brian--I think there's only one over there)
> 
>  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

Thank you, Curt - but you could have corrected my split infinitive. :)

> It occurs to me I have no idea whether connman is on CD1 (or DVD1, or
> whatever's on the stick). But if you've asked the right question this
> may be the correct answer. Bonne chance.

For what is on each DVD:

 https://cdimage.debian.org/debian-cd/current/i386/list-dvd/

I think connman is on DVD-1 for stretch.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#197511

FromCurt <curty@free.fr>
Date2018-07-11 18:50 +0200
Message-ID<waqts-5Pz-15@gated-at.bofh.it>
In reply to#197501
On 2018-07-11, Brian <ad44@cityscape.co.uk> wrote:
> On Wed 11 Jul 2018 at 13:14:22 +0000, 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.
>> > I have googled but did not find a correct howto to do that...
>> 
>> Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
>> you're trying to use apt-cdrom with the stick and the machine has no
>> internet connection and you installed from the stick this is my
>> assumption.  Others seem to have assumed other things. As I have a very
>> low assumption batting average lately I hesitate slightly to join the
>> fray.)
>
> But you feel kindly disposed after Tuesday night's result. :)

I'm rooting for England tonight!

[toc] | [prev] | [next] | [standalone]


#197521

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 00:00 +0200
Message-ID<wavjr-bs-1@gated-at.bofh.it>
In reply to#197495
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.
>> I have googled but did not find a correct howto to do that...
> Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
> you're trying to use apt-cdrom with the stick and the machine has no
> internet connection and you installed from the stick this is my
> assumption.
Yes, your assumption is right. I have created the USB stick  with dd 
.iso ->usb.
I thank very much John, Darac y Roberto, but it is not my problem.
>    Others seem to have assumed other things. As I have a very
> low assumption batting average lately I hesitate slightly to join the
> fray.)
>
> (copied from a post by UK Brian--I think there's only one over there)
>
>   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

And if I remove the , I get the message about file not signed...
  [trusted=yes]

[toc] | [prev] | [next] | [standalone]


#197525

Fromdavidson <davidson@freevolt.org>
Date2018-07-12 05:10 +0200
Message-ID<waA9r-3fE-1@gated-at.bofh.it>
In reply to#197521

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

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.
>>> I have googled but did not find a correct howto to do that...
>> Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
>> you're trying to use apt-cdrom with the stick and the machine has no
>> internet connection and you installed from the stick this is my
>> assumption.
> Yes, your assumption is right. I have created the USB stick  with dd .iso 
> ->usb.
> I thank very much John, Darac y Roberto, but it is not my problem.
>>    Others seem to have assumed other things. As I have a very
>> low assumption batting average lately I hesitate slightly to join the
>> fray.)
>> 
>> (copied from a post by UK Brian--I think there's only one over there)
>>
>>   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.


Off-topic:

I found the following part of OP's message very confusing, until I
figured out the syntax of OP's novel quoting style:

> And if I remove the , I get the message about file not signed...
> [trusted=yes]

One puts the , on its own line below, like this!
quoted part

(I'm going to do quotes like this all the time now.)

[toc] | [prev] | [next] | [standalone]


#197528

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 07:40 +0200
Message-ID<waCuB-4vv-3@gated-at.bofh.it>
In reply to#197525

On 07/12/2018 05:05 AM, davidson wrote:
> On Wed, 11 Jul 2018, Pierre Couderc wrote:
>
>
> 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.
>
I had traces with and without spaces...
Sorry, my post was very confusing...

[toc] | [prev] | [next] | [standalone]


#197553

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2018-07-12 15:00 +0200
Message-ID<waJmq-8oN-11@gated-at.bofh.it>
In reply to#197525
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.
> >>>I have googled but did not find a correct howto to do that...
> >>Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
> >>you're trying to use apt-cdrom with the stick and the machine has no
> >>internet connection and you installed from the stick this is my
> >>assumption.
> >Yes, your assumption is right. I have created the USB stick  with
> >dd .iso ->usb.
> >I thank very much John, Darac y Roberto, but it is not my problem.
> >>   Others seem to have assumed other things. As I have a very
> >>low assumption batting average lately I hesitate slightly to join the
> >>fray.)
> >>
> >>(copied from a post by UK Brian--I think there's only one over there)
> >>
> >>  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.

Perhaps:

           deb "[" option1=value1 option2=value2 "]" uri suite [component1] [component2] [...]
           deb-src "[" option1=value1 option2=value2 "]" uri suite [component1] [component2] [...]

would be clearer.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#197557

Fromdavidson <davidson@freevolt.org>
Date2018-07-12 17:40 +0200
Message-ID<waLRg-1ul-9@gated-at.bofh.it>
In reply to#197553

[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.

[toc] | [prev] | [next] | [standalone]


#197529

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 07:40 +0200
Message-ID<waCuB-4vv-5@gated-at.bofh.it>
In reply to#197521
On 07/11/2018 11:53 PM, Pierre Couderc wrote:
> 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
>
I think that I have found an answer in :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872543

But the workaroud does not work for me.

[toc] | [prev] | [next] | [standalone]


#197537

FromBrian <ad44@cityscape.co.uk>
Date2018-07-12 11:50 +0200
Message-ID<waGox-6IW-3@gated-at.bofh.it>
In reply to#197521
On Wed 11 Jul 2018 at 23:53:59 +0200, 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.
> > > I have googled but did not find a correct howto to do that...
> > Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
> > you're trying to use apt-cdrom with the stick and the machine has no
> > internet connection and you installed from the stick this is my
> > assumption.
> Yes, your assumption is right. I have created the USB stick  with dd .iso
> ->usb.
> I thank very much John, Darac y Roberto, but it is not my problem.
> >    Others seem to have assumed other things. As I have a very
> > low assumption batting average lately I hesitate slightly to join the
> > fray.)
> > 
> > (copied from a post by UK Brian--I think there's only one over there)
> > 
> >   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)

URI parse - apt does not understand the URI you have in sources.list.

> when my line 6 is :
> 
> deb [trusted=yes] file:/media/cdrom/ stretch main

Did you type this into your mail or was it a copy and paste? (The URI
above works for me).

> And if I remove the , I get the message about file not signed...
>  [trusted=yes

If you get this message then apt finds the URI acceptable. If the URI
is not ok, it won't get this far.

I doubt that bug #872543 has anthing to do with your issue.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#197539

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 12:30 +0200
Message-ID<waH1g-7aj-11@gated-at.bofh.it>
In reply to#197537
On 07/12/2018 11:45 AM, Brian wrote:
> On Wed 11 Jul 2018 at 23:53:59 +0200, 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.
>>>> I have googled but did not find a correct howto to do that...
>>> Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
>>> you're trying to use apt-cdrom with the stick and the machine has no
>>> internet connection and you installed from the stick this is my
>>> assumption.
>> Yes, your assumption is right. I have created the USB stick  with dd .iso
>> ->usb.
>> I thank very much John, Darac y Roberto, but it is not my problem.
>>>     Others seem to have assumed other things. As I have a very
>>> low assumption batting average lately I hesitate slightly to join the
>>> fray.)
>>>
>>> (copied from a post by UK Brian--I think there's only one over there)
>>>
>>>    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)
> URI parse - apt does not understand the URI you have in sources.list.
>
>> when my line 6 is :
>>
>> deb [trusted=yes] file:/media/cdrom/ stretch main
> Did you type this into your mail or was it a copy and paste? (The URI
> above works for me).
>
>> And if I remove the , I get the message about file not signed...
>>   [trusted=yes
> If you get this message then apt finds the URI acceptable. If the URI
> is not ok, it won't get this far.
>
> I doubt that bug #872543 has anthing to do with your issue.
>
I cannot copy paste as I have not access to lan/wan
So I typed this in my mail..

As you point me in the good direction, I have removed the full line and 
typed it again.
And now it works !
I suppose that I did key some bad character somewhere...
The point too is the font is very small on these Acer Swift when nothing 
is installed, and as I am a bit old I have difficults to see characters...

Thnak you very much, Brian !

[toc] | [prev] | [next] | [standalone]


#197541

FromBrian <ad44@cityscape.co.uk>
Date2018-07-12 12:50 +0200
Message-ID<waHkB-7gm-1@gated-at.bofh.it>
In reply to#197539
On Thu 12 Jul 2018 at 12:20:43 +0200, Pierre Couderc wrote:

> On 07/12/2018 11:45 AM, Brian wrote:
> > On Wed 11 Jul 2018 at 23:53:59 +0200, 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.
> > > > > I have googled but did not find a correct howto to do that...
> > > > Not clear what's on the stick; I assume it's DVD1 (or CD1). (I mean if
> > > > you're trying to use apt-cdrom with the stick and the machine has no
> > > > internet connection and you installed from the stick this is my
> > > > assumption.
> > > Yes, your assumption is right. I have created the USB stick  with dd .iso
> > > ->usb.
> > > I thank very much John, Darac y Roberto, but it is not my problem.
> > > >     Others seem to have assumed other things. As I have a very
> > > > low assumption batting average lately I hesitate slightly to join the
> > > > fray.)
> > > > 
> > > > (copied from a post by UK Brian--I think there's only one over there)
> > > > 
> > > >    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)
> > URI parse - apt does not understand the URI you have in sources.list.
> > 
> > > when my line 6 is :
> > > 
> > > deb [trusted=yes] file:/media/cdrom/ stretch main
> > Did you type this into your mail or was it a copy and paste? (The URI
> > above works for me).
> > 
> > > And if I remove the , I get the message about file not signed...
> > >   [trusted=yes
> > If you get this message then apt finds the URI acceptable. If the URI
> > is not ok, it won't get this far.
> > 
> > I doubt that bug #872543 has anthing to do with your issue.
> > 
> I cannot copy paste as I have not access to lan/wan
> So I typed this in my mail..
> 
> As you point me in the good direction, I have removed the full line and
> typed it again.
> And now it works !
> I suppose that I did key some bad character somewhere...
> The point too is the font is very small on these Acer Swift when nothing is
> installed, and as I am a bit old I have difficults to see characters...
> 
> Thnak you very much, Brian !

You can now access packages on DVD-1. But what about DVD-2, DVD-3 etc?
If not having a network connection is to be a feature of this machine,
you could consider having as many DVDs as you want on the hard disk or
on a USB stick. You might find the Installation section of the wiki
gives a relatively easy way to do this with a single entry in the
sources.list, rather than with separate entries.

I'll also mention that you should really ammend the comment you made in
bug #872543 to point out it was the result of a user error.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#197545

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 13:30 +0200
Message-ID<waHXk-7Hy-15@gated-at.bofh.it>
In reply to#197541
On 07/12/2018 12:47 PM, Brian wrote:
>
> You can now access packages on DVD-1. But what about DVD-2, DVD-3 etc?
> If not having a network connection is to be a feature of this machine,
> you could consider having as many DVDs as you want on the hard disk or
> on a USB stick. You might find the Installation section of the wiki
> gives a relatively easy way to do this with a single entry in the
> sources.list, rather than with separate entries.
Thank you very much. Sorry, I cannot explore this way these days,  I 
have lost too much time now !
>
> I'll also mention that you should really ammend the comment you made in
> bug #872543 to point out it was the result of a user error.
>
Sure !

[toc] | [prev] | [next] | [standalone]


#197560 — making console font legible [was Re: How to"apt update" from an USB key ?]

Fromdavidson <davidson@freevolt.org>
Date2018-07-12 19:40 +0200
Subjectmaking console font legible [was Re: How to"apt update" from an USB key ?]
Message-ID<waNJo-2AH-3@gated-at.bofh.it>
In reply to#197539
On Thu, 12 Jul 2018, Pierre Couderc wrote:

> On 07/12/2018 11:45 AM, Brian wrote:
>> On Wed 11 Jul 2018 at 23:53:59 +0200, Pierre Couderc wrote:
>> 
>>> On 07/11/2018 03:14 PM, Curt wrote:
>>>> On 2018-07-11, Pierre Couderc <pierre@couderc.eu> wrote:
[trimmed material]
>>> Now, I have to understand why it says me :
>>> 
>>> Malformed line 6 in source list /etc/apt/sources.list (URI parse)
>> URI parse - apt does not understand the URI you have in sources.list.
>> 
>>> when my line 6 is :
>>> 
>>> deb [trusted=yes] file:/media/cdrom/ stretch main
>> Did you type this into your mail or was it a copy and paste? (The URI
>> above works for me).
>> 
>>> And if I remove the , I get the message about file not signed...
>>>   [trusted=yes
>> If you get this message then apt finds the URI acceptable. If the URI
>> is not ok, it won't get this far.
>> 
>> I doubt that bug #872543 has anthing to do with your issue.
>> 
> I cannot copy paste as I have not access to lan/wan
> So I typed this in my mail..
>
> As you point me in the good direction, I have removed the full line and typed 
> it again.
> And now it works !
> I suppose that I did key some bad character somewhere...
> The point too is the font is very small on these Acer Swift when nothing is 
> installed, and as I am a bit old I have difficults to see characters...

Have you tried experimenting with different font faces?

  # dkpg-reconfigure console-setup

Different faces permit different sizes, which you can read about[1] in

   $ man 5 console-setup

under OPTIONS, in the section on FONTFACE and FONTSIZE:

| FONTFACE and FONTSIZE

| Valid font faces are: VGA (sizes 8x8, 8x14, 8x16, 16x28 and 16x32),
| Terminus (sizes 6x12, 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32),
| TerminusBold (sizes 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32),
| TerminusBoldVGA (sizes 8x14 and 8x16), and Fixed (sizes 8x13, 8x14,
| 8x15, 8x16 and 8x18).  If however CODESET=Ethiopian, then the
| available font faces are Goha and GohaClassic, each in sizes 8x12,
| 8x14 and 8x16.

I don't know about your particular device, but FWIW the Terminus
fontface frequently proves helpful for me.

NOTE

1. I must acknowledge that there is a chicken-and-egg problem
here. Good luck!

[toc] | [prev] | [next] | [standalone]


#197564 — Re: making console font legible [was Re: How to"apt update" from an USB key ?]

FromPierre Couderc <pierre@couderc.eu>
Date2018-07-12 20:50 +0200
SubjectRe: making console font legible [was Re: How to"apt update" from an USB key ?]
Message-ID<waOP8-3b1-7@gated-at.bofh.it>
In reply to#197560
On 07/12/2018 07:33 PM, davidson wrote:
> The point too is the font is very small on these Acer Swift when 
> nothing is installed, and as I am a bit old I have difficults to see 
> characters...
>
> Have you tried experimenting with different font faces?
>
>  # dkpg-reconfigure console-setup
>
> Different faces permit different sizes, which you can read about[1] in
>
>   $ man 5 console-setup
>
> under OPTIONS, in the section on FONTFACE and FONTSIZE:
>
> | FONTFACE and FONTSIZE
>
> | Valid font faces are: VGA (sizes 8x8, 8x14, 8x16, 16x28 and 16x32),
> | Terminus (sizes 6x12, 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32),
> | TerminusBold (sizes 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32),
> | TerminusBoldVGA (sizes 8x14 and 8x16), and Fixed (sizes 8x13, 8x14,
> | 8x15, 8x16 and 8x18).  If however CODESET=Ethiopian, then the
> | available font faces are Goha and GohaClassic, each in sizes 8x12,
> | 8x14 and 8x16.
>
> I don't know about your particular device, but FWIW the Terminus
> fontface frequently proves helpful for me.
>
>
I had not. And on your advice, I have changed to terminus 10x20 and it 
is very fine for me now !
Thank you very much.

PC

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | linux.debian.user


csiph-web