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?
Related
I'm trying to install the git credential helper with Libsecret in my Docker container on my company's remote machine (to which I've ssh-ed).
I'm a beginner with Docker and tried to just use the method online
sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /home/<my_username>/share/doc/git/contrib/credential/
sudo make
git config --global credential.helper /home/<my_username>/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
The only thing I've changed (privacy reasons) is my actual username to <my_username>. Here I get the problem sudo: unable to resolve host and then more problems later in spite of install progressing.
Anyone able to help?
Full debug below:
# sudo apt-get install libsecret-1-0 libsecret-1-dev
sudo: unable to resolve host 1fee2c616ef4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gir1.2-glib-2.0 gir1.2-secret-1 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libpcre16-3 libpcre3-dev
libpcre32-3 libpcrecpp0v5 libsecret-common pkg-config python3-distutils python3-lib2to3
Suggested packages:
libglib2.0-doc
The following NEW packages will be installed:
gir1.2-glib-2.0 gir1.2-secret-1 libgirepository-1.0-1 libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libpcre16-3 libpcre3-dev libpcre32-3
libpcrecpp0v5 libsecret-1-0 libsecret-1-dev libsecret-common pkg-config python3-distutils python3-lib2to3
The following packages will be upgraded:
libglib2.0-0
1 upgraded, 16 newly installed, 0 to remove and 64 not upgraded.
Need to get 4327 kB of archives.
After this operation, 20.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-0 amd64 2.56.4-0ubuntu0.18.04.7 [1172 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgirepository-1.0-1 amd64 1.56.1-1 [82.0 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 gir1.2-glib-2.0 amd64 1.56.1-1 [131 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsecret-common all 0.18.6-1 [4452 B]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsecret-1-0 amd64 0.18.6-1 [94.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 gir1.2-secret-1 amd64 0.18.6-1 [7440 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-bin amd64 2.56.4-0ubuntu0.18.04.7 [68.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-lib2to3 all 3.6.9-1~18.04 [77.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-distutils all 3.6.9-1~18.04 [144 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-dev-bin amd64 2.56.4-0ubuntu0.18.04.7 [102 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre16-3 amd64 2:8.39-9 [147 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre32-3 amd64 2:8.39-9 [138 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcrecpp0v5 amd64 2:8.39-9 [15.3 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre3-dev amd64 2:8.39-9 [537 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglib2.0-dev amd64 2.56.4-0ubuntu0.18.04.7 [1386 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsecret-1-dev amd64 0.18.6-1 [176 kB]
Fetched 4327 kB in 0s (31.7 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 20991 files and directories currently installed.)
Preparing to unpack .../00-libglib2.0-0_2.56.4-0ubuntu0.18.04.7_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.7) over (2.56.4-0ubuntu0.18.04.6) ...
Selecting previously unselected package libgirepository-1.0-1:amd64.
Preparing to unpack .../01-libgirepository-1.0-1_1.56.1-1_amd64.deb ...
Unpacking libgirepository-1.0-1:amd64 (1.56.1-1) ...
Selecting previously unselected package gir1.2-glib-2.0:amd64.
Preparing to unpack .../02-gir1.2-glib-2.0_1.56.1-1_amd64.deb ...
Unpacking gir1.2-glib-2.0:amd64 (1.56.1-1) ...
Selecting previously unselected package libsecret-common.
Preparing to unpack .../03-libsecret-common_0.18.6-1_all.deb ...
Unpacking libsecret-common (0.18.6-1) ...
Selecting previously unselected package libsecret-1-0:amd64.
Preparing to unpack .../04-libsecret-1-0_0.18.6-1_amd64.deb ...
Unpacking libsecret-1-0:amd64 (0.18.6-1) ...
Selecting previously unselected package gir1.2-secret-1:amd64.
Preparing to unpack .../05-gir1.2-secret-1_0.18.6-1_amd64.deb ...
Unpacking gir1.2-secret-1:amd64 (0.18.6-1) ...
Selecting previously unselected package libglib2.0-bin.
Preparing to unpack .../06-libglib2.0-bin_2.56.4-0ubuntu0.18.04.7_amd64.deb ...
Unpacking libglib2.0-bin (2.56.4-0ubuntu0.18.04.7) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../07-python3-lib2to3_3.6.9-1~18.04_all.deb ...
Unpacking python3-lib2to3 (3.6.9-1~18.04) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../08-python3-distutils_3.6.9-1~18.04_all.deb ...
Unpacking python3-distutils (3.6.9-1~18.04) ...
Selecting previously unselected package libglib2.0-dev-bin.
Preparing to unpack .../09-libglib2.0-dev-bin_2.56.4-0ubuntu0.18.04.7_amd64.deb ...
Unpacking libglib2.0-dev-bin (2.56.4-0ubuntu0.18.04.7) ...
Selecting previously unselected package libpcre16-3:amd64.
Preparing to unpack .../10-libpcre16-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre16-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre32-3:amd64.
Preparing to unpack .../11-libpcre32-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre32-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcrecpp0v5:amd64.
Preparing to unpack .../12-libpcrecpp0v5_2%3a8.39-9_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../13-libpcre3-dev_2%3a8.39-9_amd64.deb ...
Unpacking libpcre3-dev:amd64 (2:8.39-9) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../14-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Selecting previously unselected package libglib2.0-dev:amd64.
Preparing to unpack .../15-libglib2.0-dev_2.56.4-0ubuntu0.18.04.7_amd64.deb ...
Unpacking libglib2.0-dev:amd64 (2.56.4-0ubuntu0.18.04.7) ...
Selecting previously unselected package libsecret-1-dev:amd64.
Preparing to unpack .../16-libsecret-1-dev_0.18.6-1_amd64.deb ...
Unpacking libsecret-1-dev:amd64 (0.18.6-1) ...
Setting up libsecret-common (0.18.6-1) ...
Setting up libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.7) ...
No schema files found: doing nothing.
Setting up libgirepository-1.0-1:amd64 (1.56.1-1) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up gir1.2-glib-2.0:amd64 (1.56.1-1) ...
Setting up libpcrecpp0v5:amd64 (2:8.39-9) ...
Setting up libpcre32-3:amd64 (2:8.39-9) ...
Setting up libpcre16-3:amd64 (2:8.39-9) ...
Setting up python3-lib2to3 (3.6.9-1~18.04) ...
Setting up libsecret-1-0:amd64 (0.18.6-1) ...
Setting up libglib2.0-bin (2.56.4-0ubuntu0.18.04.7) ...
Setting up python3-distutils (3.6.9-1~18.04) ...
Setting up libpcre3-dev:amd64 (2:8.39-9) ...
Setting up libglib2.0-dev-bin (2.56.4-0ubuntu0.18.04.7) ...
Setting up libglib2.0-dev:amd64 (2.56.4-0ubuntu0.18.04.7) ...
Setting up gir1.2-secret-1:amd64 (0.18.6-1) ...
Setting up libsecret-1-dev:amd64 (0.18.6-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
# cd /home/<my_username>/share/doc/git/contrib/credential/libsecret
/bin/sh: 7: cd: can't cd to /home/<my_username>/share/doc/git/contrib/credential/libsecret
# cd /usr/share/doc/git/contrib/credential/libsecret
# sudo make
sudo: unable to resolve host 1fee2c616ef4
make: *** No targets specified and no makefile found. Stop.
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
It seems my instance of python3 (on a Kubuntu virtual box) asked to install meep as part of some other package installation process. That installation failed, and now every time I try to install a packages I get a meep-related installation error. For instance, this just happened today.
pel#pel-VirtualBox:~/work$ sudo apt install pipenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm9
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
python3-appdirs python3-distlib python3-filelock python3-virtualenv
python3-virtualenv-clone
The following NEW packages will be installed:
pipenv python3-appdirs python3-distlib python3-filelock python3-virtualenv
python3-virtualenv-clone
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3,465 kB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 python3-appdirs all 1.4.3-2.1 [10.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-distlib all 0.3.0-1 [116 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-filelock all 3.0.12-2 [7,948 B]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv all 20.0.17-1 [63.4 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-virtualenv-clone all 0.3.0-2 [8,696 B]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 pipenv all 11.9.0-1 [3,258 kB]
Fetched 3,465 kB in 2s (1,760 kB/s)
Selecting previously unselected package python3-appdirs.
(Reading database ... 287182 files and directories currently installed.)
Preparing to unpack .../0-python3-appdirs_1.4.3-2.1_all.deb ...
Unpacking python3-appdirs (1.4.3-2.1) ...
Selecting previously unselected package python3-distlib.
Preparing to unpack .../1-python3-distlib_0.3.0-1_all.deb ...
Unpacking python3-distlib (0.3.0-1) ...
Selecting previously unselected package python3-filelock.
Preparing to unpack .../2-python3-filelock_3.0.12-2_all.deb ...
Unpacking python3-filelock (3.0.12-2) ...
Selecting previously unselected package python3-virtualenv.
Preparing to unpack .../3-python3-virtualenv_20.0.17-1_all.deb ...
Unpacking python3-virtualenv (20.0.17-1) ...
Selecting previously unselected package python3-virtualenv-clone.
Preparing to unpack .../4-python3-virtualenv-clone_0.3.0-2_all.deb ...
Unpacking python3-virtualenv-clone (0.3.0-2) ...
Selecting previously unselected package pipenv.
Preparing to unpack .../5-pipenv_11.9.0-1_all.deb ...
Unpacking pipenv (11.9.0-1) ...
Setting up python3-filelock (3.0.12-2) ...
Setting up python3-virtualenv-clone (0.3.0-2) ...
Setting up python3-distlib (0.3.0-1) ...
Setting up python3-meep (1.12.0-2build2) ...
dpkg-query: package 'python-meep' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
Traceback (most recent call last):
File "/usr/bin/pycompile", line 289, in <module>
main()
File "/usr/bin/pycompile", line 262, in main
options.force, options.optimize, e_patterns)
File "/usr/bin/pycompile", line 154, in compile
for fn, versions_to_compile in filter_files(files, e_patterns, versions):
File "/usr/bin/pycompile", line 109, in filter_files
for fn in files:
File "/usr/share/python/debpython/files.py", line 77, in filter_out_ext
for fn in files:
File "/usr/share/python/debpython/namespace.py", line 77, in add_namespace_files
for fn in files:
File "/usr/share/python/debpython/files.py", line 69, in filter_public
for fn in files:
File "/usr/share/python/debpython/files.py", line 53, in from_package
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python-meep
dpkg: error processing package python3-meep (--configure):
installed python3-meep package post-installation script subprocess returned error exit status 1
Setting up python3-appdirs (1.4.3-2.1) ...
Setting up python3-virtualenv (20.0.17-1) ...
Setting up pipenv (11.9.0-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
python3-meep
E: Sub-process /usr/bin/dpkg returned an error code (1)
No amount of auto-removing purging or removing has had any effect. Update and upgrading have not worked. I'm at wits end. Does anyone have any suggestions short of ripping out python and reinstalling everything?
I had the same issue on my system. I have done something that is most likely not recommended. I did not have a choice except taking the risk. If you follow the procedure below, you are also taking a risk. However, the only assurance is that it worked for me.
The guilty package is python3-meep. It perhaps got upgraded without the package name being changed internally. This is where I confirmed the issue. A search revealed that the issue has been reported and fixed in Debian. It will perhaps take some time to make its way through to Ubuntu
$grep python-meep /var/lib/dpkg/info/python3-meep.*
/var/lib/dpkg/info/python3-meep.postinst: pycompile -p python-meep
/var/lib/dpkg/info/python3-meep.prerm: pyclean -p python-meep
/var/lib/dpkg/info/python3-meep.prerm: dpkg -L python-meep | grep \.py$ | while read file
So in the file
/var/lib/dpkg/info/python3-meep.postinst I replaced the occurrence of python-meep with python3-meep.
/var/lib/dpkg/info/python3-meep.prerm I replaced two occurrences of python-meep with python3-meep.
Then I could remove python3-meep
$ sudo apt-get remove python3-meep
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python3-meep
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
1 not fully installed or removed.
After this operation, 3,225 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 371161 files and directories currently installed.)
Removing python3-meep (1.12.0-2build2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
$
I would appreciate if someone points to a cleaner approach.
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
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
>