puppet librarian Could not resolve the dependencies - puppet

I have a problem with puppet librarian resolving dependencies. When I run librarian-puppet install --verbose for this Puppetfile:
forge "https://forgeapi.puppetlabs.com"
mod "puppetlabs-java"
mod "puppetlabs-stdlib"
mod "puppetlabs-mysql"
mod "camptocamp/tomcat","0.8.7"
mod "xebialabs-xldeploy","1.2.3"
I get a error resolving dependencies. I don't know what is wrong.
Any help please?
root#tomcat1:/etc/puppet# librarian-puppet install --verbose
[Librarian] Ruby Version: 2.5.1
[Librarian] Ruby Platform: x86_64-linux-gnu
[Librarian] Rubygems Version: 2.7.6
[Librarian] Librarian Version: 0.6.4
[Librarian] Librarian Adapter: puppet
[Librarian] Librarian Adapter Version: 3.0.0
[Librarian] Project: /etc/puppet
[Librarian] Specfile: Puppetfile
[Librarian] Lockfile: Puppetfile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: 2.17.1
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
[Librarian] [:forge, "https://forgeapi.puppetlabs.com", {}]
[Librarian] Post-Cached Sources:
[Librarian] [:forge, "https://forgeapi.puppetlabs.com", {}]
[Librarian] Analyzing spec and lock:
[Librarian] Removed:
[Librarian] ExplicitRemoved:
[Librarian] Added:
[Librarian] NonMatchingAdded:
[Librarian] Changed:
[Librarian] camptocamp-tomcat
[Librarian] DeepKeep:
[Librarian] puppetlabs-java
[Librarian] puppetlabs-mysql
[Librarian] puppetlabs-stdlib
[Librarian] xebialabs-xldeploy
[Librarian] ShallowStrip:
[Librarian] camptocamp-tomcat
[Librarian] Resolving camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Checking manifests
[Librarian] Module camptocamp-tomcat found versions: 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.0, 0.17.1, 0.17.0, 0.16.5, 0.16.3, 0.16.2, 0.16.1, 0.15.0, 0.14.2, 0.14.1, 0.14.0, 0.13.9, 0.13.8, 0.13.6, 0.13.5, 0.13.4, 0.13.3, 0.13.2, 0.13.1, 0.13.0, 0.12.0, 0.11.2, 0.11.0, 0.10.5, 0.10.4, 0.10.3, 0.10.1, 0.10.0, 0.9.0, 0.8.10, 0.8.9, 0.8.8, 0.8.7, 0.8.6, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.2, 0.6.1, 0.6.0, 0.5.0, 0.0.4, 0.0.3, 0.0.2
[Librarian] Checking camptocamp-tomcat/1.2.3 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.2.3 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.2.3 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/1.2.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.2.2 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.2.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/1.2.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.2.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.2.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/1.2.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.2.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.2.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/1.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.1.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/1.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/1.0.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/1.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.17.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.17.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.17.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.17.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.17.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.17.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.16.5 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.16.5 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.16.5 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.16.3 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.16.3 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.16.3 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.16.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.16.2 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.16.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.16.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.16.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.16.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.15.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.15.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.15.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.14.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.14.2 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.14.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.14.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.14.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.14.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.14.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.14.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.14.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.9 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.9 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.9 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.8 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.8 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.8 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.6 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.6 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.6 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.5 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.5 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.5 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.4 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.4 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.4 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.3 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.3 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.3 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.2 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.13.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.13.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.13.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.12.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.12.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.12.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.11.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.11.2 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.11.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.11.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.11.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.11.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.10.5 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.10.5 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.10.5 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.10.4 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.10.4 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.10.4 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.10.3 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.10.3 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.10.3 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.10.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.10.1 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.10.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.10.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.10.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.10.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.9.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.9.0 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.9.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.8.10 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.8.10 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.8.10 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.8.9 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.8.9 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.8.9 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.8.8 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-tomcat/0.8.8 <https://forgeapi.puppetlabs.com> and camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from camptocamp-tomcat/0.8.8 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-tomcat/0.8.7 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com> at camptocamp-tomcat/0.8.7 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-tomcat (= 0.8.7) <https://forgeapi.puppetlabs.com>
[Librarian] Resolving camptocamp-archive (< 2.0.0, >= 0.3.0) <(no source specified)>
[Librarian] Checking manifests
[Librarian] Module camptocamp-archive found versions: 0.9.0, 0.8.1, 0.8.0, 0.7.5, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.2, 0.6.1, 0.6.0, 0.5.3, 0.5.2, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.6, 0.3.5, 0.3.4, 0.3.2, 0.3.1, 0.3.0, 0.2.1, 0.2.0, 0.1.3, 0.1.2, 0.1.1, 0.1.0, 0.0.1
[Librarian] Checking camptocamp-archive/0.9.0 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-archive (< 2.0.0, >= 0.3.0) <(no source specified)> at camptocamp-archive/0.9.0 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-archive (< 2.0.0, >= 0.3.0) <(no source specified)>
[Librarian] Resolving camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Checking manifests
[Librarian] Module camptocamp-systemd found versions: 2.8.0, 2.7.0, 2.6.0, 2.5.1, 2.4.0, 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.1.1, 1.1.0, 1.0.0, 0.4.0, 0.3.0, 0.2.2, 0.2.1, 0.2.0, 0.1.15, 0.1.14, 0.1.13, 0.1.12, 0.1.11, 0.1.10, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1
[Librarian] Checking camptocamp-systemd/2.8.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.8.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.8.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.7.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.7.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.7.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.6.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.6.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.6.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.5.1 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.5.1 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.5.1 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.4.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.4.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.4.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.3.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.3.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.3.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.2.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.2.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.2.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.1.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/2.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between camptocamp-systemd/2.0.0 <https://forgeapi.puppetlabs.com> and camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Backtracking from camptocamp-systemd/2.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking camptocamp-systemd/1.1.1 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)> at camptocamp-systemd/1.1.1 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved camptocamp-systemd (< 2.0.0, >= 0.1.5) <(no source specified)>
[Librarian] Resolving herculesteam-augeasproviders_core (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Checking manifests
[Librarian] Module herculesteam-augeasproviders_core found versions: 2.5.0, 2.4.0, 2.3.0, 2.2.0, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.1, 2.0.0
[Librarian] Checking herculesteam-augeasproviders_core/2.5.0 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved herculesteam-augeasproviders_core (< 3.0.0, >= 2.0.0) <(no source specified)> at herculesteam-augeasproviders_core/2.5.0 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved herculesteam-augeasproviders_core (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Resolving herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Checking manifests
[Librarian] Module herculesteam-augeasproviders_shellvar found versions: 4.0.0, 3.1.0, 3.0.0, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.1, 2.1.0, 2.0.4, 2.0.2, 2.0.1, 2.0.0
[Librarian] Checking herculesteam-augeasproviders_shellvar/4.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between herculesteam-augeasproviders_shellvar/4.0.0 <https://forgeapi.puppetlabs.com> and herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Backtracking from herculesteam-augeasproviders_shellvar/4.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking herculesteam-augeasproviders_shellvar/3.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between herculesteam-augeasproviders_shellvar/3.1.0 <https://forgeapi.puppetlabs.com> and herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Backtracking from herculesteam-augeasproviders_shellvar/3.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking herculesteam-augeasproviders_shellvar/3.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between herculesteam-augeasproviders_shellvar/3.0.0 <https://forgeapi.puppetlabs.com> and herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Backtracking from herculesteam-augeasproviders_shellvar/3.0.0 <https://forgeapi.puppetlabs.com>
[Librarian] Checking herculesteam-augeasproviders_shellvar/2.2.4 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)> at herculesteam-augeasproviders_shellvar/2.2.4 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved herculesteam-augeasproviders_shellvar (< 3.0.0, >= 2.0.0) <(no source specified)>
[Librarian] Conflict between puppetlabs-inifile (< 2.0.0, >= 1.0.0) <(no source specified)> and puppetlabs-inifile/4.1.0 <https://forgeapi.puppetlabs.com>
Could not resolve the dependencies.
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/action/persist_resolution_mixin.rb:11:in `persist_resolution'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/action/resolve.rb:32:in `run'
/var/lib/gems/2.5.0/gems/librarian-puppet-3.0.0/lib/librarian/puppet/action/resolve.rb:10:in `run'
/var/lib/gems/2.5.0/gems/librarian-puppet-3.0.0/lib/librarian/puppet/cli.rb:104:in `resolve!'
/var/lib/gems/2.5.0/gems/librarian-puppet-3.0.0/lib/librarian/puppet/cli.rb:68:in `install'
/var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
/var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
/var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
/var/lib/gems/2.5.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/cli.rb:31:in `returning_status'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/cli.rb:26:in `block in bin!'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/cli.rb:47:in `with_environment'
/var/lib/gems/2.5.0/gems/librarianp-0.6.4/lib/librarian/cli.rb:26:in `bin!'
/var/lib/gems/2.5.0/gems/librarian-puppet-3.0.0/bin/librarian-puppet:7:in `<top (required)>'
/usr/local/bin/librarian-puppet:23:in `load'
/usr/local/bin/librarian-puppet:23:in `<main>'

According to the last error, the problems appears to be that there is a conflict between required versions of inifile.
Conflict between puppetlabs-inifile (< 2.0.0, >= 1.0.0) <(no source specified)> and puppetlabs-inifile/4.1.0 <https://forgeapi.puppetlabs.com>
Try adding
mod 'puppetlabs-inifile', '1.6.0'
to the Puppetfile.
Also, I'd note that there is another conflict you'll come across with stdlib. Add
mod "puppetlabs-stdlib", "4.25.1"
to fix it.
Also, I'd strongly suggest pinning the versions of the java and mysql modules. If you don't do that, you can't guarantee you won't have more conflicts at some point in the future.

Related

Unmet dependencies error while installing npm

When I try to install npm package I am getting unmet dependencies error.
sudo apt-get install npm
I removed usr/lib/node_modules directory and try to reinstall but I am getting same error. Is there any way to handle this?
I am using linux Mint 18.3.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Just uninstall npm and download node from Node JS
Then try to install npm and node again.
I solved same dependency error with re-install.
This is happening because you have by mistake deleted python 2.7.x which is required. Just reinstall node.js and npm using this link and you should be good

Unable to update nodejs and npm on Raspbian-Raspberry Pi 3

My raspbian system is currently running Node.js v4.8.2 and am trying to install its latest version but in vain.I have tried the following solution from this post npm command not working on ubuntu (i.e uninstalling the old packages and installing new ones).When using this command sudo apt-get install -y nodejs I get this message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libiw-dev : Depends: libiw30 (= 30~pre9-8) but 30~pre9-12 is to be installed
nodejs : Conflicts: nodejs-legacy
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I also tried installing NPM directly using this command: sudo apt-get install npm but I get this message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libiw-dev : Depends: libiw30 (= 30~pre9-8) but 30~pre9-12 is to be installed
npm : Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi (>= 0.3.0-2) but it is not going to be installed
Depends: node-ansi-color-table but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 3.0.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-underscore but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Any help would be appreciated.Thanks
The problem comes from this line:
nodejs : Conflicts: nodejs-legacy
You should remove all versions of node first.
(Following commands can be referenced at raspberrypi.org's community page):
pi#raspberrypi:~ $ sudo su -
root#raspberrypi:~ # apt-get remove nodered -y
root#raspberrypi:~ # apt-get remove nodejs nodejs-legacy -y
root#raspberrypi:~ # apt-get remove npm -y # if you installed npm
Make sure you are pointed to correct source.
root#raspberrypi:~ # curl -sL https://deb.nodesource.com/setup_5.x | sudo bash -
Install, and check versions:
root#raspberrypi:~ # apt-get install nodejs -y
root#raspberrypi:~ # node -v
root#raspberrypi:~ # npm -v

Installing NPM on Ubuntu 14.0 giving python 2.7 dependency issue

I am installing npm on the ubuntu 14.0. It is already having installed python 2.7.11. It is showing the following error.
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apt-xapian-index : Depends: python:any (>= 2.7.1-0ubuntu2)
duplicity : Depends: python:any (>= 2.7.1-0ubuntu2)
gconf2 : Depends: python:any
hplip-data : Depends: python:any (>= 2.7.1-0ubuntu2)
ibus : Depends: python:any (>= 2.7.1-0ubuntu2)
ibus-pinyin : Depends: python:any (>= 2.7.1-0ubuntu2)
ibus-table : Depends: python:any (>= 2.7.1-0ubuntu2)
landscape-client-ui-install : Depends: python:any
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 2.1.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-which but it is not going to be installed
python-apt : Depends: python:any (>= 2.7.1-0ubuntu2)
python-aptdaemon : Depends: python:any (>= 2.7.1-0ubuntu2)
python-cairo : Depends: python:any (>= 2.7.1-0ubuntu2)
python-chardet : Depends: python:any (>= 2.7.1-0ubuntu2)
python-commandnotfound : Depends: python:any (>= 2.7.1-0ubuntu2)
python-crypto : Depends: python:any (>= 2.7.5-5~)
python-cupshelpers : Depends: python:any (>= 2.7.1-0ubuntu2)
python-dbus : Depends: python:any (>= 2.7.1-0ubuntu2)
python-debian : Depends: python:any (>= 2.7.1-0ubuntu2)
python-debtagshw : Depends: python:any (>= 2.7.1-0ubuntu2)
python-defer : Depends: python:any (>= 2.7.1-0ubuntu2)
python-dirspec : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gi : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gobject-2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-gtk2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-httplib2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-ibus : Depends: python:any (>= 2.7.1-0ubuntu2)
python-imaging : Depends: python:any (>= 2.7.1-0ubuntu2)
python-libxml2 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-lockfile : Depends: python:any (>= 2.7.1-0ubuntu2)
python-lxml : Depends: python:any (>= 2.7.1-0ubuntu2)
python-notify : Depends: python:any (>= 2.7.1-0ubuntu2)
python-oauthlib : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-oneconf : Depends: python:any (>= 2.7.1-0ubuntu2)
python-openssl : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pexpect : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pil : Depends: python:any (>= 2.7.1-0ubuntu2)
python-piston-mini-client : Depends: python:any (>= 2.7.1-0ubuntu2)
python-pkg-resources : Depends: python:any (>= 2.7)
Depends: python:any (< 2.8)
python-qt4 : Depends: python:any (>= 2.7.1-0ubuntu2)
python-reportlab : Depends: python:any (>= 2.7.1-0ubuntu2)
python-requests : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-samba : Depends: python:any (>= 2.7.1-0ubuntu2)
python-serial : Depends: python:any (>= 2.7.1-0ubuntu2)
python-sip : Depends: python:any (>= 2.7.1-0ubuntu2)
python-six : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-smbc : Depends: python:any (>= 2.7.1-0ubuntu2)
python-twisted-core : Depends: python:any (>= 2.7.1-0ubuntu2)
python-twisted-web : Depends: python:any (>= 2.7.1-0ubuntu2)
python-ubuntu-sso-client : Depends: python:any (>= 2.7.1-0ubuntu2)
python-urllib3 : Depends: python:any (>= 2.7.5-5~)
Depends: python:any (< 2.8)
python-xapian : Depends: python:any (>= 2.7.1-0ubuntu2)
python-xdg : Depends: python:any (>= 2.7.1-0ubuntu2)
python-zeitgeist : Depends: python:any (>= 2.7.1-0ubuntu2)
python-zope.interface : Depends: python:any (>= 2.7.1-0ubuntu2)
sessioninstaller : Depends: python:any (>= 2.7.1-0ubuntu2)
software-center : Depends: python:any (>= 2.7.1-0ubuntu2)
software-center-aptdaemon-plugins : Depends: python:any (>= 2.7.1-0ubuntu2)
totem : Depends: python:any (>= 2.7.1-0ubuntu2)
totem-plugins : Depends: python:any (>= 2.7.1-0ubuntu2)
ubuntu-sso-client-qt : Depends: python:any (>= 2.7.1-0ubuntu2)
ubuntu-system-service : Depends: python:any (>= 2.7.1-0ubuntu2)
unity : Depends: python:any
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
You might want to run 'apt-get -f install' to correct these:
Try 'apt-get -f install' with no packages
You try what it told you to do?
Try this first:
apt-get update
and then
apt-get -f install.
If that doesn't work try aptitude package manager. It gives multiple solutions and you can select one.

npm not installed in ubuntu 12.04 LTS

pp#pp-desktop:~$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: nodejs-dev
Depends: node-request but it is not going to be installed
Depends: node-mkdirp but it is not going to be installed
Depends: node-minimatch but it is not going to be installed
Depends: node-semver but it is not going to be installed
Depends: node-ini but it is not going to be installed
Depends: node-graceful-fs but it is not going to be installed
Depends: node-abbrev but it is not going to be installed
Depends: node-nopt but it is not going to be installed
Depends: node-fstream but it is not going to be installed
Depends: node-rimraf but it is not going to be installed
Depends: node-tar but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I usually install NodeJS and NPM in Ubuntu and I follow this tutorial (How To Install Using a PPA):
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
I have tried it in Ubuntu 12.04 LTS without problems.
Warning: Try to install in a clean Ubuntu.
Hope It works for you!

Install Node on Ubuntu 14.04 1and1 Virtual Server

I have a Virtual Server from 1and1 running Ubuntu 14.04. After correcting the /etc/apt/sources.list to the official ones I tried to install nodejs and npm (to install bower later). I followed the guide availabe under https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server.
Everything worked fine until I wanted to install npm. The latest version of nodejs is already installed:
root#somewhere:~# node --version
v0.10.30
When I try to install npm I get the following error:
root#somewhere:~# apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
npm : Depends: nodejs but it is not going to be installed
Depends: node-abbrev (>= 1.0.4) but it is not going to be installed
Depends: node-ansi but it is not going to be installed
Depends: node-archy but it is not going to be installed
Depends: node-block-stream but it is not going to be installed
Depends: node-fstream (>= 0.1.22) but it is not going to be installed
Depends: node-fstream-ignore but it is not going to be installed
Depends: node-github-url-from-git but it is not going to be installed
Depends: node-glob (>= 3.1.21) but it is not going to be installed
Depends: node-graceful-fs (>= 2.0.0) but it is not going to be installed
Depends: node-inherits but it is not going to be installed
Depends: node-ini (>= 1.1.0) but it is not going to be installed
Depends: node-lockfile but it is not going to be installed
Depends: node-lru-cache (>= 2.3.0) but it is not going to be installed
Depends: node-minimatch (>= 0.2.11) but it is not going to be installed
Depends: node-mkdirp (>= 0.3.3) but it is not going to be installed
Depends: node-gyp (>= 0.10.9) but it is not going to be installed
Depends: node-nopt (>= 2.1.1) but it is not going to be installed
Depends: node-npmlog but it is not going to be installed
Depends: node-once but it is not going to be installed
Depends: node-osenv but it is not going to be installed
Depends: node-read but it is not going to be installed
Depends: node-read-package-json (>= 1.1.0) but it is not going to be installed
Depends: node-request (>= 2.25.0) but it is not going to be installed
Depends: node-retry but it is not going to be installed
Depends: node-rimraf (>= 2.2.2) but it is not going to be installed
Depends: node-semver (>= 2.1.0) but it is not going to be installed
Depends: node-sha but it is not going to be installed
Depends: node-slide but it is not going to be installed
Depends: node-tar (>= 0.1.18) but it is not going to be installed
Depends: node-which but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Yes, I ran apt-get update several times. Does anybody know how to fix this?
root#somewhere:~# lsb_release -rc
Release: 14.04
Codename: trusty
A quick search yields this highly upvoted answer. In summary, first try:
sudo apt-get clean
This will clear the local cache of .deb files. I that doesn't work, try running:
sudo apt-get -f install
The -f stands for "fix broken", not force like in some other commands. This is what worked for me when I had this problem with another package, but if neither of these commands work, there's plenty of detail in that answer. Even if these fix it for you, it's a pretty interesting read.
Referring to https://askubuntu.com/questions/626383/node-package-manager-got-corrupted-in-some-way-now-it-cannot-be-installed
sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
You should get the correct package installed. I tried this on Ubuntu 16.04.

Resources