2

I'm starting with Debian Linux 10 and I installed only a web server with Apache a few days ago.

Today wanting to update packages, I use apt-get update but I get the following errors, which rebooting did not solve.

Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Err:1 http://deb.debian.org/debian buster InRelease
  Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease
Err:2 http://security.debian.org buster/updates InRelease
  Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/security.debian.org_dists_buster_updates_InRelease
Err:3 http://deb.debian.org/debian buster-updates InRelease
  Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster-updates_InRelease
Get:4 https://deb.nodesource.com/node_13.x buster InRelease [4,584 B]
Err:4 https://deb.nodesource.com/node_13.x buster InRelease
  Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.nodesource.com_node%5f13.x_dists_buster_InRelease
Reading package lists... Done
W: GPG error: http://deb.debian.org/debian buster InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://security.debian.org buster/updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/security.debian.org_dists_buster_updates_InRelease
E: The repository 'http://security.debian.org buster/updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster-updates_InRelease
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://deb.nodesource.com/node_13.x buster InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/deb.nodesource.com_node%5f13.x_dists_buster_InRelease
E: The repository 'https://deb.nodesource.com/node_13.x buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I also got an error concerning the directory tmp that I solved by changing permissions with chmod 777 /tmp && apt-get update --allow-unauthenticated to bypass the "not signed" error, but that did not solve the update failure. I also followed apt-get update not working: Signing/ Verification errors but none of the suggestions there solved the problem.

How can i fix this?

1 Answer 1

0

First, reboot, then try again.

If unsuccessful after the reboot, change the permission of /tmp with chmod 777 /tmp && apt-get update --allow-unauthenticated to bypass the "not signed" error.

2
  • 1
    Thank you for your reply Already tried but I restarted the server and followed your message, no results Commented Apr 7, 2020 at 15:51
  • 1
    Oh, bother. I added to your question what you tried, so other won't ask you to do it again. BTW, when you try something else, please click edit and tell us what you tried, where you got the idea from, and the result, so we know what not to suggest.
    – K7AAY
    Commented Apr 7, 2020 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .