Jump to content

Installing LIGHTTPD, MYSQL etc does not work


vaid

Recommended Posts

Hi guys.

 

I'm trying to install Lighttpd, MySQL and a few other things, but it won't work.

 

I'm following the instructions found here: https://www.howtoforge.com/tutorial/install-lighttpd-with-php-fpm-and-mysql-on-debian/

 

Does anyone have experience in this?

 

For example; running the command

apt-get install mysql-server mysql-client

gives me the following output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
mysql-client is already the newest version.
mysql-server is already the newest version.
You might want to run 'apt-get -f install' to correct these:
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).

I try to run the suggested command

apt-get -f install

but I get the following results

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libreadline5 mariadb-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  mysql-server-5.5
Suggested packages:
  mailx tinyca
Recommended packages:
  libhtml-template-perl
The following NEW packages will be installed:
  mysql-server-5.5
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/1,620 kB of archives.
After this operation, 29.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 51511 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.47-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.47-0+deb8u1_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-5.5_5.5.47-0+deb8u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any suggestions on how I can fix this?

Link to comment
Share on other sites

Man, apt-get generously offers a tip what to do.

 

If you havn't done meanwhile, do the 'apt-get autoremove', and then go on with your 'apt-get install mysql-server mysql-client'

 

MariaDB and MySQL are similar (MariaDB is a fork of MySQL), so the mariadb-common blocks the installation of MySQL.

 

I'm 99% sure that this solves the "problem".

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines