Debian - Nodejs is installed but npm isn't - node.js

I am following https://github.com/nodesource/distributions to install Nodejs v11.x on Debian. After following the two instructions, Nodejs seems to be installed fine and nodejs -v returns v4.8.2.
But npm doesn't seem to have been installed. whereis npm returns nothing and I am fairly certain there is no npm installed on my disk.
I have pasted the console log after the command curl -sL https://deb.nodesource.com/setup_11.x | bash - below:
+ apt-get update
Hit:1 http://download.virtualbox.org/virtualbox/debian stretch InRelease
Get:2 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu cosmic InRelease [15.4 kB]
Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu cosmic InRelease
Hit:4 http://deb.debian.org/debian stretch-backports InRelease
Ign:5 http://deb.debian.org/debian stretch InRelease
Ign:6 http://ppa.launchpad.net/webupd8team/java/ubuntu disco InRelease
Hit:7 http://deb.debian.org/debian stretch Release
Ign:9 http://ppa.launchpad.net/webupd8team/java/ubuntu disco Release
Hit:10 https://download.sublimetext.com apt/stable/ InRelease
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Err:11 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main i386 Packages
404 Not Found
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main Translation-en
Ign:16 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main amd64 DEP-11 Metadata
Ign:17 http://ppa.launchpad.net/webupd8team/java/ubuntu disco/main all DEP-11 Metadata
Fetched 15.4 kB in 16s (929 B/s)
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu cosmic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 005EAE8119BB5BCA
W: The repository 'http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu cosmic InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu disco Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/disco/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
My guess is that the installer script stops midway during the process as apt-get is throwing an error. However even if that were the case, I have no idea how to tackle this problem. I don't want to remove the repositories for freecad and java to get apt to quit positively.
If the answer is related to apt-get and is off-topic on this forum, maybe it can be migrated to askubuntu?

well, first let's address the error you see regarding the repositories.
This line tells you the problem.
W: GPG error: http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu cosmic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 005EAE8119BB5BCA
Did you follow the key installation instructions on the freecad page? See https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable
and click on Signing key - What's this?
As for the Node issue, try updating Node:
https://www.hostingadvice.com/how-to/update-node-js-latest-version/
Also, try sudo apt-get install npm

Trying to fix the repository issues gives weird python errors, it might have to do with me having both python 2.7 and 3 installed in my system but I don't know for sure.
What I ended up doing is just removing the problematic repositories from /etc/apt/sources.list.d temporarily and then running the curl script again. This makes the script run without any errors and afterwards, the command apt install -y nodejs installs the correct version along with npm.
The problem, it seems, was that debian's default repository also has a nodejs pacakge without npm. And due to the apt-get update error, the install script quit prematurely. Fixing that error did the job.

Related

Issues installing gdal-bin (libmysqlclient21 dependency) on 20.04.3 (databricks job clusters)

I've had, in the past, gdal utilities installed successfully on a Databricks Cluster running 20.04.3 LTS (focal).
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
$ sudo apt-get install -y gdal-bin
Each time a databricks job cluster startups, my sample notebook attempts to install GDAL. I've attempted a series of apt-get updates/upgrades; and just when I think the issue has gone away; the next day it comes back again (no change of code, cluster spec, etc.)
Most recently the issue occurs once it hits installation for libmysqlclient21, e.g:
Err:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libmysqlclient21 amd64 8.0.26-0ubuntu0.20.04.3
404 Not Found [IP: 91.189.88.142 80]
My understanding is that these issues arise when the packaging versions are no longer supported, and noticed that libmysqlclient21 has come out with a recent patch as of the 25th of October (when the issue started arising).
I've noticed when I run %sh sudo apt-get --fix-missing -y update and apt policy libmysqlclient21, prior to a successful installation, I can see it's found 8.0.27-0ubuntu0.20.04.1:
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://repos.azul.com/zulu/deb stable InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [628 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,635 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [801 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,183 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,086 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [679 kB]
Fetched 6,374 kB in 19s (329 kB/s)
Reading package lists...
libmysqlclient21:
Installed: (none)
Candidate: 8.0.27-0ubuntu0.20.04.1
Version table:
8.0.27-0ubuntu0.20.04.1 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
On an unsuccessful run, it's returning:
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 https://repos.azul.com/zulu/deb stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
libmysqlclient21:
Installed: (none)
Candidate: 8.0.26-0ubuntu0.20.04.3
Version table:
8.0.26-0ubuntu0.20.04.3 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
8.0.26-0ubuntu0.20.04.2 500
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
8.0.19-0ubuntu5 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
I've been scratching my head trying to understand what could be causing this, and what else to do to work around the problem. I'd prefer it to handle the installation automatically without having to hardcode specific versions (in case other issues were to arise); but not against targeting specific versions if I know they'll be supported on the current platform.
Any advice appreciated.
I had success by putting
sudo apt clean && sudo apt update --fix-missing -y && sudo apt install -y libmysqlclient21
before trying to install gdal and it seems to be working now....
...nevermind began failing the next day again...

Apt update failed when I using local repository

I deployed a local apt repository in LAN, the server IP is 192.168.88.96, by apt-mirror.
Below is the config of /etc/apt/mirror.list.
############# config ##################
#
# set base_path /var/spool/apt-mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch amd64
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############
deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-i386 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-i386 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-i386 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-i386 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-amd64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-i386 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
clean https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
And this is the result after executed command "sudo apt-mirror" on 192.168.88.96, and looks ok.
*****#source96:~$ sudo apt-mirror
Downloading 345 index files using 20 threads...
Begin time: Wed Feb 27 09:13:01 2019
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]
.. [4]... [3]... [2]... [1]... [0]...
End time: Wed Feb 27 09:47:38 2019
Processing tranlation indexes: [TTTTTTTTTT]
Downloading 1116 translation files using 20 threads...
Begin time: Wed Feb 27 09:47:38 2019
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]
.. [4]... [3]... [2]... [1]...
[0]...
End time: Wed Feb 27 10:12:22 2019
Processing indexes: [PPPPPPPPPP]
1.6 GiB will be downloaded into archive.
Downloading 394 archive files using 20 threads...
Begin time: Wed Feb 27 10:12:41 2019
[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]
.. [4]... [3]... [2]... [1]... [0]...
End time: Wed Feb 27 10:53:29 2019
0 bytes in 0 files and 0 directories can be freed.
Run /var/spool/apt-mirror/var/clean.sh for this purpose.
Running the Post Mirror script ...
(/var/spool/apt-mirror/var/postmirror.sh)
Post Mirror script has completed. See above output for any possible errors.
And this is the the setting of client computer:
deb http://192.168.88.96/ubuntu/ xenial main restricted universe multiverse
deb http://192.168.88.96/ubuntu/ xenial-updates main restricted universe multiverse
deb http://192.168.88.96/ubuntu/ xenial-backports main restricted universe multiverse
deb http://192.168.88.96/ubuntu/ xenial-siecurity main restricted universe multiverse
deb http://192.168.88.96/ubuntu/ xenial-proposed main restricted universe multiverse
And once I execute "sudo apt update", it shows tones of problem:
Ign:8 http://192.168.88.96/ubuntu xenial/main amd64 Packages
Ign:9 http://192.168.88.96/ubuntu xenial/main i386 Packages
Ign:10 http://192.168.88.96/ubuntu xenial/main Translation-en
Ign:11 http://192.168.88.96/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:12 http://192.168.88.96/ubuntu xenial/main DEP-11 64x64 Icons
Ign:13 http://192.168.88.96/ubuntu xenial/restricted amd64 Packages
Ign:14 http://192.168.88.96/ubuntu xenial/restricted i386 Packages
Ign:15 http://192.168.88.96/ubuntu xenial/restricted Translation-en
Ign:16 http://192.168.88.96/ubuntu xenial/restricted amd64 DEP-11 Metadata
Ign:17 http://192.168.88.96/ubuntu xenial/universe amd64 Packages
Ign:18 http://192.168.88.96/ubuntu xenial/universe i386 Packages
Ign:19 http://192.168.88.96/ubuntu xenial/universe Translation-en
Ign:20 http://192.168.88.96/ubuntu xenial/universe amd64 DEP-11 Metadata
Ign:21 http://192.168.88.96/ubuntu xenial/universe DEP-11 64x64 Icons
Ign:22 http://192.168.88.96/ubuntu xenial/multiverse amd64 Packages
Ign:23 http://192.168.88.96/ubuntu xenial/multiverse i386 Packages
Ign:24 http://192.168.88.96/ubuntu xenial/multiverse Translation-en
Ign:25 http://192.168.88.96/ubuntu xenial/multiverse amd64 DEP-11 Metadata
Ign:26 http://192.168.88.96/ubuntu xenial/multiverse DEP-11 64x64 Icons
Ign:11 http://192.168.88.96/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:12 http://192.168.88.96/ubuntu xenial/main DEP-11 64x64 Icons
Ign:16 http://192.168.88.96/ubuntu xenial/restricted amd64 DEP-11 Metadata
Ign:27 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial InRelease
Ign:20 http://192.168.88.96/ubuntu xenial/universe amd64 DEP-11 Metadata
Ign:21 http://192.168.88.96/ubuntu xenial/universe DEP-11 64x64 Icons
Ign:25 http://192.168.88.96/ubuntu xenial/multiverse amd64 DEP-11 Metadata
Ign:26 http://192.168.88.96/ubuntu xenial/multiverse DEP-11 64x64 Icons
Err:11 http://192.168.88.96/ubuntu xenial/main amd64 DEP-11 Metadata
404 Not Found
Ign:12 http://192.168.88.96/ubuntu xenial/main DEP-11 64x64 Icons
Ign:16 http://192.168.88.96/ubuntu xenial/restricted amd64 DEP-11 Metadata
Ign:28 http://192.168.88.96/ubuntu xenial-updates/main amd64 Packages
Ign:29 http://192.168.88.96/ubuntu xenial-updates/main i386 Packages
Ign:30 http://192.168.88.96/ubuntu xenial-updates/main Translation-en
Ign:31 http://192.168.88.96/ubuntu xenial-updates/main amd64 DEP-11 Metadata
Ign:32 http://192.168.88.96/ubuntu xenial-updates/main DEP-11 64x64 Icons
Ign:33 http://192.168.88.96/ubuntu xenial-updates/restricted amd64 Packages
Ign:34 http://192.168.88.96/ubuntu xenial-updates/restricted i386 Packages
Ign:35 http://192.168.88.96/ubuntu xenial-updates/restricted Translation-en
Ign:36 http://192.168.88.96/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata
Ign:37 http://192.168.88.96/ubuntu xenial-updates/universe amd64 Packages
Ign:38 http://192.168.88.96/ubuntu xenial-updates/universe i386 Packages
Ign:39 http://192.168.88.96/ubuntu xenial-updates/universe Translation-en
Ign:40 http://192.168.88.96/ubuntu xenial-updates/universe amd64 DEP-11 Metadata
Ign:41 http://192.168.88.96/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Ign:42 http://192.168.88.96/ubuntu xenial-updates/multiverse amd64 Packages
Ign:43 http://192.168.88.96/ubuntu xenial-updates/multiverse i386 Packages
Ign:44 http://192.168.88.96/ubuntu xenial-updates/multiverse Translation-en
Ign:45 http://192.168.88.96/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata
Ign:46 http://192.168.88.96/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Ign:47 http://192.168.88.96/ubuntu xenial-backports/main amd64 Packages
Ign:48 http://192.168.88.96/ubuntu xenial-backports/main i386 Packages
Ign:49 http://192.168.88.96/ubuntu xenial-backports/main Translation-en
Ign:50 http://192.168.88.96/ubuntu xenial-backports/main amd64 DEP-11 Metadata
Ign:51 http://192.168.88.96/ubuntu xenial-backports/main DEP-11 64x64 Icons
Ign:52 http://192.168.88.96/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata
Ign:53 http://192.168.88.96/ubuntu xenial-backports/universe amd64 Packages
Ign:54 http://192.168.88.96/ubuntu xenial-backports/universe i386 Packages
Ign:55 http://192.168.88.96/ubuntu xenial-backports/universe Translation-en
Ign:56 http://192.168.88.96/ubuntu xenial-backports/universe amd64 DEP-11 Metadata
Ign:57 http://192.168.88.96/ubuntu xenial-backports/universe DEP-11 64x64 Icons
Ign:58 http://192.168.88.96/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata
Ign:59 http://192.168.88.96/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons
Ign:60 http://192.168.88.96/ubuntu xenial-security/main amd64 Packages
Ign:61 http://192.168.88.96/ubuntu xenial-security/main i386 Packages
Ign:62 http://192.168.88.96/ubuntu xenial-security/main Translation-en
Ign:63 http://192.168.88.96/ubuntu xenial-security/main amd64 DEP-11 Metadata
Ign:64 http://192.168.88.96/ubuntu xenial-security/main DEP-11 64x64 Icons
Ign:65 http://192.168.88.96/ubuntu xenial-security/restricted amd64 Packages
Ign:66 http://192.168.88.96/ubuntu xenial-security/restricted i386 Packages
Ign:67 http://192.168.88.96/ubuntu xenial-security/restricted Translation-en
Ign:68 http://192.168.88.96/ubuntu xenial-security/restricted amd64 DEP-11 Metadata
Ign:69 http://192.168.88.96/ubuntu xenial-security/universe amd64 Packages
Ign:70 http://192.168.88.96/ubuntu xenial-security/universe i386 Packages
Ign:71 http://192.168.88.96/ubuntu xenial-security/universe Translation-en
Ign:72 http://192.168.88.96/ubuntu xenial-security/universe amd64 DEP-11 Metadata
Ign:73 http://192.168.88.96/ubuntu xenial-security/universe DEP-11 64x64 Icons
Ign:74 http://192.168.88.96/ubuntu xenial-security/multiverse amd64 Packages
Ign:75 http://192.168.88.96/ubuntu xenial-security/multiverse i386 Packages
Ign:76 http://192.168.88.96/ubuntu xenial-security/multiverse Translation-en
Ign:77 http://192.168.88.96/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata
Ign:78 http://192.168.88.96/ubuntu xenial-security/multiverse DEP-11 64x64 Icons
Ign:79 http://192.168.88.96/ubuntu xenial-proposed/main amd64 Packages
Ign:80 http://192.168.88.96/ubuntu xenial-proposed/main i386 Packages
Ign:81 http://192.168.88.96/ubuntu xenial-proposed/main Translation-en
Ign:82 http://192.168.88.96/ubuntu xenial-proposed/main amd64 DEP-11 Metadata
Ign:83 http://192.168.88.96/ubuntu xenial-proposed/main DEP-11 64x64 Icons
Ign:84 http://192.168.88.96/ubuntu xenial-proposed/restricted amd64 DEP-11 Metadata
Ign:85 http://192.168.88.96/ubuntu xenial-proposed/universe amd64 Packages
Ign:86 http://192.168.88.96/ubuntu xenial-proposed/universe i386 Packages
Ign:87 http://192.168.88.96/ubuntu xenial-proposed/universe Translation-en
Ign:88 http://192.168.88.96/ubuntu xenial-proposed/universe amd64 DEP-11 Metadata
Ign:89 http://192.168.88.96/ubuntu xenial-proposed/universe DEP-11 64x64 Icons
Ign:90 http://192.168.88.96/ubuntu xenial-proposed/multiverse amd64 DEP-11 Metadata
Ign:91 http://192.168.88.96/ubuntu xenial-proposed/multiverse DEP-11 64x64 Icons
Ign:31 http://192.168.88.96/ubuntu xenial-updates/main amd64 DEP-11 Metadata
Ign:32 http://192.168.88.96/ubuntu xenial-updates/main DEP-11 64x64 Icons
Ign:36 http://192.168.88.96/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata
Ign:40 http://192.168.88.96/ubuntu xenial-updates/universe amd64 DEP-11 Metadata
Ign:41 http://192.168.88.96/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Ign:45 http://192.168.88.96/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata
Ign:46 http://192.168.88.96/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Ign:50 http://192.168.88.96/ubuntu xenial-backports/main amd64 DEP-11 Metadata
Ign:51 http://192.168.88.96/ubuntu xenial-backports/main DEP-11 64x64 Icons
Ign:52 http://192.168.88.96/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata
Ign:56 http://192.168.88.96/ubuntu xenial-backports/universe amd64 DEP-11 Metadata
Ign:57 http://192.168.88.96/ubuntu xenial-backports/universe DEP-11 64x64 Icons
Ign:58 http://192.168.88.96/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata
Ign:59 http://192.168.88.96/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons
Ign:63 http://192.168.88.96/ubuntu xenial-security/main amd64 DEP-11 Metadata
Ign:64 http://192.168.88.96/ubuntu xenial-security/main DEP-11 64x64 Icons
Ign:68 http://192.168.88.96/ubuntu xenial-security/restricted amd64 DEP-11 Metadata
Ign:72 http://192.168.88.96/ubuntu xenial-security/universe amd64 DEP-11 Metadata
Ign:73 http://192.168.88.96/ubuntu xenial-security/universe DEP-11 64x64 Icons
Ign:77 http://192.168.88.96/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata
Ign:78 http://192.168.88.96/ubuntu xenial-security/multiverse DEP-11 64x64 Icons
Ign:82 http://192.168.88.96/ubuntu xenial-proposed/main amd64 DEP-11 Metadata
Ign:83 http://192.168.88.96/ubuntu xenial-proposed/main DEP-11 64x64 Icons
Ign:84 http://192.168.88.96/ubuntu xenial-proposed/restricted amd64 DEP-11 Metadata
Ign:88 http://192.168.88.96/ubuntu xenial-proposed/universe amd64 DEP-11 Metadata
Ign:89 http://192.168.88.96/ubuntu xenial-proposed/universe DEP-11 64x64 Icons
Ign:90 http://192.168.88.96/ubuntu xenial-proposed/multiverse amd64 DEP-11 Metadata
Ign:91 http://192.168.88.96/ubuntu xenial-proposed/multiverse DEP-11 64x64 Icons
Ign:31 http://192.168.88.96/ubuntu xenial-updates/main amd64 DEP-11 Metadata
Err:32 http://192.168.88.96/ubuntu xenial-updates/main DEP-11 64x64 Icons
404 Not Found
Ign:36 http://192.168.88.96/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata
Ign:40 http://192.168.88.96/ubuntu xenial-updates/universe amd64 DEP-11 Metadata
Ign:41 http://192.168.88.96/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Ign:45 http://192.168.88.96/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata
Ign:46 http://192.168.88.96/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Ign:50 http://192.168.88.96/ubuntu xenial-backports/main amd64 DEP-11 Metadata
Err:51 http://192.168.88.96/ubuntu xenial-backports/main DEP-11 64x64 Icons
404 Not Found
Ign:52 http://192.168.88.96/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata
Ign:56 http://192.168.88.96/ubuntu xenial-backports/universe amd64 DEP-11 Metadata
Ign:57 http://192.168.88.96/ubuntu xenial-backports/universe DEP-11 64x64 Icons
Ign:58 http://192.168.88.96/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata
Ign:59 http://192.168.88.96/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons
Ign:63 http://192.168.88.96/ubuntu xenial-security/main amd64 DEP-11 Metadata
Err:64 http://192.168.88.96/ubuntu xenial-security/main DEP-11 64x64 Icons
404 Not Found
Ign:68 http://192.168.88.96/ubuntu xenial-security/restricted amd64 DEP-11 Metadata
Ign:72 http://192.168.88.96/ubuntu xenial-security/universe amd64 DEP-11 Metadata
Ign:73 http://192.168.88.96/ubuntu xenial-security/universe DEP-11 64x64 Icons
Ign:77 http://192.168.88.96/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata
Ign:78 http://192.168.88.96/ubuntu xenial-security/multiverse DEP-11 64x64 Icons
Ign:82 http://192.168.88.96/ubuntu xenial-proposed/main amd64 DEP-11 Metadata
Err:83 http://192.168.88.96/ubuntu xenial-proposed/main DEP-11 64x64 Icons
404 Not Found
Ign:84 http://192.168.88.96/ubuntu xenial-proposed/restricted amd64 DEP-11 Metadata
Ign:88 http://192.168.88.96/ubuntu xenial-proposed/universe amd64 DEP-11 Metadata
Ign:89 http://192.168.88.96/ubuntu xenial-proposed/universe DEP-11 64x64 Icons
Ign:90 http://192.168.88.96/ubuntu xenial-proposed/multiverse amd64 DEP-11 Metadata
Ign:91 http://192.168.88.96/ubuntu xenial-proposed/multiverse DEP-11 64x64 Icons
Ign:82 http://192.168.88.96/ubuntu xenial-proposed/main amd64 DEP-11 Metadata
Ign:93 http://dl.google.com/linux/chrome/deb stable InRelease
Err:98 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release
404 Not Found
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial 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.
First of all, I think it is the problem of the third part source(Download from official source is too slow in China), but I replaced the source.list file which in client computer with "tuna" source, to check out if the problem will appear again. But it didn't, every thing is fine, no Ign, no Err, just Hit and Get. So it should I made something wrong when deploy it.
I need some advice to solve this problem. Thank you all.
Replace xenial-siecurity to xenial-security will help to solve your problem.

