root@srv01:~# apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org stretch/updates InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:5 http://deb.debian.org/debian stretch Release
Hit:6 https://deb.nodesource.com/node_8.x stretch InRelease
Get:7 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease [6,377 B]
Ign:8 https://download.arangodb.com/arangodb33/Debian_9.0 InRelease
Get:9 http://deb.debian.org/debian stretch-backports/main Sources.diff/Index [27.8 kB]
Get:10 http://deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB]
Get:11 http://deb.debian.org/debian stretch-backports/main Sources 2018-04-07-0224.40.pdiff [325 B]
Get:11 http://deb.debian.org/debian stretch-backports/main Sources 2018-04-07-0224.40.pdiff [325 B]
Get:12 http://deb.debian.org/debian stretch-backports/main amd64 Packages 2018-04-07-0224.40.pdiff [267 B]
Get:12 http://deb.debian.org/debian stretch-backports/main amd64 Packages 2018-04-07-0224.40.pdiff [267 B]
Hit:13 https://download.arangodb.com/arangodb33/Debian_9.0 Release
Err:7 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
Get:16 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease [3,843 B]
Err:16 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
Get:17 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease [3,876 B]
Err:17 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
Fetched 239 kB in 1s (169 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: Failed to fetch http://packages.cloud.google.com/apt/dists/cloud-sdk-stretch/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-compute-engine-stretch-stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-cloud-packages-archive-keyring-stretch/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB
W: Some index files failed to download. They have been ignored, or old ones used instead.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch-backports InRelease
Hit:6 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease
Hit:7 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease
Hit:9 http://packages.cloud.google.com/apt google-cloud-compute-stretch InRelease
Err:9 http://packages.cloud.google.com/apt google-cloud-compute-stretch InRelease
The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F Google Cloud Packages Automatic Signing Key <gc-team@google.com>
Hit:10 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
Hit:11 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt google-cloud-compute-stretch InRelease: The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F Google Cloud Packages Automatic Signing Key <gc-...@google.com>
W: Failed to fetch http://packages.cloud.google.com/apt/dists/google-cloud-compute-stretch/InRelease The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F Google Cloud Packages Automatic Signing Key <gc-...@google.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
(23) Failed writing body
tac
is a simple Unix program that reads the entire input page and reverses the line order (hence we run it twice).--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/c7a3393c-7209-4069-bda6-5fca5677463c%40googlegroups.com.
On Mon, Jul 23, 2018 at 1:41 PM, Musembi Nzioki <musemb...@gmail.com> wrote:
(23) Failed writing body
is encountered when the piped command (apt-key add -) finishes executing and closes the pipe before curl has completed writing the whole page. To solve this precede the apt-key add command with a command that requires that curl finishes writing before it runs.i.e. curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | tac |tac | apt-key add -tac
is a simple Unix program that reads the entire input page and reverses the line order (hence we run it twice).From: https://stackoverflow.com/questions/16703647/why-curl-return-and-error-23-failed-writing-body
On Wednesday, June 13, 2018 at 3:50:11 PM UTC+3, shaun henderson wrote:I ran as root:sudo curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -but the output is:E: This command can only be used by root.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1326 100 1326 0 0 1326 0 0:00:01 --:--:-- 0:00:01 44200
(23) Failed writing body
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.