Unable to install cfdisk - command-line

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

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

facing issue in cython on raspberrypi

I am trying to install the tensorflow dependencies .One of the codes is:
$ sudo apt-get install liblapack-dev cython
and i got an error:
E: Package 'cython' has no installation candidate
the cython package has been updated to cython3. And i was able to install it successfully.

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 apt install python-pybind11?

I see form my project document that I need to install python-pybind11 by using
sudo apt -y install python-pybind11
but I got error like this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pybind11
I'm not sure if python-pybind11 is a valid package, where can I check it?
Use this to install pybind11:
pip install pybind11
Refer from Here.
In Ubuntu 18.04
apt-get install python-pybind11
On Mac,
brew install pybind11
In Ubuntu 16.04, you'll need to install yourself. One way is as follows:
# Some prerequisites (but not all of them)
apt-get install cmake
pip3 install pytest
# Clone, build and install
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build
cd build
cmake ..
make install
Reference
In some systems, you may need
sudo apt -y install python3-pybind11