Installing nodejs

I tried to install node.js via apt. The version was too old (Version 10 against version 16 LTS).
Then I used this

curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh | sudo bash nodesource_setup.sh

This too failed because it is an insecured ppa. Output of the above command.

Output
## Installing the NodeSource Node.js 16.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 https://download.onlyoffice.com/repo/debian squeeze InRelease            
Hit:3 https://repo.steampowered.com/steam stable InRelease                     
Hit:4 http://in.archive.ubuntu.com/ubuntu focal InRelease                      
Ign:5 https://packages.zorinos.com/stable focal InRelease                      
Hit:6 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:7 http://ppa.launchpad.net/dupeguru/ppa/ubuntu focal InRelease             
Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      
Hit:9 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease            
Hit:10 http://ppa.launchpad.net/slimbook/slimbook/ubuntu focal InRelease       
Ign:11 https://packages.zorinos.com/patches focal InRelease                    
Hit:12 http://ppa.launchpad.net/zorinos/apps/ubuntu focal InRelease            
Hit:13 http://ppa.launchpad.net/zorinos/drivers/ubuntu focal InRelease         
Ign:14 https://packages.zorinos.com/apps focal InRelease                       
Hit:15 http://ppa.launchpad.net/zorinos/patches/ubuntu focal InRelease         
Ign:16 https://packages.zorinos.com/drivers focal InRelease                    
Hit:17 http://ppa.launchpad.net/zorinos/stable/ubuntu focal InRelease          
Err:18 https://packages.zorinos.com/stable focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 138.68.36.163 443]
Err:19 https://packages.zorinos.com/patches focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 138.68.36.163 443]
Err:20 https://packages.zorinos.com/apps focal Release 
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 138.68.36.163 443]
Err:21 https://packages.zorinos.com/drivers focal Release                      
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 138.68.36.163 443]
Reading package lists... Done                                                  
E: The repository 'https://packages.zorinos.com/stable focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://packages.zorinos.com/patches focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://packages.zorinos.com/apps focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://packages.zorinos.com/drivers focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting

Is there no other way to install node ?? I've installed packages from PPAs before but never had to do this before.
Is there really no reliable way to install node ? You'd think a language this huge would atleast keep the apt repository updated.

Also, additionally, now running sudo apt-update now gives the same errors as shown above.

Can you please run

sudo apt install --reinstall ca-certificates

Then,

sudo apt update

and relay the output here?

3 Likes

Worked like a charm !! Thanks !

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.