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)
@igsu still happens
I was able to cleanly reproduce this today using Docker by doing:
then pasting the following (note http instead of https):
The problem is that node’s script does this:
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. Thenhttp://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 -
echo insecure > ~/.curlrc
- ignores cert check when runningcurl
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:Errors while trying to register the repo for 12.x
I see a similar issue with
https://deb.nodesource.com/setup_12.x
: