MySQL update error

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Code_monkey
Level 1
Level 1
Posts: 15
Joined: Mon Aug 09, 2021 3:09 am
Location: Kenya
Contact:

MySQL update error

Post by Code_monkey »

I am updating packages and I am constatinly getting this error

E: /tmp/apt-dpkg-install-pDiApE/0-mysql-server-8.0_8.0.29-0ubuntu0.20.04.3_amd64.deb: new mysql-server-8.0 package pre-removal script subprocess returned

Code: Select all

Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 687131 files and directories currently installed.)
Preparing to unpack .../0-mysql-server-8.0_8.0.29-0ubuntu0.20.04.3_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: warning: old mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing archive /tmp/apt-dpkg-install-pDiApE/0-mysql-server-8.0_8.0.29-0ubuntu0.20.04.3_amd64.deb (--unpack):
 new mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Failed to preset unit: File mysql.service: Link has been severed
/usr/bin/deb-systemd-helper: error: systemctl preset failed on mysql.service: No such file or directory
Failed to start mysql.service: Unit mysql.service not found.
invoke-rc.d: initscript mysql, action "start" failed.
Unit mysql.service could not be found.
dpkg: error while cleaning up:
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Preparing to unpack .../1-curl_7.68.0-1ubuntu2.12_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.12) over (7.68.0-1ubuntu2.11) ...
Preparing to unpack .../2-libssl1.1_1.1.1f-1ubuntu2.15_amd64.deb ...
De-configuring libssl1.1:i386 (1.1.1f-1ubuntu2.13) ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.15) over (1.1.1f-1ubuntu2.13) ...
Preparing to unpack .../3-libssl1.1_1.1.1f-1ubuntu2.15_i386.deb ...
Unpacking libssl1.1:i386 (1.1.1f-1ubuntu2.15) over (1.1.1f-1ubuntu2.13) ...
Preparing to unpack .../4-libcurl4_7.68.0-1ubuntu2.12_amd64.deb ...
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.12) over (7.68.0-1ubuntu2.11) ...
Preparing to unpack .../5-apache2_2.4.41-4ubuntu3.12_amd64.deb ...
Unpacking apache2 (2.4.41-4ubuntu3.12) over (2.4.41-4ubuntu3.11) ...
Preparing to unpack .../6-apache2-bin_2.4.41-4ubuntu3.12_amd64.deb ...
Unpacking apache2-bin (2.4.41-4ubuntu3.12) over (2.4.41-4ubuntu3.11) ...
Preparing to unpack .../7-apache2-data_2.4.41-4ubuntu3.12_all.deb ...
Unpacking apache2-data (2.4.41-4ubuntu3.12) over (2.4.41-4ubuntu3.11) ...
Preparing to unpack .../8-apache2-utils_2.4.41-4ubuntu3.12_amd64.deb ...
Unpacking apache2-utils (2.4.41-4ubuntu3.12) over (2.4.41-4ubuntu3.11) ...
Preparing to unpack .../9-openssl_1.1.1f-1ubuntu2.15_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.15) over (1.1.1f-1ubuntu2.13) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-pDiApE/0-mysql-server-8.0_8.0.29-0ubuntu0.20.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of mysql-server-8.0:
 mysql-server-8.0 depends on mysql-server-core-8.0 (= 8.0.27-0ubuntu0.20.04.1); however:
  Version of mysql-server-core-8.0 on system is 8.0.29-0ubuntu0.20.04.3.

dpkg: error processing package mysql-server-8.0 (--configure):
 dependency problems - leaving unconfigured
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.15) ...
Setting up libssl1.1:i386 (1.1.1f-1ubuntu2.15) ...
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.12) ...
Setting up apache2-data (2.4.41-4ubuntu3.12) ...
Setting up curl (7.68.0-1ubuntu2.12) ...
Setting up openssl (1.1.1f-1ubuntu2.15) ...
Setting up apache2-utils (2.4.41-4ubuntu3.12) ...
Setting up apache2-bin (2.4.41-4ubuntu3.12) ...
Setting up apache2 (2.4.41-4ubuntu3.12) ...
Processing triggers for ufw (0.36-6ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 mysql-server-8.0
Last edited by LockBot on Sun Jan 01, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
BOA
Locked

Return to “Software & Applications”