Skip to content

Commit

Permalink
doc: Fix apt-key adv command with safer argument
Browse files Browse the repository at this point in the history
Some users were reporting that passing the keyserver domain directly
causes an error that wouldn't happen if the complete URL is passed
instead:

gpg: keyserver receive failed: Server indicated a failure
  • Loading branch information
j1elo committed Mar 22, 2023
1 parent a66a7a5 commit d61a119
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion ci-scripts/AWS/cfn-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ apt-get update ; apt-get install --no-install-recommends --yes \

# Add Kurento repository key for apt-get.
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83

# Add Kurento repository line for apt-get.
Expand Down
4 changes: 2 additions & 2 deletions ci-scripts/kurento-buildpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ if [[ "$CFG_INSTALL_KURENTO" == "true" ]]; then
if [[ "$CFG_APT_ADD_REPO" == "true" ]]; then
log "Add Kurento repository key for apt-get"
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83

log "Add Kurento repository line for apt-get"
Expand All @@ -315,7 +315,7 @@ if [[ "$CFG_INSTALL_KURENTO" == "true" ]]; then
log "Suggested solution 2:"
log " Run commands:"
log " $ apt-key adv \\"
log " --keyserver keyserver.ubuntu.com \\"
log " --keyserver hkp://keyserver.ubuntu.com:80 \\"
log " --recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83"
log " $ echo '$LIST_LINE' | sudo tee -a /etc/apt/sources.list.d/kurento.list"
log ""
Expand Down
4 changes: 2 additions & 2 deletions ci-scripts/kurento_ci_job_deploy_debian_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ apt-get update ; apt-get install --no-install-recommends --yes \
# Add Kurento repository key for apt-get.
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83
# Add Kurento repository line for apt-get.
Expand All @@ -156,7 +156,7 @@ echo "# Install debug symbols"
# Add Ubuntu debug repository key for apt-get.
apt-get update ; apt-get install --yes ubuntu-dbgsym-keyring \
|| apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
# Add Ubuntu debug repository line for apt-get.
Expand Down
2 changes: 1 addition & 1 deletion ci-scripts/kurento_install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ source /etc/upstream-release/lsb-release 2>/dev/null || source /etc/lsb-release
apt-get update ; apt-get install --no-install-recommends --yes \
gnupg
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83

