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

Created on 25 Apr 2020  路  15Comments  路  Source: nodesource/distributions

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?

```## Populating apt-get cache...

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

Most helpful comment

@igsu still happens

All 15 comments

@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

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

@igsu still happens

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.

@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

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

@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

@igsu i'm trying v14 btw

@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)

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

@paulmillr check this comment.

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

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

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

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

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

sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ignition picture Ignition  路  4Comments

alexcleu picture alexcleu  路  3Comments

bewam picture bewam  路  4Comments

mortenpi picture mortenpi  路  5Comments

timofey-retailnext picture timofey-retailnext  路  5Comments