Tidy HTML5 & PHP7 - html

So I am on an Ubuntu server at Digital Ocean and I'm trying to install/configure Tidy HTML5 with my current PHP7 Wordpress installation and W3 Total Cache.
However even though I've installed Tidy with the following commands:
sudo apt-get remove libtidy-0.99-0 tidy -y
sudo wget -O /tmp/tidy-5.2.0-64bit.deb http://binaries.html-tidy.org/binaries/tidy-5.2.0/tidy-5.2.0-64bit.deb
sudo dpkg -i /tmp/tidy-5.2.0-64bit.deb
sudo rm /tmp/tidy-5.2.0-64bit.deb
And it even says that it is at Version 5.2.0, yet it doesn't seem to be loaded/installed.
rafael#wordpress-staging:~$ php --ini
Configuration File (php.ini) Path: /etc/php/7.0/cli
Loaded Configuration File: /etc/php/7.0/cli/php.ini
Scan for additional .ini files in: /etc/php/7.0/cli/conf.d
Additional .ini files parsed: /etc/php/7.0/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/15-xml.ini,
/etc/php/7.0/cli/conf.d/20-apcu.ini,
/etc/php/7.0/cli/conf.d/20-bz2.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
/etc/php/7.0/cli/conf.d/20-curl.ini,
/etc/php/7.0/cli/conf.d/20-dom.ini,
/etc/php/7.0/cli/conf.d/20-exif.ini,
/etc/php/7.0/cli/conf.d/20-fileinfo.ini,
/etc/php/7.0/cli/conf.d/20-ftp.ini,
/etc/php/7.0/cli/conf.d/20-gd.ini,
/etc/php/7.0/cli/conf.d/20-gettext.ini,
/etc/php/7.0/cli/conf.d/20-gmp.ini,
/etc/php/7.0/cli/conf.d/20-iconv.ini,
/etc/php/7.0/cli/conf.d/20-json.ini,
/etc/php/7.0/cli/conf.d/20-mbstring.ini,
/etc/php/7.0/cli/conf.d/20-mysqli.ini,
/etc/php/7.0/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.0/cli/conf.d/20-phar.ini,
/etc/php/7.0/cli/conf.d/20-posix.ini,
/etc/php/7.0/cli/conf.d/20-pspell.ini,
/etc/php/7.0/cli/conf.d/20-readline.ini,
/etc/php/7.0/cli/conf.d/20-recode.ini,
/etc/php/7.0/cli/conf.d/20-shmop.ini,
/etc/php/7.0/cli/conf.d/20-simplexml.ini,
/etc/php/7.0/cli/conf.d/20-soap.ini,
/etc/php/7.0/cli/conf.d/20-sockets.ini,
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.0/cli/conf.d/20-sysvsem.ini,
/etc/php/7.0/cli/conf.d/20-sysvshm.ini,
/etc/php/7.0/cli/conf.d/20-tokenizer.ini,
/etc/php/7.0/cli/conf.d/20-wddx.ini,
/etc/php/7.0/cli/conf.d/20-xmlreader.ini,
/etc/php/7.0/cli/conf.d/20-xmlrpc.ini,
/etc/php/7.0/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.0/cli/conf.d/20-xsl.ini,
/etc/php/7.0/cli/conf.d/20-zip.ini
rafael#wordpress-staging:~$ tidy -v
HTML Tidy for Linux version 5.2.0
Am I missing something here? Or doesn't HTML Tidy work with PHP7? Because I've installed HTML Tidy with the above mentioned commands without any problem on a PHP5.6 installation just fine recently.
Either way thanks for any suggestions or information.
Edit:
I've removed Tidy completely, installed the original from 2009, still not detected, then removed it again and installed the latest version again but yet again it's still not being detected:
rafael#wordpress-staging:~$ sudo apt-get install tidy
Reading package lists... Done
Building dependency tree
Reading state information... Done
tidy is already the newest version (20091223cvs-1.5).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
tidy : Depends: libtidy-0.99-0 (>= 20091223cvs-1.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
rafael#wordpress-staging:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libtidy-0.99-0
The following NEW packages will be installed:
libtidy-0.99-0
0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
1 not fully installed or removed.
Need to get 0 B/120 kB of archives.
After this operation, 419 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 120416 files and directories currently installed.)
Preparing to unpack .../libtidy-0.99-0_20091223cvs-1.5_amd64.deb ...
Unpacking libtidy-0.99-0 (20091223cvs-1.5) ...
Setting up libtidy-0.99-0 (20091223cvs-1.5) ...
Setting up tidy (20091223cvs-1.5) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
rafael#wordpress-staging:~$ sudo apt-get -y autoremove tidy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libtidy-0.99-0 tidy
0 upgraded, 0 newly installed, 2 to remove and 59 not upgraded.
After this operation, 505 kB disk space will be freed.
(Reading database ... 120421 files and directories currently installed.)
Removing tidy (20091223cvs-1.5) ...
Removing libtidy-0.99-0 (20091223cvs-1.5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
rafael#wordpress-staging:~$ sudo wget -O /tmp/tidy-5.2.0-64bit.deb http://binaries.html-tidy.org/binaries/tidy-5.2.0/tidy-5.2.0-64bit.deb
--2017-02-22 20:15:50-- http://binaries.html-tidy.org/binaries/tidy-5.2.0/tidy-5.2.0-64bit.deb
Resolving binaries.html-tidy.org (binaries.html-tidy.org)... 151.101.64.133, 151.101.128.133, 151.101.192.133, ...
Connecting to binaries.html-tidy.org (binaries.html-tidy.org)|151.101.64.133|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 727594 (711K) [application/octet-stream]
Saving to: ‘/tmp/tidy-5.2.0-64bit.deb’
/tmp/tidy-5.2.0-64bit.deb 100%[==============================================>] 710.54K --.-KB/s in 0.007s
2017-02-22 20:15:50 (100 MB/s) - ‘/tmp/tidy-5.2.0-64bit.deb’ saved [727594/727594]
rafael#wordpress-staging:~$ sudo dpkg -i /tmp/tidy-5.2.0-64bit.deb
Selecting previously unselected package tidy.
(Reading database ... 120410 files and directories currently installed.)
Preparing to unpack /tmp/tidy-5.2.0-64bit.deb ...
Unpacking tidy (5.2.0) ...
Setting up tidy (5.2.0) ...
Processing triggers for man-db (2.7.5-1) ...
rafael#wordpress-staging:~$ sudo rm /tmp/tidy-5.2.0-64bit.deb
rafael#wordpress-staging:~$ tidy -v
HTML Tidy for Linux version 5.2.0
rafael#wordpress-staging:~$ sudo service apache2 restart
Am I really missing something here?

Related

Raspberry Pi4, mariadb install, mysql comand not found problem

HI Folks I have installed mariadb on a raspberry pi using pip3 and a wheel package. I don't have internet access on the pi so had to do a pip download with dependencies on another machine and copy it across. When I do a 'pip3 show mariadb' command, I get the following:
Version: 1.0.7
Summary: Python MariaDB extension
Home-page: https://www.github.com/mariadb-corporation/mariadb-connector-python
Author: Georg Richter
Author-email: None
License: LGPL 2.1
Location: /home/pi/.local/lib/python3.7/site-packages
Requires:
Required-by:
From this I assume that it installed ok but I can't seem to run it using the 'mysql -u root -p' command. I get a 'mysql: command not found' error. Do I have to edit my PATH and if so how can I find the path to the application? I have done a full file search for 'mysql' but only get a couple of files that I know what they are, but they are not the main application.
This is how I installed mariadb:
pi#PTGM2:~/mariadb-deps $ pip3 install mariadb-1.0.7-cp37-cp37m-linux_armv7l.whl -f ./ --no-index --no-deps
Looking in links: ./
Processing ./mariadb-1.0.7-cp37-cp37m-linux_armv7l.whl
Installing collected packages: mariadb
Successfully installed mariadb-1.0.7
From a file I created like this :
pi#PiMainServer:~ $ pip download mariadb -d '/home/pi/mariadb-deps'
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting mariadb
Downloading https://www.piwheels.org/simple/mariadb/mariadb-1.0.7-cp37-cp37m-l inux_armv7l.whl (235 kB)
|████████████████████████████████| 235 kB 100 kB/s
Saved ./mariadb-deps/mariadb-1.0.7-cp37-cp37m-linux_armv7l.whl
Successfully downloaded mariadb
It seems I was just installing the connector, so I have managed to get the mariadb-server deb file, but when I try to install it, I get an error that it requires mariadb-server-10.3! I thought I was installing mariadb-server-10.3???
This is what I get:
pi#PTGM2:/var/cache/apt/archives $ sudo dpkg -i mariadb-server_1%3a10.3.29-0+deb10u1_all.deb
(Reading database ... 160964 files and directories currently installed.)
Preparing to unpack mariadb-server_1%3a10.3.29-0+deb10u1_all.deb ...
Unpacking mariadb-server (1:10.3.29-0+deb10u1) over (1:10.3.29-0+deb10u1) ...
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.3 (>= 1:10.3.29-0+deb10u1); however:
Package mariadb-server-10.3 is not installed.
dpkg: error processing package mariadb-server (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mariadb-server
Ok, now I have installed mysql-common, mariadb-common and the connector, but I still get an error:
pi#PTGM2:/var/cache/apt/archives $ sudo dpkg -i mariadb-common_1%3a10.3.29-0+deb 10u1_all.deb
Selecting previously unselected package mariadb-common.
(Reading database ... 160988 files and directories currently installed.)
Preparing to unpack mariadb-common_1%3a10.3.29-0+deb10u1_all.deb ...
Unpacking mariadb-common (1:10.3.29-0+deb10u1) ...
Setting up mariadb-common (1:10.3.29-0+deb10u1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf ( my.cnf) in auto mode
pi#PTGM2:/var/cache/apt/archives $ sudo dpkg -i libmariadb3_1%3a10.3.29-0+deb10u 1_armhf.deb
(Reading database ... 160993 files and directories currently installed.)
Preparing to unpack libmariadb3_1%3a10.3.29-0+deb10u1_armhf.deb ...
Unpacking libmariadb3:armhf (1:10.3.29-0+deb10u1) over (1:10.3.29-0+deb10u1) ...
Setting up libmariadb3:armhf (1:10.3.29-0+deb10u1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
pi#PTGM2:/var/cache/apt/archives $ sudo dpkg -i mariadb-server_1%3a10.3.29-0+deb 10u1_all.deb
(Reading database ... 160993 files and directories currently installed.)
Preparing to unpack mariadb-server_1%3a10.3.29-0+deb10u1_all.deb ...
Unpacking mariadb-server (1:10.3.29-0+deb10u1) over (1:10.3.29-0+deb10u1) ...
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.3 (>= 1:10.3.29-0+deb10u1); however :
Package mariadb-server-10.3 is not installed.
dpkg: error processing package mariadb-server (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mariadb-server

How to prevent MariaDB to install when installing MySQL-Server?

I am trying to install MySQL Server in a Debian 9 installation and apt-get insists to install this mariadb-client-10.1 through:
sudo apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libmecab2 libtext-template-perl mecab-ipadic mecab-ipadic-utf8 mecab-utils
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
default-mysql-client default-mysql-server mariadb-client-10.1
mariadb-server-10.1
Suggested packages:
mailx mariadb-test netcat-openbsd tinyca
The following NEW packages will be installed:
default-mysql-client default-mysql-server mariadb-client-10.1
mariadb-server-10.1 mysql-client mysql-server
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,748 B/11.2 MB of archives.
After this operation, 125 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.jaist.ac.jp/debian stretch/main amd64 default-mysql- client all 1.0.2 [3,050 B]
Get:2 http://ftp.jaist.ac.jp/debian stretch/main amd64 mysql-client amd64 5.5.9999+default [1,698 B]
Fetched 4,748 B in 0s (92.8 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mariadb-client-10.1.
(Reading database ... 290851 files and directories currently installed.)
Preparing to unpack .../0-mariadb-client-10.1_10.1.26-0+deb9u1_amd64.deb ...
Unpacking mariadb-client-10.1 (10.1.26-0+deb9u1) ...
Selecting previously unselected package mariadb-server-10.1.
Preparing to unpack .../1-mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb ...
Unpacking mariadb-server-10.1 (10.1.26-0+deb9u1) ...
Selecting previously unselected package default-mysql-client.
Preparing to unpack .../2-default-mysql-client_1.0.2_all.deb ...
Unpacking default-mysql-client (1.0.2) ...
Selecting previously unselected package default-mysql-server.
Preparing to unpack .../3-default-mysql-server_1.0.2_all.deb ...
Unpacking default-mysql-server (1.0.2) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../4-mysql-client_5.5.9999+default_amd64.deb ...
Unpacking mysql-client (5.5.9999+default) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../5-mysql-server_5.5.9999+default_amd64.deb ...
Unpacking mysql-server (5.5.9999+default) ...
Setting up mariadb-client-10.1 (10.1.26-0+deb9u1) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up mariadb-server-10.1 (10.1.26-0+deb9u1) ...
Setting up default-mysql-client (1.0.2) ...
Setting up default-mysql-server (1.0.2) ...
Setting up mysql-server (5.5.9999+default) ...
Setting up mysql-client (5.5.9999+default) ...
Processing triggers for systemd (232-25+deb9u4) ...
Is there any way I can install only MySQL-server? Or that MariaDB thing must be installed? Thanks in advance.
you go to http://repo.mysql.com/ and choose a version
I have debian 9 so I choose
wget http://repo.mysql.com/mysql-apt-config_0.8.15-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
Then you will be asked what you desire to install ... you say mysql Server
then you go as usual ...
sudo apt update
sudo apt install mysql-server
and the rest you know probably ...

Raspbian - dpkg error when trying to install mysql-server

I'm running a lighttpd web server on my Raspberry Pi and I'm trying to add php and mysql support. I'm currently trying to install mysql-server with the command
'sudo apt-get install mysql-server'
which results in the following error:
[my user name]#raspberrypi:~ $ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1 libhtml-template-perl mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
libaio1 libhtml-template-perl mysql-server mysql-server-5.5
mysql-server-core-5.5
0 upgraded, 5 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/4,938 kB of archives.
After this operation, 46.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
libaio1 mysql-server-core-5.5 mysql-server-5.5 libhtml-template-perl
mysql-server
Install these packages without verification? [y/N] y
Preconfiguring packages ...
Selecting previously unselected package libaio1:armhf.
(Reading database ... 121517 files and directories currently installed.)
Preparing to unpack .../libaio1_0.3.110-1_armhf.deb ...
Unpacking libaio1:armhf (0.3.110-1) ...
Selecting previously unselected package mysql-server-core-5.5.
Preparing to unpack .../mysql-server-core-5.5_5.5.52-0+deb8u1_armhf.deb ...
Unpacking mysql-server-core-5.5 (5.5.52-0+deb8u1) ...
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_armhf.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_armhf.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../libhtml-template-perl_2.95-1_all.deb ...
Unpacking libhtml-template-perl (2.95-1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.52-0+deb8u1_all.deb ...
Unpacking mysql-server (5.5.52-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I know the same problem was reported here:
https://raspberrypi.stackexchange.com/questions/28312/raspberry-pi-2-installing-mysql-server
But the solution in that case seemed to be enabling the loopback interface. In my case, the loopback interface is working fine but that doesn't solve my problem.
ifconfig output:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1096 errors:0 dropped:0 overruns:0 frame:0
TX packets:1096 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91408 (89.2 KiB) TX bytes:91408 (89.2 KiB)
I tried the following commands, repeatedly, with no result:
'sudo apt-get -f install'
'sudo apt-get autoremove'
'sudo apt-get autoclean'
'sudo apt-get update'
'sudo apt-get upgrade'
'sudo dpkg --configure -a'
The problem is in the preinstall script. It should install perfectly. You have some options here:
1) Open a bug at Debian Bug Tracking System (BTS). Make sure you are using the latest version.
2) Try to fix it by yourself.
If you decide to go with 2), you want to make this script verbose, so, edit a file name /var/lib/dpkg/info/mysql-server-5.5_5.5.52-0*.preinst
Then replace the initial line from:
#!/bin/sh
to
#!/bin/sh -x
Then, call # apt-get install -f and see the new log messages
Try with:
sudo apt-get autoremove --purge <package>

Install Apache on Debian VPS & unmet dependencies error

I have a VPS and it runs on Debian GNU/Linux 8 (jessie). I try to install Apache, PHP, and MySQL on it. I get the below error:
The following packages have unmet dependencies:
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).
When I run apt-get -f install, i get below error:
Preconfiguring packages ...
(Reading database ... 39521 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have basic knowledge of Linux, so any suggestion or help. I search online and try to uninstall and remove and reinstall MySQL... but no luck.
from you error output i did a quick apt-cache search to see the version numbers of mysql-server
from what i seen you might have installed mariadb-server-10.0 installed instead of mysql-server
do a dpkg -l | grep mysql and look at the results. you could also try dpkg -l | grep server and look at that output also.
ADDED COMMENT-
did you remove the file that it's asking you to do?
if you need to have both db-servers running i would follow along with this
https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server
if you don't need both dbs, then i would apt-get remove mariadb-.. from your server and then apt-get -f install to get mysql-server installed

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...