What I did was flushing privileges after moving to another server, then my new root password changed to this from old server but i didnt know that and i did remove mysql-server and reinstall it again hoping to not use flush privileges again. This caused so horrible-many-hours-wasting problem. BUG REPORT!!!
apt-get remove --purge mysql-server
It was a few problems while reinstalling mysql-server
1. /var/lib/dpkg/info/mysql-server-5.0.postinst: line 143: /etc/mysql/conf.d/old_passwords.cnf: No such file or directory
2. Something like /lib/modules/apparmor could not be found
3. Something like /lib/modules/2.6.28***/** coun't be found because the directory 2.6.28 wasnt existed
Some log (not mine):
Setting up mysql-client-5.0 (5.0.51a-3ubuntu5.1) ...
Setting up mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
* Stopping MySQL database server mysqld [ OK ]
/var/lib/dpkg/info/mysql-server-5.0.postinst: line 143: /etc/mysql/conf.d/old_passwords.cnf: No such file or directory
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
How I fixed it?:
sudo bash
chown -R mysql:mysql /var/lib/mysql/mysql/
(it was root:root)
touch /etc/mysql/my.cnf
chown -R mysql:mysql /etc/mysql/
(it was root:root)
apt-get install mysql-server
/etc/init.d/mysql stop
/etc/init.d/mysql start
(it was fail before)
.........[ OK ]
What I did was flushing privileges after moving to another server, then my new root password changed to this from old server but i didnt know that and i did remove mysql-server and reinstall it again hoping to not use flush privileges again. This caused so horrible- many-hours- wasting problem. BUG REPORT!!!
apt-get remove --purge mysql-server
It was a few problems while reinstalling mysql-server dpkg/info/ mysql-server- 5.0.postinst: line 143: /etc/mysql/ conf.d/ old_passwords. cnf: No such file or directory apparmor could not be found 2.6.28* **/** coun't be found because the directory 2.6.28 wasnt existed
1. /var/lib/
2. Something like /lib/modules/
3. Something like /lib/modules/
Some log (not mine): 3ubuntu5. 1) ... 3ubuntu5. 1) ... dpkg/info/ mysql-server- 5.0.postinst: line 143: /etc/mysql/ conf.d/ old_passwords. cnf: No such file or directory
Setting up mysql-client-5.0 (5.0.51a-
Setting up mysql-server-5.0 (5.0.51a-
* Stopping MySQL database server mysqld [ OK ]
/var/lib/
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
How I fixed it?:
sudo bash mysql/mysql/
chown -R mysql:mysql /var/lib/
(it was root:root)
touch /etc/mysql/my.cnf
chown -R mysql:mysql /etc/mysql/
(it was root:root)
apt-get install mysql-server
/etc/init.d/mysql stop
/etc/init.d/mysql start
(it was fail before)
.........[ OK ]
!!!!!!! !!!!!!! ....... ....... .
Best Regards,
grryf
Very similar: ubuntuforums. org/showthread. php?t=891109& highlight= grryf
http://
ndo@ks31258: /lib/modules$ ls
2.6.24-24-generic
(not .28)