wrong commands for apt configuration

1 view
Skip to first unread message

Harald Schilly

unread,
Jan 24, 2009, 3:10:24 PM1/24/09
to Google Linux Repositories Help - Google Linux Repositories Basics
Hi, whoever writes those guides, at http://www.google.com/linuxrepositories/apt.html
you have missed the "sudo" at the first commands for the keys. Either
that, or a "sudo -s" prior to everything, otherwise it doesn't work...

h

leiz

unread,
Jan 28, 2009, 4:15:55 PM1/28/09
to Google Linux Repositories Help - Google Linux Repositories Basics
True, but generally users who are not afraid of using the CLI also
know apt-get and apt-key require root access.

On Jan 24, 12:10 pm, Harald Schilly wrote:
> Hi, whoever writes those guides, athttp://www.google.com/linuxrepositories/apt.html

MichaelM

unread,
Jan 28, 2009, 4:57:32 PM1/28/09
to Google Linux Repositories Help - Google Linux Repositories Basics
Actually, prior to listing the commands, the page does say to run the
commands "as root". Choosing how to do that (sudo, su, etc.) is left
as an exercise to the reader.

Michael

zoop

unread,
Feb 6, 2009, 2:14:44 PM2/6/09
to Google Linux Repositories Help - Google Linux Repositories Basics
Never assume one knows. This detail needs to be explicit.

PeterM

unread,
Mar 7, 2009, 8:56:08 PM3/7/09
to Google Linux Repositories Help - Google Linux Repositories Basics
On Jan 25, 5:10 am, Harald Schilly wrote:
> Hi, whoever writes those guides, athttp://www.google.com/linuxrepositories/apt.html
> you have missed the "sudo" at the first commands for the keys. Either
> that, or a "sudo -s" prior to everything, otherwise it doesn't work...
>
> h

And there is ambiguity about the first line of code:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub |
apt-key add -
apt-get update

The hyphen at the end of the first line causes an error when I tried
it. Is it expecting a file location here?

Secondly, for the beginner, I then tried the webpage down load of the
key. The instructions fail to tell you to save the resulting webpage
with "file>save page as" FILENAME on your desktop to enable the next
step.

PeterM

leiz

unread,
Mar 9, 2009, 2:42:24 AM3/9/09
to Google Linux Repositories Help - Google Linux Repositories Basics
No, wget is sending the output into the pipe and apt-key is reading it
out of the pipe. See the man pages for wget and apt-key for details.

On Mar 7, 6:56 pm, PeterM wrote:
> On Jan 25, 5:10 am, Harald Schilly wrote:
>
> > Hi, whoever writes those guides, athttp://www.google.com/linuxrepositories/apt.html
> > you have missed the "sudo" at the first commands for the keys. Either
> > that, or a "sudo -s" prior to everything, otherwise it doesn't work...
>
> > h
>
> And there is ambiguity about the first line of code:
>
> wget -q -O -https://dl-ssl.google.com/linux/linux_signing_key.pub|
Reply all
Reply to author
Forward
0 new messages