mysql gem for rails not getting installed on ubuntu 14.04 - mysql

sony#ubuntu:~$ sudo apt-get install libmysql-ruby libmysqlclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmysql-ruby
sony#ubuntu:~$ sudo apt-get install libmysqlclient-dev
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:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.35+dfsg-1ubuntu1) but 5.5.41-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt-get install ruby-mysql

Related

MySQL has problems with dependencies and not installing

i fully deleted mysql* from my Ubuntu focal. Then i reinstalled all with this commands:
sudo -i
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.11-1_all.deb
dpkg -i mysql-apt-config_0.8.11-1_all.deb
apt update
apt-get -f install -o Dpkg::Options::="--force-overwrite"
apt update
apt-get install mysql-server
And then i get this error:
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:
mysql-server : Depends: mysql-server-8.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This question from stackoverflow DOES NOT WORK FOR ME unable to install mysql on ubuntu 16.04

Mysql installation on ubuntu 16.04

I am installing mysql on Ubuntu 16
when I use :
sudo apt-get install mysql-server mysql-client
it gives me :
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client is already the newest version (5.7.18-1ubuntu16.04).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-client : Depends: mysql-community-client (= 5.7.18-1ubuntu16.04) but it is not going to be installed
mysql-server : Depends: mysql-community-server (= 5.7.18-1ubuntu16.04) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
how do I resolve this issue.

Can't remove mysql-server from Ubuntu

I've gotten into a bad state with MySQL on Ubuntu 16.04, so I attempted to remove it. I thought I successfully removed it with apt-get remove, but now whenever I do an apt-get or something I get the following:
$ sudo apt-get purge mysql-client-core-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client-core-5.5' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
Depends: mysql-client-5.7 (>= 5.7.16-0ubuntu0.16.04.1) but it is not going to be installed
Depends: mysql-common (>= 5.6.22-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
This seems to happen for any package I try to remove / install / etc. What's the best way to remove this?

Error while installing postgreSQL database

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
aptitude might be able to resolve this issue. It's a more sophisticated dependency management tool than apt-get.
You may install it with apt-get:
sudo apt-get install aptitude
You may use aptitude to install postgresql
sudo aptitude install postgresql-9.3
If aptitude encounters any problems it automatically devises a possible solution to install this package. Be aware that aptitude might suggest remove conflicting packages. So if you get prompted by aptitude please read the prompt carefully.

Unable to install libjpeg-turbo8-dev on Ubuntu

I tried to install libjpeg-turbo8-dev like this.
feng#HP:~$ sudo apt-get install libjpeg-turbo8-dev
[sudo] password for feng:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
kde-l10n-engb libasn1-8-heimdal:i386 libasound2:i386 libasyncns0:i386
libaudio2:i386 libavahi-client3:i386 libavahi-common-data:i386
{***many packages***}
libxml2:i386 libxmu6:i386 libxrender1:i386 libxt6:i386
libxxf86vm1:i386 mysql-common openjdk-7-jre-lib
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libjpeg-turbo8-dev
0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded.
1 not fully installed or removed.
Need to get 0 B/420 kB of archives.
After this operation, 1 219 kB of additional disk space will be used.
(Reading database ... 261347 files and directories currently installed.)
Unpacking libjpeg-turbo8-dev:amd64 (from .../libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb (--unpack):
trying to overwrite '/usr/include/jmorecfg.h', which is also in package libjpeg-turbo-devel 1.3.0-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libjpeg-turbo8-dev_1.3.0-0ubuntu1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My Ubuntu is 13.10
I want to install libjpeg-turbo8-dev, because I want to install mysql-server and mysql-client. Thet depends on this package.
feng#HP:~$ sudo apt-get install mysql-server mysql-client
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:
libjpeg8-dev : Depends: libjpeg-turbo8-dev (>= 1.1.90+svn722-1ubuntu6) but it is not going to be installed
mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
What you could try is to install the synaptic package manager:
sudo apt-get install synaptic
Here is someone who had a similar problem with the java runtime. Maybe this can help you if synaptic doesn't.
Otherwise I am not sure if you do really need the dev package...