Unable to locate package postgresql "version" - postgresql

I'm having this problem while installing postgres version 11.5 on Linux Mint 19.3
sudo apt-get -y install postgresql-11.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package postgresql-11.5
E: Couldn't find any package by glob 'postgresql-11.5'
E: Couldn't find any package by regex 'postgresql-11.5'

Related

How to install postgreSQL 10.15 version on ubuntu 20.04

I want to install PostgreSQL 10.15 version on my ubuntu device,
referred below link and tried installing the same but it shows error:
https://www.postgresql.org/download/linux/ubuntu/
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package postgresql-10.15
E: Couldn't find any package by glob 'postgresql-10.15'
E: Couldn't find any package by regex 'postgresql-10.15'
for below command
sudo apt-get -y install postgresql-10.15
or for below command
sudo apt-get -y install postgresql=10.15
i get below error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '10.15' for 'postgresql' was not found

E: Unable to locate package libhdf5-103

When I run:
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103
The following appears:
Building dependency tree
Reading state information… Done
E: Unable to locate package libhdf5-103```
Am I writing wrong the command? Or missing an installation?

Install mongodb 3.4.22 community version on ubuntu 18.04

I need to install MongoDB 3.4.22 community version on ubuntu 18.04. I tired as described in the following link
How to install a specific version of MongoDB?
But it gives the following errors
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mongodb-org
E: Unable to locate package mongodb-org-server
E: Unable to locate package mongodb-org-shell
E: Unable to locate package mongodb-org-mongos
E: Unable to locate package mongodb-org-tools
Unfortunately, the version that you specifically looking for is not present in the distro for Ubuntu 18.04 (Bionic Beaver)
You can check available versions from here

Installing MySql to Raspberry Pi

I am trying to install MySQL on a Raspberry Pi 3. Currently I have Apache and PHP installed. I now need to install MySQL but when I do sudo apt-get install mysql-server php-mysql -y, I receive an error telling me that there is no such package:
E: Package 'mysql-server' has no installation candidate
Complete output:
pi#raspberrypi:/var/www/html $ sudo apt-get install mysql-server php-mysql -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
mariadb-server-10.0
E: Package 'mysql-server' has no installation candidate```
I guess using MariaDB fixes my issue.
sudo apt install mariadb-server php-mysql -y

Unable to install cfdisk

Following this guide but unable to install cfdisk.
sudo apt-get install cfdisk
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cfdisk
RPi Model B, running Raspbian
This is because the cfdisk utility is not shipped in a cfdisk package but in the util-linux package.
aptitude install util-linux