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
Related
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
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
Not sure what the issue is. But when I
sudo apt-get install mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql
I get the same error when I try and install nginx.
Have a raspberry pi 3 b+. sudo apt-cache search nginx turns up no results
First you should update package list:
sudo apt-get update
then:
sudo apt-get install mysql-server nginx
I already tried doing the update, but nothing happened. Then I ran sudo apt-get dist-upgrade and now I am getting nginx and mysql-server.
I have to change my databasefrom MySQL to postgreSQL in django. But postgreSQL is not installing .
Error while installing postgreSQL using commands-
sudo apt-get update && sudo apt-get upgrade
sudo apt-get purge postgresql*
sudo apt-get -f install
sudo apt-get install postgresql
At terminal-
(jango)dc#dc-comp-4:~/website$ sudo apt-get install postgresql
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 : Depends: postgresql-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
but its not working.how can i do this.and what changes i have to made. Plz help
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