Ошибка при выполнении команды, выход

Я пытаюсь установить node.js 12 на Ubuntu 18 и, следуя инструкциям, когда я набираю

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

, я получил следующий текст:

Reading package lists... Done                                                                                                                                                                                     
E: The repository 'http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.4 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 'http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.0 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.
W: GPG error: http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.10  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4ABE1AC7557BEFF9
E: The repository 'http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.10  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.
W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release: The following signatures were invalid: EXPKEYSIG 58712A2291FA4AD5 MongoDB 3.6 Release Signing Key <packaging@mongodb.com>
E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 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

Я думаю, Вот почему каждый раз, когда я запускаю

sudo apt-get install -y nodejs 

, я получаю версию 8 вместо 10.
Кто-нибудь знает, почему это происходит? Как я дошел до этой точки?
И если безопасность моей системы находится под угрозой, как это исправить?

3
задан 6 May 2019 в 22:50

1 ответ

У вас могут быть устаревшие исходные PPA Удалите все остальные подходящие источники:

sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update

Затем повторите попытку.

0
ответ дан 6 May 2019 в 22:50

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

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