Skip to content

Instantly share code, notes, and snippets.

@cortix
Created December 14, 2014 01:43
Show Gist options
  • Save cortix/b1939dea452ea34e0874 to your computer and use it in GitHub Desktop.
Save cortix/b1939dea452ea34e0874 to your computer and use it in GitHub Desktop.
login as: root
root@178.62.216.84's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-37-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sat Dec 13 19:45:00 EST 2014
System load: 0.08 Processes: 84
Usage of /: 10.7% of 19.56GB Users logged in: 1
Memory usage: 85% IP address for eth0: 178.62.216.84
Swap usage: 0%
Graph this data and manage this system at:
https://landscape.canonical.com/
Last login: Sat Dec 13 18:46:46 2014 from 176.240.47.91
root@berkademconsulting:~# ps ax | grep mysql
13609 pts/0 S+ 0:00 grep --color=auto mysql
root@berkademconsulting:~# sudo service mysql start
start: Job failed to start
root@berkademconsulting:~# sudo /etc/init.d/mysql start
* Starting MySQL database server mysqld [fail]
root@berkademconsulting:~# sudo apt-get install --reinstall mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 61 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for mysql-server:amd64
root@berkademconsulting:~# sudo apt-get purge mysql-server-core mysql-server-core-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-server-core-5.5' instead of 'mysql-server-core'
The following packages were automatically installed and are no longer required:
libaio1 libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-client-core-5.5 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mysql-server* mysql-server-5.5* mysql-server-core-5.5*
0 upgraded, 0 newly installed, 3 to remove and 61 not upgraded.
2 not fully installed or removed.
After this operation, 52.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 92790 files and directories currently installed.)
Removing mysql-server (5.5.40-0ubuntu0.14.04.1) ...
Removing mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Purging configuration files for mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Removing mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
root@berkademconsulting:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 3 newly installed, 0 to remove and 61 not upgraded.
Need to get 0 B/5,204 kB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package mysql-server-core-5.5.
(Reading database ... 92612 files and directories currently installed.)
Preparing to unpack .../mysql-server-core-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-5.5.
Preparing to unpack .../mysql-server-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.40-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-server (5.5.40-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
141213 20:41:27 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 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.
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@berkademconsulting:~# sudo apt-get clean
root@berkademconsulting:~# sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@berkademconsulting:~# sudo apt-get purge mysql-server*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-server-core-5.0' for regex 'mysql-server*'
Note, selecting 'mysql-server-core-5.1' for regex 'mysql-server*'
Note, selecting 'mysql-server-core-5.5' for regex 'mysql-server*'
Note, selecting 'mysql-server-core-5.6' for regex 'mysql-server*'
Note, selecting 'mysql-server-5.0' for regex 'mysql-server*'
Note, selecting 'mysql-server-5.1' for regex 'mysql-server*'
Note, selecting 'mysql-server-5.5' for regex 'mysql-server*'
Note, selecting 'mysql-server-5.6' for regex 'mysql-server*'
Note, selecting 'virtual-mysql-server-core' for regex 'mysql-server*'
Note, selecting 'mysql-server' for regex 'mysql-server*'
Note, selecting 'mysql-server-core' for regex 'mysql-server*'
Note, selecting 'virtual-mysql-server' for regex 'mysql-server*'
Package 'mysql-server-5.1' is not installed, so not removed
Package 'mysql-server-core-5.1' is not installed, so not removed
Package 'mysql-server-5.0' is not installed, so not removed
Package 'mysql-server-core-5.0' is not installed, so not removed
Note, selecting 'mysql-server-core-5.5' instead of 'mysql-server-core'
Package 'mysql-server-5.6' is not installed, so not removed
Package 'mysql-server-core-5.6' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libaio1 libdbd-mysql-perl libdbi-perl libmysqlclient18 libterm-readkey-perl
mysql-client-5.5 mysql-client-core-5.5 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mysql-server* mysql-server-5.5* mysql-server-core-5.5*
0 upgraded, 0 newly installed, 3 to remove and 61 not upgraded.
2 not fully installed or removed.
After this operation, 52.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 92790 files and directories currently installed.)
Removing mysql-server (5.5.40-0ubuntu0.14.04.1) ...
Removing mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Purging configuration files for mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Removing mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
root@berkademconsulting:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 3 newly installed, 0 to remove and 61 not upgraded.
Need to get 5,204 kB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main mysql-server-core-5.5 amd64 5.5.40-0ubuntu0.14.04.1 [3,215 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main mysql-server-5.5 amd64 5.5.40-0ubuntu0.14.04.1 [1,978 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main mysql-server all 5.5.40-0ubuntu0.14.04.1 [12.4 kB]
Fetched 5,204 kB in 1s (3,871 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-server-core-5.5.
(Reading database ... 92612 files and directories currently installed.)
Preparing to unpack .../mysql-server-core-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-5.5.
Preparing to unpack .../mysql-server-5.5_5.5.40-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.40-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-server (5.5.40-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mysql-server-core-5.5 (5.5.40-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
141213 20:42:34 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 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.
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@berkademconsulting:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment