PDA

View Full Version : 16.04LTS sudo apt upgrade fails



Frank P
May 29th, 2018, 11:04 PM
When I try to run upgrade I get a series of errors. After a reboot, the first is shown below (captured with a redirect) It hangs at that point and has to be cancelled with a ctrl+z. The next retry results in a "run dpgk --configure -a" which hangs at the MySQL-server-5.7 I can add that code if it will help. Any suggestions appreciated.



Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...


Thanks
Frank

uRock
May 29th, 2018, 11:19 PM
Try running sudo apt install -f in a terminal.

Frank P
May 29th, 2018, 11:55 PM
It's all been run in a terminal
Output from sudo apt install -f



Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...


Rebooted and reran it and got this



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.


I've ran the "--configure" thing at least 25 times - after stopping services, after rebooting, etc, etc. It always fails
Any other suggestions
Thanks
Frank

QIII
May 30th, 2018, 12:25 AM
Hello!

Telling us something failed 25 times gives us little of diagnostic value.

Would you please run the command and post the output?

Cheers!

Frank P
May 30th, 2018, 12:41 AM
okay, here it is, after a reboot and then having to kill it with ctrl+c when it hung.
output from sudo dpkg --configure -a


Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...


output after it hung and was killed


dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script was interrupted
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.7
mysql-server