distributions: Your distribution, identified as "focal", is not currently supported

I got Your distribution, identified as "focal", is not currently supported in my dockerfile when deploy to Azure. The detail error is as following, could I know how to fix it?

+ apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
## Installing packages required for setup: lsb-release gnupg...
+ apt-get install -y lsb-release gnupg > /dev/null 2>&1
## Confirming "focal" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/focal/Release'
## Your distribution, identified as "focal", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support```

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 23 (6 by maintainers)

Most upvoted comments

@igsu still happens

I was able to cleanly reproduce this today using Docker by doing:

sudo docker run -it ubuntu:20.04 bash

then pasting the following (note http instead of https):

apt-get update \
  && apt-get install -qy --no-install-recommends curl \
  && curl -sL http://deb.nodesource.com/setup_14.x | bash - \
  && apt-get install -y nodejs

The problem is that node’s script does this:

## Installing packages required for setup: lsb-release gnupg...

+ apt-get install -y lsb-release gnupg > /dev/null 2>&1

and those two packages are not sufficient currently to install node.

The right solution in my case was to install the ca-certificates Ubuntu package. Then http://deb.nodesource.com/setup_14.x worked, and the “Your distribution, identified as “focal”, is not currently supported” error was no longer triggered.

I’m not sure this issue should be re-opened, but perhaps the above comment will be useful to somebody.

It is actually a certificate issue. I made it working by ignoring the certificate checks. I know its not a good thing to do. This is how I ignored the cert checks -

RUN echo insecure > ~/.curlrc && \
echo 'Acquire::https::deb.nodesource.com::Verify-Peer "false";' > /etc/apt/apt.conf.d/80ssl-exceptions && \
echo 'Acquire::https::deb.nodesource.com::Verify-Host "false";' >> /etc/apt/apt.conf.d/80ssl-exceptions

RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
apt install -y nodejs

echo insecure > ~/.curlrc - ignores cert check when running curl

And below ones ignore cert check during apt update echo 'Acquire::https::deb.nodesource.com::Verify-Peer "false";' > /etc/apt/apt.conf.d/80ssl-exceptions echo 'Acquire::https::deb.nodesource.com::Verify-Host "false";' >> /etc/apt/apt.conf.d/80ssl-exceptions

I removed -E flag and it works now. eg:

sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -

Errors while trying to register the repo for 12.x

## Installing the NodeSource Node.js 12.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [119 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [56.1 kB]
Fetched 487 kB in 16s (30.2 kB/s)
Reading package lists... Done
## Confirming "focal" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_12.x/dists/focal/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
gpg: can't connect to the agent: IPC connect call failed
Error executing command, exiting

I see a similar issue with https://deb.nodesource.com/setup_12.x:

Your distribution, identified as “Ubuntu Focal Fossa (development branch)”, is a pre-release version of Ubuntu. NodeSource does not maintain official support for Ubuntu versions until they are formally released. You can try using the manual installation instructions available at https://github.com/nodesource/distributions and use the latest supported Ubuntu version name as the distribution identifier, although this is not guaranteed to work.