# Add Kurento repository line for apt-get.
Expand Down
13 changes: 9 additions & 4 deletions ci-scripts/kurento_maven_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,22 @@ PROJECT_VERSION="$(kurento_get_version.sh "${GET_VERSION_ARGS[@]}")" || {

log "Build and deploy version: $PROJECT_VERSION"

# If SNAPSHOT, deploy to snapshots repository and exit.
if [[ $PROJECT_VERSION == *-SNAPSHOT ]]; then
log "Version to deploy is SNAPSHOT"

# Always deploy to snapshots repository.
# Having all versions (snapshot or not) in the snapshots repository can be handy
# for development when trying to test a release version but not wanting to wait
# until Maven Central makes the published packages available (which can take
# 30 or more minutes).
{
MVN_ARGS+=(-Psnapshot)

source kurento_maven_deploy_github.sh || {
log "ERROR: Command failed: kurento_maven_deploy_github"
exit 1
}
}

if [[ $PROJECT_VERSION == *-SNAPSHOT ]]; then
log "Version to deploy is SNAPSHOT"
exit 0
fi

Expand Down
2 changes: 1 addition & 1 deletion doc-kurento/source/dev/dev_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ After having :doc:`installed Kurento </user/installation>`, first thing to do is
# Add Ubuntu debug repository key for apt-get.
apt-get update ; apt-get install --yes ubuntu-dbgsym-keyring \
|| apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
# Add Ubuntu debug repository line for apt-get.
Expand Down
2 changes: 1 addition & 1 deletion doc-kurento/source/project/relnotes/v6_10_0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To install KMS on this version of Ubuntu, just follow the usual :doc:`installati
DISTRO="bionic" # KMS for Ubuntu 18.04 (Bionic)
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83
sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
Expand Down
2 changes: 1 addition & 1 deletion doc-kurento/source/user/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Open a terminal and run these commands:
# Add Kurento repository key for apt-get.
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83
# Add Kurento repository line for apt-get.
Expand Down
2 changes: 1 addition & 1 deletion doc-kurento/source/user/installation_dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Open a terminal and run these commands:
# Add Kurento repository key for apt-get.
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83
# Add Kurento repository line for apt-get.
Expand Down
2 changes: 1 addition & 1 deletion docker/dev-documentation/jdk-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt-get update \
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8

RUN gpg --keyserver keyserver.ubuntu.com --recv EB9B1D8886F44E2A \
RUN gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv EB9B1D8886F44E2A \
&& gpg --export --armor EB9B1D8886F44E2A | apt-key add - \
&& echo 'deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main ' > /etc/apt/sources.list.d/openjdk-8.list \
&& apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion docker/dev-integration-browser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
#=========
# Firefox
#=========
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AF316E81A155146718A6FBD7A6DCF7707EBC211F \
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys AF316E81A155146718A6FBD7A6DCF7707EBC211F \
&& echo "deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu trusty main" >> /etc/apt/sources.list.d/firefox.list \
&& apt-get update -qqy \
&& apt-get -qqy --no-install-recommends install \
Expand Down
2 changes: 1 addition & 1 deletion docker/kurento-buildpackage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ RUN \
apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --yes \
ubuntu-dbgsym-keyring \
|| apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622 \
&& rm -rf /var/lib/apt/lists/*

Expand Down
6 changes: 3 additions & 3 deletions docker/kurento-media-server-asan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --

# Add Kurento Apt package repository.
RUN \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83 \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83 \
&& echo "deb [arch=amd64] http://ubuntu.openvidu.io/${KMS_VERSION} ${UBUNTU_CODENAME} main" >/etc/apt/sources.list.d/kurento.list

# Install development tools.
Expand All @@ -127,7 +127,7 @@ apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --
RUN \
echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_CODENAME main" \
>/etc/apt/sources.list.d/ubuntu-toolchain.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BA9EF27F \
&& apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --yes \
"gcc-${GCC_VERSION}" \
"g++-${GCC_VERSION}" \
Expand Down Expand Up @@ -163,7 +163,7 @@ apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --
gnupg \
&& echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_CODENAME main" \
>/etc/apt/sources.list.d/ubuntu-toolchain.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BA9EF27F \
&& apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --yes \
libgcc1 \
libstdc++6 \
Expand Down
4 changes: 2 additions & 2 deletions docker/kurento-media-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --
# Add Kurento repository key for apt-get.
RUN \
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83

# Add Kurento repository line for apt-get.
Expand Down Expand Up @@ -153,7 +153,7 @@ RUN \
apt-get $APT_ARGS update && apt-get $APT_ARGS install --no-install-recommends --yes \
ubuntu-dbgsym-keyring \
|| apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622 \
&& rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions server/bin/make-dev-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ apt-get update ; apt-get install --no-install-recommends --yes \
gnupg
apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83
if [[ "$DISTRIB_RELEASE" == "20.04" ]]; then
Expand Down Expand Up @@ -307,7 +307,7 @@ apt-get update ; apt-get install --no-install-recommends --yes \
# Add Ubuntu debug repository key for apt-get.
apt-get update ; apt-get install --yes ubuntu-dbgsym-keyring \
|| apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
# Add Ubuntu debug repository line for apt-get.
Expand Down
2 changes: 1 addition & 1 deletion server/module-examples/markerdetector/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Make sure you have the kurento development repository:
```
# Import the Kurento repository signing key
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
--keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 234821A61B67740F89BFD669FC8A16625AFA7A83

# Get Ubuntu version definitions
Expand Down

0 comments on commit d61a119

Please sign in to comment.