Removing apparmor package solves the problem, please fix apparmor profile:
# apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-server-5.5 Suggested packages: tinyca mailx The following NEW packages will be installed: libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-server mysql-server-5.5 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 18,2 MB of archives. After this operation, 67,2 MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.32-0ubuntu0.12.04.1 [944 kB] Get:2 http://ru.archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB] Get:3 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.32-0ubuntu0.12.04.1 [8 284 kB] Get:4 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-5.5 amd64 5.5.32-0ubuntu0.12.04.1 [8 818 kB] Get:5 http://ru.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server all 5.5.32-0ubuntu0.12.04.1 [11,5 kB] Fetched 18,2 MB in 4s (3 943 kB/s) Preconfiguring packages ... Selecting previously unselected package libmysqlclient18. (Reading database ... 110136 files and directories currently installed.) Unpacking libmysqlclient18 (from .../libmysqlclient18_5.5.32-0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package libdbd-mysql-perl. Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ... Selecting previously unselected package mysql-client-5.5. Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server-5.5. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.32-0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.5.32-0ubuntu0.12.04.1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up libmysqlclient18 (5.5.32-0ubuntu0.12.04.1) ... Setting up libdbd-mysql-perl (4.020-1build2) ... Setting up mysql-client-5.5 (5.5.32-0ubuntu0.12.04.1) ... Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ... start: Job failed to start invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing 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 mysql-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin ... No apport report written because the error message indicates its a followup error from a previous failure. ldconfig deferred processing now taking place Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) # sudo apt-get remove apparmor Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: apparmor 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 1 081 kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 110305 files and directories currently installed.) Removing apparmor ... * Clearing AppArmor profiles cache [ OK ] All profile caches have been cleared, but no profiles have been unloaded. Unloading profiles will leave already running processes permanently unconfined, which can lead to unexpected situations. To set a process to complain mode, use the command line tool 'aa-complain'. To really tear down all profiles, run the init script with the 'teardown' option." Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up mysql-server-5.5 (5.5.32-0ubuntu0.12.04.1) ... mysql start/running, process 4955 Setting up mysql-server (5.5.32-0ubuntu0.12.04.1) ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/988801 Title: Unable to install mysql-server, apt-get stuck at "Setting up". To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/988801/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
