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
Related
Closed. This question is not about programming or software development. It is not currently accepting answers.
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.
Closed last month.
Improve this question
I have seen some similar questions, but in my case the following error popped up when I ran sudo apt-get update:
ICON_lab) randychen#randychen-Delta-15-A5EFK:~/projects$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Ign:3 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:4 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 140.211.166.134 80]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:6 http://www.deb-multimedia.org jessie InRelease [15.4 kB]
Hit:7 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:8 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [95.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [257 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:13 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [11.4 kB]
Ign:6 http://www.deb-multimedia.org jessie InRelease
Hit:12 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy 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://www.deb-multimedia.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117
E: Release file for http://www.deb-multimedia.org/dists/jessie/InRelease is expired (invalid since 388d 20h 52min 20s). Updates for this repository will not be applied.
W: https://packagecloud.io/slacktechnologies/slack/debian/dists/jessie/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
At first I thought it's due to a PPA but I don't have any here. I tried trouble shooting it by following this post, and I added that line of code on the top of the file, but it's not working either.
Any help is greatly appreciated!
You have to correct the url:
sudo grep -rlF 'http://packages.ros.org' /etc/apt/sources* |
xargs sed -i 's#http://packages.ros.org#https://ubuntu.osuosl.org/#'
sudo apt update
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.
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.
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.
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.