cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bas Roos (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-9427) Sudo in wrong place when adding APT repository key
Date Fri, 01 Jul 2016 09:46:12 GMT
Bas Roos created CLOUDSTACK-9427:
------------------------------------

             Summary: Sudo in wrong place when adding APT repository key
                 Key: CLOUDSTACK-9427
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9427
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Doc
    Affects Versions: 4.8.0
            Reporter: Bas Roos
            Priority: Trivial


The [documentation for installing Cloudstack|http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.8/management-server/index.html]
explains that the public key for the APT-repository should be downloaded and installed:

{code}sudo wget -O - http://cloudstack.apt-get.eu/release.asc|apt-key add -{code}

This gives an error:
{code}$ wget -O - http://cloudstack.apt-get.eu/release.asc|apt-key add -
--2016-07-01 11:38:06--  http://cloudstack.apt-get.eu/release.asc
Resolving cloudstack.apt-get.eu (cloudstack.apt-get.eu)... 185.27.174.49, 2a00:f10:121:400:403:9cff:fe00:37f
Connecting to cloudstack.apt-get.eu (cloudstack.apt-get.eu)|185.27.174.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1718 (1.7K) [text/plain]
Saving to: ‘STDOUT’

100%[======================================================================================================================================================================================================================================>]
1,718       --.-K/s   in 0s

2016-07-01 11:38:06 (209 MB/s) - written to stdout [1718/1718]

ERROR: This command can only be used by root.{code}

Sudo should be moved to the 'apt-key' command:

{code}wget -O - http://cloudstack.apt-get.eu/release.asc | sudo apt-key add -{code}

This way, the key will import properly:

{code}$ wget -O - http://cloudstack.apt-get.eu/release.asc | sudo apt-key add -
--2016-07-01 11:30:15--  http://cloudstack.apt-get.eu/release.asc
Resolving cloudstack.apt-get.eu (cloudstack.apt-get.eu)... 185.27.174.49, 2a00:f10:121:400:403:9cff:fe00:37f
Connecting to cloudstack.apt-get.eu (cloudstack.apt-get.eu)|185.27.174.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1718 (1.7K) [text/plain]
Saving to: ‘STDOUT’

100%[======================================================================================================================================================================================================================================>]
1,718       --.-K/s   in 0s

2016-07-01 11:30:15 (205 MB/s) - written to stdout [1718/1718]

OK{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message