• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Issue Upgrading to MySQL 5.7 fails

PluginDB

New Pleskian
Hello! I tried to upgrade to MySQL 5.7 today due to missing functions in 5.6 but It can't seem to install the packages

first I got the sources using the debian package

Code:
# wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb

# dpkg -i mysql-apt-config_0.7.3-1_all.deb

Then I installed the community server:

Code:
# apt-get install mysql-community-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  mysql-community-server
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
5 not fully installed or removed.
Need to get 54.9 MB of archives.
After this operation, 176 MB of additional disk space will be used.
Get:1 http://repo.mysql.com/apt/debian/ wheezy/mysql-5.7 mysql-community-server amd64 5.7.19-1debian7 [54.9 MB]
Fetched 54.9 MB in 4s (11.7 MB/s)
Preconfiguring packages ...
(Reading database ... 149660 files and directories currently installed.)
Unpacking mysql-community-server (from .../mysql-community-server_5.7.19-1debian7_amd64.deb) ...
................
dpkg: error processing /var/cache/apt/archives/mysql-community-server_5.7.19-1debian7_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-community-server_5.7.19-1debian7_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is the part where it always fails. Nothing found on the Internet, any advice?
 
Have you tried

# rm -f /var/lib/mysql/debian-*.flag

?
 
Back
Top