Получение ошибки при установке Nodejs

Следуя варианту 2 из https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04:

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

Я получаю сообщение об ошибке:


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


## Populating apt-get cache...

+ apt-get update
Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
Hit:2 http://np.archive.ubuntu.com/ubuntu focal InRelease                                                                            
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                     
Ign:4 http://oem.archive.canonical.com/updates precise-oem-sp1 InRelease                                                             
Get:5 http://oem.archive.canonical.com/updates precise-oem-sp1 Release [4,325 B]                                                     
Hit:6 http://np.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                    
Get:7 http://oem.archive.canonical.com/updates precise-oem-sp1 Release.gpg [287 B]                                                   
Ign:7 http://oem.archive.canonical.com/updates precise-oem-sp1 Release.gpg                                                           
Hit:8 https://repo.skype.com/deb stable InRelease                                                                                    
Hit:9 http://np.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                  
Hit:11 https://download.sublimetext.com apt/stable/ InRelease                                         
Hit:10 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done                            
W: GPG error: http://oem.archive.canonical.com/updates precise-oem-sp1 Release: Detached signature file '/var/lib/apt/lists/partial/oem.archive.canonical.com_updates_dists_precise-oem-sp1_Release.gpg' is in unsupported binary format
E: The repository 'http://oem.archive.canonical.com/updates precise-oem-sp1 Release' is not signed.
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

Не могли бы вы помочь мне решить проблему? Я не могу двигаться вперед, так как nodejs по умолчанию — 10.19, который не поддерживается и не поддерживается. У меня проблемы с этой версией, и я не могу обновить ее до текущей версии.

1
задан 13 December 2021 в 17:02

0 ответов

Другие вопросы по тегам:

Похожие вопросы: