How to install postgreSQL 10.15 version on ubuntu 20.04 - postgresql

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

Related

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

Unable to locate package postgresql "version"

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'

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

how to resolve unmet dependencies in ubuntu(16.04)?

i install libstdc++.so.6.0.9 then after this my ubuntu give this error
latitude$sudo apt-get upgrade
Reading package lists... Done
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:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Unmet dependencies. Try using -f.
And when I run
asad#asad-Latitude-E7440:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
will sort your message for analyzing, met the same situation
$ sudo apt-get -f install
Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... failed.
The following packages have unmet dependencies:
libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.9) but 5.4.0-6ubuntu1~16.04.5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
at first, you can run the command
sudo dpkg --force-depends --remove libstdc++6
and then download the latest libstdc++6 and install it
BTW, you can search the latest libstdc++6 from the below link? https://launchpad.net/ubuntu/xenial/amd64?text=libstdc%2B%2B6
wget http://launchpadlibrarian.net/385645739/libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb
sudo dpkg --force-depends -i libstdc++6_5.4.0-6ubuntu1~16.04.11_amd64.deb
finally, you can run
sudo apt-get -f install
Thanks any one .My problem has solved.I m giving here for anyone who will have this problem. Solution is
sudo aptitude purge libstdc++6
Recently, I was trying to install an application on Ubuntu 18.04 where I faced this issue. I went through a lot of troubleshoots and finally, one of the methods helped me.
Once I got the dependency error, I used the command $sudo apt-get install aptitude. Then I installed the application through aptitude command. The syntax is
$sudo aptitude install app_name.
To my surprise, my required app got installed.
My doubt is that, will this method work for all the unmet dependencies error and for all applications?

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