Skip to main content
3 of 7
format your text correctly. check https://unix.stackexchange.com/editing-help for help

Errors during `apt-get upgrade`

How can I solve this problem?

root@ip-*******:/# apt-get upgrade 
Reading package lists... Done    
Building dependency tree    
Reading state information... Done    
Calculating upgrade... Done    
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] y    
Setting up mysql-community-server (5.7.19-1ubuntu16.04) ...    
Job for mysql.service failed because the control process exited with error code.    
See "systemctl status mysql.service" and "journalctl -xe" for details.    
invoke-rc.d: initscript mysql, action "start" failed.
    ● mysql.service - MySQL Community Server    
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor reset: enabled)    
   Active: activating (auto-restart) (Result: exit-code) since Fri 2017-09-01 12:16:18 UTC; 4ms ago    
   Main PID: 16929 (code=exited, status=0/SUCCESS)    
dpkg: error processing package mysql-community-server (--configure):    
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-community-server (= 5.7.19-1ubuntu16.04);   however:
  Package mysql-community-server is not configured yet.    
dpkg: error processing package mysql-server (--configure):    
 dependency problems - leaving unconfigured    
No apport report written because the error message indicates its a followup error from a previous failure.    
Errors were encountered while processing:
 mysql-community-server
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

And also all <sudo apt-get * >same error.

Do Yeop
  • 31
  • 1
  • 1
  • 3