VOLTTRON : Mongodb installation- error in ppa chris-lea/zeromq/ubuntu xenial

My OS is: Ubuntu (16.04 LTS)
I want to install MongoDB historian instead of mysqlhistorian
(installed).
Following up the issue: Switching between or adding multiple VOLTTRON Historian Framework
and the documentation: http://volttron.readthedocs.io/en/4.1/core_services/historians/Mongo-Historian.html#prerequisites
it seems that there is another error occur when I run the script :
sudo scripts/historian-scripts/root_install_mongo_ubuntu.sh
This message shows up:
Enter 1 or 2 based on the version of Ubuntu you are running
1. Ubuntu 12.04 LTS(Precise Pangolin)
2. Ubuntu 14.04.4 LTS(Trusty Tahr)
I select "2", because it is the closest version to (16.04 LTS)
after selecting "2"
I get the error shown below:
Executing: /tmp/tmp.0w3KEgvSfT/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
EA312927
gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com
gpg: key EA312927: "MongoDB 3.2 Release Signing Key <packaging#mongodb.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse
Ign:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 InRelease
Hit:2 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 Release
Ign:3 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial InRelease
Hit:4 http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial InRelease
Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Ign:9 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial Release
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Err:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
404 Not Found
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/chris-lea/zeromq/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Note
It is worth mentioning I have installed (pyzmq) using:
(Volttron)USER_NAME#USER_NAME-Laptop:~/volttron$ pip install pyzmq and the requirement for it is satisfied as shown below:
Requirement already satisfied: pyzmq in
./env/local/lib/python2.7/site-packages
and for (MongoDB connector) is also satisfied using :pip install pymongo
Requirement already satisfied: pymongo in ./env/lib/python2.7/site-packages
Question
If selecting "2" is not correct, what is the solution for higher Ubuntu version?
The script needs to be updated to support the latest version of ubuntu. I will update it and create a pull request.
As an alternative have you considered CrateHistorian? CrateHistorian also provides better performance for large production systems.

Unable to install NodeJS 9 on Ubuntu 16.04 LTS (64bit) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have tried installing NodeJS by using the following command:
sudo apt-get install nodejs
The problem is, it installs an older version of NodeJS. So I found another way to install a newer version of NodeJS by the following command:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
But it keeps throwing me the following error message:
adam#adam-pc:~$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
## Installing the NodeSource Node.js v9.x repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://hu.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:2 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Get:3 http://hu.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Get:5 http://hu.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:6 http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Ign:8 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial InRelease
Hit:9 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:10 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Ign:11 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial Release
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Ign:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Err:12 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:13 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial/main DEP-11 64x64 Icons
Fetched 451 kB in 6s (70,4 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/michael-gruz/canon-trunk/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
I keep looking for a solution for hours now, tried around 10 ideas from StackOverflow and from different forums that I found on Google, but still nothing.
EDIT:
Meanwhile I found the solution.
I opened Ubuntu Update manager by the following command:
update-manager
Then I clicked on Settings and Other software tab and unticked all the http://ppa.launchpad.net/ stuff I found ticked and strange (especially all the michael-gruz links).
Then used the commands above again:
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install nodejs
Now I got v9.5.0 installed.
There's nothing wrong with that install command itself. If you were to look why it errors out, you can see that a launchpad package has gone 404. If you remove this repository, it won't interrupt apt and allow installing the package. You should be able to remove this removed PPA like so:
sudo add-apt-repository --remove ppa:michael-gruz/ppa
I recommend to use a version manager for node. The most popular ones are nvm and n.
Now you can:
sudo apt-get install nodejs // install a really old node
npm install n -g // get n
n latest // get latest node, or a specific one with n v8.0.0

Get dev library packages for arm on x64 Ubuntu host?

I am building a project that requires a number of libraries, for windows I got prebuilt libs from MSYS2, for linux from the ubuntu repos, and now I am porting to android, so I need the same libraries for armhf and arm64. The good news is the ubuntu repos have everything I need, the bad news - I can't figure out how to get them using apt, that is get the libs with the entire dependency trees. It is possible to download individual packages from the web, but it gets kind of arduous to get the entire dependency tree, building the libraries from source - tremendously more so.
I can do sudo apt-get install package:uarch for i386 even though I am on a 64bit host, however when I try arm I get a unable to locate package. So how do I get them?
Note 1: I only need the libraries, I don't need toolchains, the NDK already has those.
Note 2: I did try asking on the ubuntu site, but I didn't get any feedback in like a day, and since the question is strictly about development I decided to try here.
Note 3: The question is not about recommending libraries.
EDIT: After dpkg --add-architecture armhf for update I get:
Hit:1 http://bg.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://bg.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:2 http://bg.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
Ign:4 http://bg.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://bg.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://bg.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:7 http://bg.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:4 http://bg.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://bg.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://bg.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:7 http://bg.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:4 http://bg.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:5 http://bg.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://bg.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Hit:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:7 http://bg.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:9 http://bg.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:10 http://bg.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Err:4 http://bg.archive.ubuntu.com/ubuntu xenial/main armhf Packages
404 Not Found [IP: 195.85.215.252 80]
Ign:5 http://bg.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:6 http://bg.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:7 http://bg.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:9 http://bg.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:10 http://bg.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:9 http://bg.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:10 http://bg.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Get:11 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [383 kB]
Get:12 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [378 kB]
Ign:13 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Get:14 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [323 kB]
Get:15 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [320 kB]
Ign:16 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:17 http://bg.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Err:9 http://bg.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
404 Not Found [IP: 195.85.215.252 80]
Ign:10 http://bg.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:13 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:16 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:17 http://bg.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Ign:13 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:16 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:17 http://bg.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Err:13 http://bg.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
404 Not Found [IP: 195.85.215.252 80]
Ign:16 http://bg.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:17 http://bg.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:19 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:19 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:19 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Err:18 http://security.ubuntu.com/ubuntu xenial-security/main armhf Packages
404 Not Found [IP: 91.189.91.26 80]
Ign:19 http://security.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Fetched 95,7 kB in 1s (59,8 kB/s)
Reading package lists... Done
E: Failed to fetch http://bg.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-armhf/Packages 404 Not Found [IP: 195.85.215.252 80]
E: Failed to fetch http://bg.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-armhf/Packages 404 Not Found [IP: 195.85.215.252 80]
E: Failed to fetch http://bg.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-armhf/Packages 404 Not Found [IP: 195.85.215.252 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.26 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Unlike Debian, the Ubuntu archives don't have everything in the right place already, in fact non-x86 packages are kept somewhere else altogether. The first thing to do is edit /etc/apt/sources.lst to add ports.ubuntu.com alongside archive.ubuntu.com/ubuntu for the repositories you want, e.g. for:
deb http://bg.archive.ubuntu.com/ubuntu/ xenial main restricted
the equivalent ports repo is:
deb http://bg.ports.ubuntu.com/ xenial main restricted
With those in place,
dpkg --add-architecture armhf
(repeat as appropriate for additional architectures), then updating as usual, does the trick. I've confirmed this on a fresh install of 16.04.1, but I'm pretty sure the same applies as far back as 12.04 too.
Per the multiarch documentation, you can shut the "ignored" and "not found" errors up by restricting entries to the relevant architectures, i.e.:
deb [arch=i386,amd64] http://archive.ubuntu.com...
deb [arch=armhf] http://ports.ubuntu.com...
For reference, Debian's census report has a convenient summary.

Resources