Skip to content
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

Your distribution, identified as "focal", is not currently supported #1044

Closed
ceciliazcx opened this issue Apr 24, 2020 · 23 comments
Closed

Comments

@ceciliazcx
Copy link

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```
@siquick
Copy link

siquick commented May 1, 2020

@ceciliazcx

I had FROM ubuntu:latest in my Dockerfile which was causing the above error.

Changing it to FROM ubuntu:16.04 fixed it so I presume its an incompatibility issue with Ubuntu 20

@igsu
Copy link
Contributor

igsu commented May 8, 2020

Scripts are set to support Ubuntu 20.04, @ceciliazcx please confirm this is still an issue.

@paulmillr
Copy link

@igsu still happens

@mateuszbrycki
Copy link

mateuszbrycki commented May 12, 2020

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.

@bryanlatten
Copy link

bryanlatten commented May 14, 2020

@mateuszbrycki @paulmillr check that you aren't (somehow) using a development version of Ubuntu. The script is looking specifically for the word "development" in the name of the OS release. You can check this yourself with the lsb_release tool (apt install lsb-release if its missing).

Successful (working) example:

root@4a452b8c2aba:/# lsb_release -d -s
Ubuntu 20.04 LTS

@paulmillr
Copy link

@bryanlatten yeah it's not development, it's lts

@igsu
Copy link
Contributor

igsu commented May 15, 2020

@ceciliazcx please note that the Node version that you are trying to install is deprecated:

curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/focal/Release'

Please try again with the currently supported versions: 10, 12, 13 and 14...

...
Setting up nodejs (12.16.3-deb-1nodesource1) ...
...
xxxxx:/# node -v
v12.16.3
xxxxx:/# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

@paulmillr
Copy link

@igsu i'm trying v14 btw

@igsu
Copy link
Contributor

igsu commented May 15, 2020

@paulmillr I am getting a similar result with v14:

...
Setting up nodejs (14.2.0-deb-1nodesource1) ...
...
xxxxx:/# node -v
v14.2.0
xxxxx:/# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

Please provide more information about your environment or any custom network setup (some users experience this issue when they are behind a proxy #904 - see comment)

@paulmillr
Copy link

yup, using socks proxy. apt-get still works though.

@igsu
Copy link
Contributor

igsu commented May 20, 2020

@paulmillr check this comment.

@paulmillr
Copy link

@igsu the issue is not "using proxies". It's useless error. If proxies aren't supported, nodesource should communicate this.

@betancour
Copy link

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

@igsu
Copy link
Contributor

igsu commented Jun 9, 2020

@paulmillr you can check our FAQ, that is the first question there:

https://github.com/nodesource/distributions#faq

@igsu igsu closed this as completed Jun 9, 2020
@jb892
Copy link

jb892 commented Jun 25, 2020

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

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

@thamaraiselvam
Copy link

Facing same issue for installing nodejs 9.x on ubuntu 20.04

## Confirming "focal" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_9.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

@raguri
Copy link

raguri commented Mar 23, 2021

Scripts are set to support Ubuntu 20.04, @ceciliazcx please confirm this is still an issue.

@igsu, I got Your distribution, identified as "focal", is not currently supported in my dockerfile.
Have tried all the suggested approaches here to fix the focal issue like changed Ubuntu version to 16.04, 20.04 and node versions changed to 12, 14. Before running the script, have installed lsb-release pkgs. still couldn't helped me to fix the issue.
Can you please suggest, if there is any workaround.

@igsu
Copy link
Contributor

igsu commented Mar 23, 2021

@raguri you can always use the manual installation steps: https://github.com/nodesource/distributions#manual-installation

@williamstein
Copy link

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.

@nguyenhuy07
Copy link

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.

cool! it worked for me!

@raguri
Copy link

raguri commented Jul 13, 2021

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.

I have followed the same approach. It worked for me too.
But I too felt still an issue with node scripts that need to support Ubuntu 20.04.

@shaangontia
Copy link

I am using

$ lsb_release -d -s
Ubuntu 20.04.3 LTS

and when I try running the command

curl -fksSL https://deb.nodesource.com/setup_lts.x | sudo bash -

I am getting the error

Confirming "focal" is supported...

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

I think the issue with focal still exists. Any knows a permanent solution to this?

@Dusayanta
Copy link

Dusayanta commented Apr 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests