anaconda R - Rcpp error - rcpp

Setup (I'm using the anaconda distributed R):
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Rcpp -- 0.12.5
Minimal example:
library(Rcpp)
evalCpp("1+1")
Error:
Error in dyn.load("/tmp/RtmpGI3wKi/sourcecpp_6c2722bad7ef/sourceCpp_1.so") :
unable to load shared object '/tmp/RtmpGI3wKi/sourcecpp_6c2722bad7ef/sourceCpp_1.so':
/tmp/RtmpGI3wKi/sourcecpp_6c2722bad7ef/sourceCpp_1.so: undefined symbol: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv
I've seen a very similar error on the anaconda google groups and also here on stackoverflow, but no hints for remedial.

You will have to talk to the good people that gave you Anaconda. On Debian and Ubuntu, everything "just works" as it should -- and can be expected given that a portion of the developers uses that platform:
On (one of) my workstation(s) running Ubuntu 16.04:
R> library(Rcpp)
R> evalCpp("1+2")
[1] 3
R>
Ditto in a freshly launched Rocker r-base container (running Debian testing and pulling in Rcpp via apt-get):
$ docker run --rm -ti r-base /bin/bash
root#fb2451f888cb:/# apt-get update
Get:2 http://security.debian.org testing/updates InRelease [68.2 kB]
Get:1 http://debian.cs.binghamton.edu/debian sid InRelease [209 kB]
Get:3 http://debian.cs.binghamton.edu/debian testing InRelease [251 kB]
Get:4 http://debian.cs.binghamton.edu/debian testing-updates InRelease [124 kB]
Get:5 http://debian.cs.binghamton.edu/debian sid/main amd64 Packages [9,671 kB]
Get:6 http://debian.cs.binghamton.edu/debian testing/main amd64 Packages [10.4 MB]
Fetched 20.7 MB in 4s (4,476 kB/s)
Reading package lists... Done
root#fb2451f888cb:/# apt-get install r-cran-rcpp
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
r-cran-pkgkitten
Suggested packages:
r-cran-inline
The following NEW packages will be installed:
r-cran-pkgkitten r-cran-rcpp
0 upgraded, 2 newly installed, 0 to remove and 102 not upgraded.
Need to get 2,187 kB of archives.
After this operation, 9,187 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://debian.cs.binghamton.edu/debian testing/main amd64 r-cran-pkgkitten all 0.1.3-1 [18.3 kB]
Get:2 http://debian.cs.binghamton.edu/debian testing/main amd64 r-cran-rcpp amd64 0.12.7-1 [2,169 kB]
Fetched 2,187 kB in 0s (2,324 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package r-cran-pkgkitten.
(Reading database ... 16975 files and directories currently installed.)
Preparing to unpack .../r-cran-pkgkitten_0.1.3-1_all.deb ...
Unpacking r-cran-pkgkitten (0.1.3-1) ...
Selecting previously unselected package r-cran-rcpp.
Preparing to unpack .../r-cran-rcpp_0.12.7-1_amd64.deb ...
Unpacking r-cran-rcpp (0.12.7-1) ...
Setting up r-cran-pkgkitten (0.1.3-1) ...
Setting up r-cran-rcpp (0.12.7-1) ...
root#fb2451f888cb:/# R
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Rcpp)
> evalCpp("1+2")
[1] 3
>

Related

apt-get install Python3 in fresh Ubuntu Docker Image results in Error 13 Permission Denied

Update2
Okay, I've rebuilt the Ubuntu server from scratch and the problem still exists. This is how I am doing it.
Create a virtual machine in ESXI with two disk volumes. The first is 50GB and the second is 250GB.
Run the Ubuntu 22.04 LTS install
Create a static IP address
Create two LVM volumes, the 50GB is root and the 350GB is mounted as /var
Select Docker and Prometheus to be installed along with Ubuntu
Let the install run to completion.
Unmount the CD rom when finished and reboot Ubuntu
Login and then sudo bash
docker pull ubuntu
docker run -it ubuntu
apt-get update
apt-get install -y python3
You should get the error
I am running a new/fresh Ubuntu Docker image on a 22.04 LTS Ubuntu server instance. Docker was installed during the Ubuntu 22.04 LTS install. It is a new Ubuntu 22.04 LTS install.
I'm using docker version 20.10.17, build 100c70180f.
I am having trouble getting python3 installed in the running docker container.
To start off, I get the Ubuntu image running in a container:
docker run -ti ubuntu
In the image I run (as the root user)
apt update
Then I run
apt install python3
The installation fails with:
root#6bfb4be344d6:/# apt-get install python3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8 libsqlite3-0 media-types python3-minimal python3.10 python3.10-minimal readline-common
Suggested packages:
python3-doc python3-tk python3-venv python3.10-venv python3.10-doc binutils binfmt-support readline-doc
The following NEW packages will be installed:
libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libreadline8 libsqlite3-0 media-types python3 python3-minimal python3.10 python3.10-minimal readline-common
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 6494 kB of archives.
After this operation, 23.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.6-1~22.04.2 [810 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-minimal amd64 3.10.6-1~22.04.2 [2251 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-minimal amd64 3.10.6-1~22.04 [24.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 readline-common all 8.1.2-1 [53.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libreadline8 amd64 8.1.2-1 [153 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsqlite3-0 amd64 3.37.2-2ubuntu0.1 [641 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.6-1~22.04.2 [1832 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10 amd64 3.10.6-1~22.04.2 [497 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-stdlib amd64 3.10.6-1~22.04 [6910 B]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3 amd64 3.10.6-1~22.04 [22.8 kB]
Fetched 6494 kB in 14s (478 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpython3.10-minimal:amd64.
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../libpython3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.2_amd64.deb ...
Unpacking libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package python3.10-minimal.
Preparing to unpack .../python3.10-minimal_3.10.6-1~22.04.2_amd64.deb ...
Unpacking python3.10-minimal (3.10.6-1~22.04.2) ...
Setting up libpython3.10-minimal:amd64 (3.10.6-1~22.04.2) ...
Setting up libexpat1:amd64 (2.4.7-1ubuntu0.2) ...
Setting up python3.10-minimal (3.10.6-1~22.04.2) ...
[Errno 13] Permission denied: '/usr/lib/python3.10/__pycache__/__future__.cpython-310.pyc.139849676216832'dpkg: error processing package python3.10-minimal (--configure):
installed python3.10-minimal package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3.10-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking into the /user/lib/python3.10/__pychache__/ all of the files in the directory are -rw-r--r--
How can the install complain of Permission denied when running as root and the user permissions for every file in the directory is rw?
Update
I upgraded to docker 20.10.22 build 3a2c30b but still am encountering this issue.
I reinstalled Ubuntu 22.04 and this time did not select Docker as one of the packages installed along with Ubuntu. I installed Docker manually after the Ubuntu install completed and after a reboot.
Now it works fine.
I reinstalled ubuntu 22.04 again, just to make sure I could reproduce the problem and indeed, if I select Docker to be installed with Ubuntu, the problem resurfaces.

Error Installing NodeJS From Command Line

To install NodeJS on a fresh copy of Linux on a virtual machine I'd type apt install nodejs
And I'd get the following output:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs-doc
Suggested packages:
npm
The following NEW packages will be installed:
javascript-common libc-ares2 libjs-highlight.js libnode72 libuv1 nodejs nodejs-doc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 50.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bullseye/main amd64 javascript-common all 11+nmu1 [6260 B]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libc-ares2 amd64 1.17.1-1+deb11u1 [102 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libjs-highlight.js all 9.18.5+dfsg1-1 [397 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2 [132 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 libnode72 amd64 12.22.12~dfsg-1~deb11u1 [8319 kB]
Get:6 http://deb.debian.org/debian-security bullseye-security/main amd64 nodejs amd64 12.22.12~dfsg-1~deb11u1 [147 kB]
Get:7 http://deb.debian.org/debian-security bullseye-security/main amd64 nodejs-doc all 12.22.12~dfsg-1~deb11u1 [2547 kB]
Fetched 11.7 MB in 0s (42.8 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package javascript-common.
(Reading database ... 17840 files and directories currently installed.)
Preparing to unpack .../0-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libc-ares2:amd64.
Preparing to unpack .../1-libc-ares2_1.17.1-1+deb11u1_amd64.deb ...
Unpacking libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Selecting previously unselected package libjs-highlight.js.
Preparing to unpack .../2-libjs-highlight.js_9.18.5+dfsg1-1_all.deb ...
Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../3-libuv1_1.40.0-2_amd64.deb ...
Unpacking libuv1:amd64 (1.40.0-2) ...
Selecting previously unselected package libnode72:amd64.
Preparing to unpack .../4-libnode72_12.22.12~dfsg-1~deb11u1_amd64.deb ...
Unpacking libnode72:amd64 (12.22.12~dfsg-1~deb11u1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../5-nodejs_12.22.12~dfsg-1~deb11u1_amd64.deb ...
Unpacking nodejs (12.22.12~dfsg-1~deb11u1) ...
Selecting previously unselected package nodejs-doc.
Preparing to unpack .../6-nodejs-doc_12.22.12~dfsg-1~deb11u1_all.deb ...
Unpacking nodejs-doc (12.22.12~dfsg-1~deb11u1) ...
Setting up javascript-common (11+nmu1) ...
dpkg: error processing package javascript-common (--configure):
installed javascript-common package post-installation script subprocess returned error exit status 1
Setting up libc-ares2:amd64 (1.17.1-1+deb11u1) ...
Setting up libuv1:amd64 (1.40.0-2) ...
Setting up libjs-highlight.js (9.18.5+dfsg1-1) ...
Setting up libnode72:amd64 (12.22.12~dfsg-1~deb11u1) ...
Setting up nodejs-doc (12.22.12~dfsg-1~deb11u1) ...
Setting up nodejs (12.22.12~dfsg-1~deb11u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/js.1.gz because associated file /usr/share/man/man1/nodejs.1.gz (of link group js) doesn't exist
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Errors were encountered while processing:
javascript-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
Now, whenever I try to install anything I get an error. If I reset the machine and try to install other stuff it would work fine, but I always get the error when installing NodeJS.
What is the error and how can I fix it and move on?

in Ubuntu why don't I see a specific version in usr/bin of python when I download it?

Hi I'm trying to get a specific version of python working in a virtualenv
I tried these solutions:
https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get
I didn't do the compiling answers because it looked like doing that was going to get rid of my "old" newer version of python.
So I'm mostly concerned with the first answer. I did this:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.3
it seemed to work out ok although I didn't get a "python3.3 is installed message" or however it's supposed to look:
sudo apt-get install python3.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-3parclient' for regex 'python3.3'
The following additional packages will be installed:
python3-dnspython python3-eventlet python3-greenlet
Suggested packages:
python-eventlet-doc python-greenlet-doc python-greenlet-dev
python3-greenlet-dbg
The following NEW packages will be installed:
python3-3parclient python3-dnspython python3-eventlet python3-greenlet
0 upgraded, 4 newly installed, 0 to remove and 7 not upgraded.
Need to get 316 kB of archives.
After this operation, 1,867 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-greenlet amd64 0.4.15-4.1 [15.7 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-dnspython all 1.16.0-1build1 [89.1 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-eventlet all 0.25.1-2ubuntu1 [154 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-3parclient all 4.2.11-0ubuntu1 [57.4 kB]
Fetched 316 kB in 0s (1,007 kB/s)
Selecting previously unselected package python3-greenlet.
(Reading database ... 212769 files and directories currently installed.)
Preparing to unpack .../python3-greenlet_0.4.15-4.1_amd64.deb ...
Unpacking python3-greenlet (0.4.15-4.1) ...
Selecting previously unselected package python3-dnspython.
Preparing to unpack .../python3-dnspython_1.16.0-1build1_all.deb ...
Unpacking python3-dnspython (1.16.0-1build1) ...
Selecting previously unselected package python3-eventlet.
Preparing to unpack .../python3-eventlet_0.25.1-2ubuntu1_all.deb ...
Unpacking python3-eventlet (0.25.1-2ubuntu1) ...
Selecting previously unselected package python3-3parclient.
Preparing to unpack .../python3-3parclient_4.2.11-0ubuntu1_all.deb ...
Unpacking python3-3parclient (4.2.11-0ubuntu1) ...
Setting up python3-greenlet (0.4.15-4.1) ...
Setting up python3-dnspython (1.16.0-1build1) ...
Setting up python3-eventlet (0.25.1-2ubuntu1) ...
/usr/lib/python3/dist-packages/eventlet/db_pool.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.max_age is 0 or self.max_idle is 0:
/usr/lib/python3/dist-packages/eventlet/db_pool.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.max_age is 0 or self.max_idle is 0:
Setting up python3-3parclient (4.2.11-0ubuntu1) ...
/usr/lib/python3/dist-packages/hpe3parclient/http.py:278: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.tries is 0:
After this was done, I expected python 3.3 to be available in usr/bin so I could set up a virtualenv with it, but it's not. Is there a step I'm missing?
Thanks!
Found out that 3.3 doesn't work with my ubuntu 20.04. I thought because my python2.7 worked I could just move up to 3.3 no problem. I guess the 2.7 only is there because it was leftover from an older ubuntu.
Anyways, python3.5 worked for me!
I assume you're using ubuntu 20.04
Unfortunately, without funding I can't provide packages for python<3.5 on 20.04 because those versions never received the libssl1.1 patches upstream. I could patch them myself but that's a lot of work I can't rationalize doing for free. So on 20.04 you'll need to use python3.5+
The reason "something" installed was apt-get """helpfully""" normalized your package name to something completely unrelated:
Note, selecting 'python3-3parclient' for regex 'python3.3'
disclaimer: I maintain deadsnakes

I can't install python packages by using pip3 on alpine

Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-xo15v1tw/mock/mock'
I created an alpine container. Dockerfile is
FROM alpine:latest
I built and run it.
#sudo docker build -t alpine .
#sudo docker run -it alpine
Then, I installed python3
#apk add python3
Then, I tried to install mock package and I got error.
#pip3 install mock
...
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-xo15v1tw/mock/mock'
I tried to install other python packages, but I always got the same error.
I'm running on the container on WSL. The version of alpine is 3.9.4.
How do I solve this problem?
I had the exact same issue running Docker (version 17.09.0 in Ubuntu 16.04, and version 18.06.1 in Ubuntu 18.04) in WSL on Windows 1903, build 18362.145 (my test example is below).
The problem appears to be related to the default overlay2 (and also affects the older overlay) storage driver. Changing to the vfs storage driver by adding the following to /etc/docker/daemon.json makes pip work correctly:
{
"storage-driver": "vfs"
}
However, the vfs storage driver is not recommended due to it's poor performance and high disk usage (it creates a complete copy of the file system in each layer). This is particularly relevant for docker builds where a complete copy of the file system is made for each line in the Dockerfile. So I'm not sure if this is a solution, but it at least indicates where the problem comes from. No other storage drivers appear to be compatible with WSL.
Following are two completely different situations where the overlay2/overlay storage driver appears to cause errors that do not appear to be related to storage at all. I'm sure this would also cause many other errors. I'm not sure if this was an issue before Windows 1903 (I didn't try docker in WSL then), and I'm also not sure what could be causing this (is it on the WSL side, or the overlay2/overlay side? - maybe someone with more knowledge than me would have a comment on this).
My test when using the overlay2/overlay storage driver is as follows:
$ docker run -it alpine
/ # apk add --update py3-pip
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/11) Installing libbz2 (1.0.6-r6)
(2/11) Installing expat (2.2.6-r0)
(3/11) Installing libffi (3.2.1-r6)
(4/11) Installing gdbm (1.13-r1)
(5/11) Installing xz-libs (5.2.4-r0)
(6/11) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(7/11) Installing ncurses-terminfo (6.1_p20190105-r0)
(8/11) Installing ncurses-libs (6.1_p20190105-r0)
(9/11) Installing readline (7.0.003-r1)
(10/11) Installing sqlite-libs (3.28.0-r0)
(11/11) Installing python3 (3.6.8-r2)
Executing busybox-1.29.3-r10.trigger
OK: 68 MiB in 25 packages
/ # pip3 install mock
Collecting mock
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Could not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/tmp/pip-install-btvxatk0/mock/mock'
/ #
When using the vfs storage driver:
$ docker run -it alpine
/ # apk add --update py3-pip
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/11) Installing libbz2 (1.0.6-r6)
(2/11) Installing expat (2.2.6-r0)
(3/11) Installing libffi (3.2.1-r6)
(4/11) Installing gdbm (1.13-r1)
(5/11) Installing xz-libs (5.2.4-r0)
(6/11) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(7/11) Installing ncurses-terminfo (6.1_p20190105-r0)
(8/11) Installing ncurses-libs (6.1_p20190105-r0)
(9/11) Installing readline (7.0.003-r1)
(10/11) Installing sqlite-libs (3.28.0-r0)
(11/11) Installing python3 (3.6.8-r2)
Executing busybox-1.29.3-r10.trigger
OK: 68 MiB in 25 packages
/ # pip3 install mock
Collecting mock
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Collecting six (from mock)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Installing collected packages: six, mock
Successfully installed mock-3.0.5 six-1.12.0
You are using pip version 18.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/ #
I also found that running apt update in the ububtu official image, I got the following output when using the overlay2/overlay storage driver:
$ docker run -it ubuntu
root#d716ab2aee5c:/# apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
At least one invalid signature was encountered.
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
At least one invalid signature was encountered.
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
At least one invalid signature was encountered.
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
At least one invalid signature was encountered.
Reading package lists... Done
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root#d716ab2aee5c:/#
When using the vfs storage driver:
$ docker run -it ubuntu
root#1422a0121aa2:/# apt update
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [717 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [5436 B]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [535 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4169 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1220 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [10.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7239 B]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [837 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3902 B]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2496 B]
Fetched 16.7 MB in 26s (641 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
12 packages can be upgraded. Run 'apt list --upgradable' to see them.
root#1422a0121aa2:/#

Can't install .NET Core on Linux Mint 18.1

I am trying to install .NET Core on Linux Mint 18.1, following the instructions from "Install for Ubuntu 14.04, 16.04, 16.10 & Linux Mint 17 (64 bit)". I'm getting errors due to dependencies:
I still can't install the missing dependency directly:
Is there anything I can do to make it work, or is Linux Mint 18.1 simply not supported?
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.1
Working on 18.1
jamie#tesla ~/Downloads $ sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
jamie#tesla ~/Downloads $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
Executing: /tmp/tmp.x3h2WeSDru/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
417A0893
gpg: requesting key 417A0893 from hkp server keyserver.ubuntu.com
gpg: key 417A0893: public key "MS Open Tech <interop#microsoft.com>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
jamie#tesla ~/Downloads $ sudo apt-get update
Ign:1 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena InRelease
Hit:2 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena Release
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial InRelease [2,835 B]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 Packages [5,741 B]
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 315 kB in 15s (20.2 kB/s)
Reading package lists... Done
jamie#tesla ~/Downloads $ sudo apt-get install dotnet-dev-1.0.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1 libcurl3
liblldb-3.6 libllvm3.6v5 liblttng-ust-ctl2 liblttng-ust0 liburcu4
The following NEW packages will be installed
dotnet-dev-1.0.1 dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1
libcurl3 liblldb-3.6 libllvm3.6v5 liblttng-ust-ctl2 liblttng-ust0 liburcu4
0 to upgrade, 12 to newly install, 0 to remove and 0 not to upgrade.
Need to get 113 MB of archives.
After this operation, 342 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3 amd64 7.47.0-1ubuntu2.2 [186 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libllvm3.6v5 amd64 1:3.6.2-3ubuntu2 [8,075 kB]
Get:3 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-host amd64 1.1.0-preview1-001100-00-1 [33.7 kB]
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.0.1 amd64 1.0.1-1 [123 kB]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.0.4 amd64 1.0.4-1 [22.6 MB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblldb-3.6 amd64 1:3.6.2-3ubuntu2 [7,303 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liburcu4 amd64 0.9.1-3 [47.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liblttng-ust-ctl2 amd64 2.7.1-1 [72.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liblttng-ust0 amd64 2.7.1-1 [127 kB]
Get:10 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.1.0 amd64 1.1.0-1 [124 kB]
Get:11 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.1.1 amd64 1.1.1-1 [22.9 MB]
Get:12 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-dev-1.0.1 amd64 1.0.1-1 [51.4 MB]
Fetched 113 MB in 13s (8,498 kB/s)
Selecting previously unselected package libcurl3:amd64.
(Reading database ... 256441 files and directories currently installed.)
Preparing to unpack .../libcurl3_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking libcurl3:amd64 (7.47.0-1ubuntu2.2) ...
Selecting previously unselected package libllvm3.6v5:amd64.
Preparing to unpack .../libllvm3.6v5_1%3a3.6.2-3ubuntu2_amd64.deb ...
Unpacking libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ...
Selecting previously unselected package liblldb-3.6.
Preparing to unpack .../liblldb-3.6_1%3a3.6.2-3ubuntu2_amd64.deb ...
Unpacking liblldb-3.6 (1:3.6.2-3ubuntu2) ...
Selecting previously unselected package liburcu4:amd64.
Preparing to unpack .../liburcu4_0.9.1-3_amd64.deb ...
Unpacking liburcu4:amd64 (0.9.1-3) ...
Selecting previously unselected package liblttng-ust-ctl2:amd64.
Preparing to unpack .../liblttng-ust-ctl2_2.7.1-1_amd64.deb ...
Unpacking liblttng-ust-ctl2:amd64 (2.7.1-1) ...
Selecting previously unselected package liblttng-ust0:amd64.
Preparing to unpack .../liblttng-ust0_2.7.1-1_amd64.deb ...
Unpacking liblttng-ust0:amd64 (2.7.1-1) ...
Selecting previously unselected package dotnet-host.
Preparing to unpack .../dotnet-host_1.1.0-preview1-001100-00-1_amd64.deb ...
Unpacking dotnet-host (1.1.0-preview1-001100-00-1) ...
Selecting previously unselected package dotnet-hostfxr-1.0.1.
Preparing to unpack .../dotnet-hostfxr-1.0.1_1.0.1-1_amd64.deb ...
Unpacking dotnet-hostfxr-1.0.1 (1.0.1-1) ...
Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.0.4.
Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.0.4_1.0.4-1_amd64.deb ...
Unpacking dotnet-sharedframework-microsoft.netcore.app-1.0.4 (1.0.4-1) ...
Selecting previously unselected package dotnet-hostfxr-1.1.0.
Preparing to unpack .../dotnet-hostfxr-1.1.0_1.1.0-1_amd64.deb ...
Unpacking dotnet-hostfxr-1.1.0 (1.1.0-1) ...
Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.1.1.
Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.1.1_1.1.1-1_amd64.deb ...
Unpacking dotnet-sharedframework-microsoft.netcore.app-1.1.1 (1.1.1-1) ...
Selecting previously unselected package dotnet-dev-1.0.1.
Preparing to unpack .../dotnet-dev-1.0.1_1.0.1-1_amd64.deb ...
Unpacking dotnet-dev-1.0.1 (1.0.1-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libcurl3:amd64 (7.47.0-1ubuntu2.2) ...
Setting up libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ...
Setting up liblldb-3.6 (1:3.6.2-3ubuntu2) ...
Setting up liburcu4:amd64 (0.9.1-3) ...
Setting up liblttng-ust-ctl2:amd64 (2.7.1-1) ...
Setting up liblttng-ust0:amd64 (2.7.1-1) ...
Setting up dotnet-host (1.1.0-preview1-001100-00-1) ...
Setting up dotnet-hostfxr-1.0.1 (1.0.1-1) ...
Setting up dotnet-sharedframework-microsoft.netcore.app-1.0.4 (1.0.4-1) ...
Setting up dotnet-hostfxr-1.1.0 (1.1.0-1) ...
Setting up dotnet-sharedframework-microsoft.netcore.app-1.1.1 (1.1.1-1) ...
Setting up dotnet-dev-1.0.1 (1.0.1-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
jamie#tesla ~/Downloads $ dotnet
Microsoft .NET Core Shared Framework Host
Version : 1.1.0
Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86
Usage: dotnet [common-options] [[options] path-to-application]
Common Options:
--help Display .NET Core Shared Framework Host help.
--version Display .NET Core Shared Framework Host version.
Options:
--fx-version <version> Version of the installed Shared Framework to use to run the application.
--additionalprobingpath <path> Path containing probing policy and assemblies to probe for.
Path to Application:
The path to a .NET Core managed application, dll or exe file to execute.
If you are debugging the Shared Framework Host, set 'COREHOST_TRACE' to '1' in your environment.
To get started on developing applications for .NET Core, install the SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
It's works for me:
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
$ sudo apt-get update
$ sudo apt-get install dotnet-sdk-2.1.4
See instructions
UPDATE IN 2018-05-01:
Microsoft changed instructions, see: Install .NET Core SDK 2.1.300-preview2 on Linux Ubuntu 17.10

Resources