-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signatures couldn't be verified - public key - Ubuntu 20.04 Focal #1181
Comments
I also get this error since today:
Last week it worked fine while building a docker image. I think it is related to this commit from 3 days ago: 1e1ee93 I get this while running the setup for Node 12.x in my dockerfile like this: RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install --yes nodejs OS is Debian Jessie. |
I "fixed" it by running the following command before the setup: curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - I got this from the manual installation guide. So in my dockerfile I have it like this now:
|
As @KoenCa just mentioned above, in Can you give us more information regarding your environment @Magicrafter13? |
I encountered this issue due to using a non-default umask ( |
^^ Sorry I actually had to |
I got the same error @KoenCa describes while trying to instal LTS version in debian 8. This prevents quiet
|
I also updated the base image of my dockerfile and now it uses Debian Buster. I removed the line with the fix and it works like normal. |
For some reason installing nodejs on Ubuntu 14.04 will result in error: ``` WARNING: The following packages cannot be authenticated! nodejs ``` See also: nodesource/distributions#1181
For some reason installing nodejs on Ubuntu 14.04 will result in error: ``` WARNING: The following packages cannot be authenticated! nodejs ``` See also: nodesource/distributions#1181
Same problem with ubuntu 14.04 (I've know it's EOLed, just as info):
result:
And same Dockerfile is fine with 16.04
|
Any specific information that would help? Despite having the server running for over a year, I can't really think of anything "stand out" about my env. |
I checked, and the permissions of this file were also 640 for me. I've never touched the umask to my knowledge (I assume that's something I'd have to change in Okay, I also figured out how to check my umask, which is 022, so if the file permissions are an issue, there must be a different cause. |
I also had the error with Ubuntu bionic.
Checked the permissions of |
@igsu I'm sorry why this closed without any comments? Issue still actual for me on Ubuntu 14.04 |
@ShockwaveNN We cannot maintain https://salsa.debian.org/apt-team/apt/-/commit/ee284d5917d09649b68ff1632d44e892f290c52f Maintaining deprecated tools so that our scripts work on distributions that are already EOL like https://wiki.debian.org/DebianRepository/UseThirdParty We are sorry that it does not work on those distributions but it is a must. You can follow the manual instructions that still work on the aforementioned distributions. |
Okay, but what's the issue for me then, @igsu ? I'm on current LTS, certainly not EOL. |
Same here,
This problem need to be fix, as it is not the The real fix has been provided by @kosala-almeda:
So please add a line Thanks |
Oh man, the permissions ... that fixed it. |
I had the same issue on Ubuntu-20.04. Tried to install nodejs 12.x Due to strange root settings on my corporate laptop, the permissions for files
were wrong (600). Calling
has solved the problem. Feeling pretty angry that somebody's crooked hands can make our lives really difficult. |
the |
i have this issue which resulted from following "sudo curl -fsSL https://deb.nodesource.com/setup_16.x | bash -] dpkg: error processing archive /var/cache/apt/archives/nodejs_16.11.1-deb-1nodesource1_amd64.deb (--unpack): |
Just faced the same issue on Ubuntu 20.04. Solved it by doing the following which is mainly based on the comments above: curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x focal main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x focal main' >> /etc/apt/sources.list.d/nodesource.list
chmod a+r /usr/share/keyrings/nodesource.gpg
apt update
apt install -y nodejs |
I have the same problem on Linux Mint 21, but when installing Node 19. Tried Note: I have Node16 installed, I don't know if its existence may be causing a conflict in the install. I just want to replace the old version by the new one |
Here is a working solution in Dockerfile tested on Hope this saves someone out there 3-5 hours+ trying to figure out why following the official NodeJS docs doesn't seem to work 🤷 Good luck 🍀 ######################################################
# STEP 1) Install prerequisites
######################################################
RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg
######################################################
# STEP 2) Download and add the NodeSource GPG key to the trusted keyring
######################################################
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
######################################################
# STEP 3) Add the NodeSource repository
######################################################
ARG NODE_MAJOR=20 # Set the Node.js version
RUN echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x $(. /etc/os-release; echo "$UBUNTU_CODENAME") main" > /etc/apt/sources.list.d/nodesource.list && \
echo "deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x $(. /etc/os-release; echo "$UBUNTU_CODENAME") main" >> /etc/apt/sources.list.d/nodesource.list
######################################################
# STEP 4) Update apt and install Node.js
######################################################
RUN apt-get update && apt-get install -y nodejs |
i solved my node_20x problem with tihs curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x jammy main' >> /etc/apt/sources.list.d/nodesource.list
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x jammy main' > /etc/apt/sources.list.d/nodesource.list then, i can now run apt-get update on my ubuntu 22.04 |
I did see other mentions of this issue, but they seemed to be related to users running an unsupported distro. However, Ubuntu Focal is listed as supported.
Wish Canonical would provide something newer than version 10.x.x...
I had a version that was at least as high as 12 yesterday, and after reinstalling everything I'm not sure how I managed that in the past, I don't recall using nodesource previously, but
npm
andn
were unable to update me to version 14, hoping I have better luck here.The text was updated successfully, but these errors were encountered: