Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 02C8B200B46 for ; Fri, 1 Jul 2016 11:46:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 012C7160A61; Fri, 1 Jul 2016 09:46:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 50CD0160A6C for ; Fri, 1 Jul 2016 11:46:13 +0200 (CEST) Received: (qmail 16991 invoked by uid 500); 1 Jul 2016 09:46:12 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 16839 invoked by uid 500); 1 Jul 2016 09:46:12 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 16770 invoked by uid 99); 1 Jul 2016 09:46:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 09:46:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3E6BD2C02A0 for ; Fri, 1 Jul 2016 09:46:12 +0000 (UTC) Date: Fri, 1 Jul 2016 09:46:12 +0000 (UTC) From: "Bas Roos (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CLOUDSTACK-9427) Sudo in wrong place when adding APT repository key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 09:46:14 -0000 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 defa= ult.) 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] e= xplains 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, 2= a00: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: =E2=80=98STDOUT=E2=80=99 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D>] 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 a= dd - --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, 2= a00: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: =E2=80=98STDOUT=E2=80=99 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D>] 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)