【问题标题】:ubuntu update error and cannot install latest version of nodejsubuntu 更新报错,无法安装最新版本的nodejs
【发布时间】:2019-11-08 10:53:58
【问题描述】:

当我更新我的 ubuntu 时,我收到了一些很长的错误和警告消息,并且一些 ppa 无法像 nodejs 那样更新。

youngjinkim@vm-youngjinkim:~$ sudo apt-get update          
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu bionic InRelease                                                                                       
Hit:3 http://kr.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                               
Hit:4 http://kr.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                             
Ign:5 http://repos.azulsystems.com/ubuntu stable InRelease                                                                                       
Get:6 http://repos.azulsystems.com/ubuntu stable Release [8604 B]                                                                                     
Get:7 http://repos.azulsystems.com/ubuntu stable Release.gpg [819 B]                                                                                           
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                     
Hit:9 http://dl.google.com/linux/chrome/deb stable Release                                                                      
Hit:10 https://packages.microsoft.com/repos/vscode stable InRelease                                                             
Hit:11 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease  
Ign:7 http://repos.azulsystems.com/ubuntu stable Release.gpg
Ign:13 http://ppa.launchpad.net/docky-core/stable/ubuntu bionic InRelease
Hit:14 http://ppa.launchpad.net/noobslab/icons/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Err:16 http://ppa.launchpad.net/docky-core/stable/ubuntu bionic Release
  404  Not Found [IP: 172.30.252.31 8080]
Reading package lists... Done
W: GPG error: http://repos.azulsystems.com/ubuntu stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
E: The repository 'http://repos.azulsystems.com/ubuntu stable 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: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
E: The repository 'http://ppa.launchpad.net/docky-core/stable/ubuntu bionic 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: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3

我想更新 nodejs 缓存策略,但是当我更新时,我收到了这条消息,然后我检查了 nodsjs ppa 版本是 8,所以我无法安装最新版本的 nodejs。

我知道 W:warining ,E:error 但是什么是 N??

【问题讨论】:

    标签: ubuntu-18.04 apt-get


    【解决方案1】:

    我解决了这个问题

    • 第一步:安装vim

      $ sudo apt-get install vim  
      
    • 第 2 步:输入错误的来源列表,例如:

      $ sudo vim /etc/apt/sources.list
      
    • 第三步:将错误所在行注释掉,问题就解决了。

    【讨论】:

      猜你喜欢
      • 2018-10-16
      • 1970-01-01
      • 1970-01-01
      • 2022-11-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-25
      相关资源
      最近更新 更多