Preparing to unpack .../0-mysql-client-core-5.7_5.7.18-0ubuntu0.17.04.1_amd64.deb ... Unpacking mysql-client-core-5.7 (5.7.18-0ubuntu0.17.04.1) ... Selecting previously unselected package mysql-client-5.7. Preparing to unpack .../1-mysql-client-5.7_5.7.18-0ubuntu0.17.04.1_amd64.deb ... Unpacking mysql-client-5.7 (5.7.18-0ubuntu0.17.04.1) ... Selecting previously unselected package mysql-server-core-5.7. Preparing to unpack .../2-mysql-server-core-5.7_5.7.18-0ubuntu0.17.04.1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.18-0ubuntu0.17.04.1) ... Selecting previously unselected package libevent-core-2.0-5:amd64. Preparing to unpack .../3-libevent-core-2.0-5_2.0.21-stable-3_amd64.deb ... Unpacking libevent-core-2.0-5:amd64 (2.0.21-stable-3) ... Selecting previously unselected package mysql-server-5.7. Preparing to unpack .../4-mysql-server-5.7_5.7.18-0ubuntu0.17.04.1_amd64.deb ... Aborting downgrade from (at least) 10.1 to 5.7. If are sure you want to downgrade to 5.7, remove the file /var/lib/mysql/debian-*.flag and try installing again. dpkg: error processing archive /tmp/apt-dpkg-install-CyIjq6/4-mysql-server-5.7_5.7.18-0ubuntu0.17.04.1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1