how to install mongodb specific version? - mongodb

hi i want to install mongodb version 3.6.8 in my computer i follow mongodb official documentary but i got a error
sudo apt-get install -y mongodb-org=3.6.8 mongodb-org-server=3.6.8 mongodb-org-shell=3.6.8 mongodb-org-mongos=3.6.8 mongodb-org-tools=3.6.8
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:
mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.

Related

Error while upgrading Ubuntu from 16.04 to 18.04, GCC-6-base

I'm trying to upgrade my Ubuntu from 16.04 to 18.04, while doing
sudo apt update
&
sudo apt upgrade
and keep getting
The following packages have been kept back: GCC-6-base
I tried to install, upgrade and remove this package but keep getting
The following packages have unmet dependencies: libgail-common:
Depends: libgail18 (= 2.24.30-1ubuntu1.16.04.2) but it is not going to
be installed libgcc1: Depends: GCC-6-base (= 6.0.1-0ubuntu1) but
6.3.0-21ubuntu1~16.04.york0 is to be installed libwxgtk3.0-0v5: Depends: libgl1-mesa-glx but it is not going to be installed or
libgl1
Depends: libgtk2.0-0 (>= 2.24.0) but it is not going to be installed E: Error, pkgProblemResolver:: Resolve generated breaks,
this may be caused by held packages.

install postgresql on ubuntu 19.10

I'm trying to install postgresql on ubuntu 19.10 (Eoan). I've tried many ways but it seems that even the newest version of postgresql (12) is not supported.
Does anyone know if it can be installed in some way?
this is the error I get when I'm trying to install, for example, postgresql 11:
$ sudo apt-get install postgresql-11
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:
postgresql-11 : Depends: postgresql-client-11
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Try this:
https://askubuntu.com/a/1074728
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55

Not able to download the mongodb dependencies

Getting the below error tried every command to download the dependency but still not able to download it
Please refer to the log here. These are the logs for installing mongodb by using the command sudo apt-get install mongodb
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:
mongodb : Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installed
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
mongodb-org-shell : Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Depends: postgresql-client-10 but it is not going to be installed on Ubuntu 17.04

I am trying to install Postgres 10 on ubuntu 17.04 but i am getting this error
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:
postgresql-10 : Depends: postgresql-client-10 but it is not going to be installed
Depends: libicu60 (>= 60.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.1 (>= 1.1.0) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The thing is I've googled it and only found a few, the only solution that i got is to upgrade my ubuntu which i don't have the permission to do.
Is there any way to get around this issue?

i want to install nodejs in ubuntu, I installed nodejs and checked its version, it works correctly but npm is not getting installed properly

i have installed nodejs using the command :
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
after that i have checked its version and it shows :
v7.10.1
but when i checked the npm version using npm -v, it shows error
/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:6
let url
^^^
SyntaxError: Unexpected strict mode reserved word
at Module._compile (module.js:437:25)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous>
(/usr/local/lib/node_modules/npm/node_modules/npm-registry-
client/lib/access.js:5:11)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
for installing npm i have used command : sudo apt-get install npm, the it shows like this
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: 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.
Try this
update apt-get update
get install script and pass it to execute:
curl -sL https://deb.nodesource.com/setup_7.x | bash
and install node apt-get install nodejs
confirm that it was successful node -v npm installs automatically npm -v
Note - don't use apt-get install -y nodejs instead use apt-get install nodejs which will install specified node version and npm automatically.
I hope this will resolve your problem. I have done the above steps and updated successfully without any issues. If you have any issues or doubts let me know.
When you try to install a package what depends of other packages with apt-get, apt-get only tries to install the most important package, apt-get do not install the dependencies. So, there is another package manager like apt-get, called aptitude, what installs package and the dependencies. So you may do something like this:
sudo aptitude install npm