Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
4.8.0
-
None
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
Description
The documentation for installing Cloudstack explains that the public key for the APT-repository should be downloaded and installed:
sudo wget -O - http://cloudstack.apt-get.eu/release.asc|apt-key add -
This gives an error:
$ 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.
Sudo should be moved to the 'apt-key' command:
wget -O - http://cloudstack.apt-get.eu/release.asc | sudo apt-key add -
This way, the key will import properly:
$ 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