Страница 1 из 1

Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:32 pm
jetdan
Добрый день, помогите решить проблему с установкой mysql-server никогда такого раньше не было:
sudo apt-get install mysql-server
Код: выделить все
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 2.6.32-042stab102.9 x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Thu Feb  5 08:19:10 2015 from 178.17.201.185
root@directik:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# ^C
root@directik:~#



Как следствие сервер не до установился и не запускается, ничего не показывает по sudo netstat -tap | grep mysql, папка /var/run/mysqld/ пустая

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:38 pm
pepper
Попробуйте удалить всё, что связано с mysql, и поставить mysql сервер заново:
Код: выделить все
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-5.5
sudo apt-get install mysql-server

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:40 pm
jetdan
root@jetdan:~# sudo apt-get install mysql-server-5.5 --configure
E: Command line option --configure is not understood

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:45 pm
ls
Здравствуйте,
какая у вас виртуализация?

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:47 pm
jetdan
ls писал(а):Здравствуйте,
какая у вас виртуализация?

Добрый день,
VDS-OVZ

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 4:49 pm
ls
выполните
Код: выделить все
apt-get install dialog apt-utils

после чего должно поставиться

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:07 pm
jetdan
ls писал(а):выполните
Код: выделить все
apt-get install dialog apt-utils

после чего должно поставиться


Выполнил, все установилось но к сожалению не помогло
Код: выделить все
Preparing to unpack .../mysql-server_5.5.41-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-server (5.5.41-0ubuntu0.14.04.1) ...
Setting up libaio1:amd64 (0.3.109-4) ...
Setting up libmysqlclient18:amd64 (5.5.41-0ubuntu0.14.04.1) ...
Setting up libdbi-perl (1.630-1) ...
Setting up libdbd-mysql-perl (4.025-1) ...
Setting up libterm-readkey-perl (2.31-1) ...
Setting up mysql-client-core-5.5 (5.5.41-0ubuntu0.14.04.1) ...
Setting up mysql-client-5.5 (5.5.41-0ubuntu0.14.04.1) ...
Setting up mysql-server-core-5.5 (5.5.41-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up libhtml-template-perl (2.95-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
Processing triggers for libc-bin (2.19-0ubuntu6.5) ...
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~#


Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:14 pm
jetdan
pepper писал(а):Попробуйте удалить всё, что связано с mysql, и поставить mysql сервер заново:
Код: выделить все
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-5.5
sudo apt-get install mysql-server


Не помогает, удалял шаблон операционки, ставил все заново, все тоже самое.
Пробывал перед тем как поставить сервер, устанавливать утилиты apt-get install dialog apt-utils, не помогает все равно. Те же самые ошибки.

Код: выделить все
 * Documentation:  https://help.ubuntu.com/
Last login: Thu Feb  5 09:00:21 2015 from 178.17.201.185
root@directik:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~#



Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:20 pm
pepper
При подобной ошибке Mysql-серер не может запуститься для первоначального конфигурирования, надо выяснить почему он не может запуститься.
На всякий случай проверьте нет ли уже запущенных процессов mysql:
Код: выделить все
ps aux|grep mysql

Ещё иногда AppArmor мешает, проверьте, запущен ли этот демон:
Код: выделить все
ps aux|grep -i apparm


Попробуйте после попытки установки доконфигурировать так:
Код: выделить все
 sudo dpkg --configure mysql-server-5.5


Если это не поможет, можете попробовать форсировать установку Mysql-server так:
Код: выделить все
sudo apt-get install -f mysql-server

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:35 pm
jetdan
pepper писал(а):Попробуйте после попытки установки доконфигурировать так:
Код: выделить все
 sudo dpkg --configure mysql-server-5.5


Если это не поможет, можете попробовать форсировать установку Mysql-server так:
Код: выделить все
sudo apt-get install -f mysql-server


Не все равно не помогает, пробывал уже ранее,
Код: выделить все
 * Documentation:  https://help.ubuntu.com/
Last login: Thu Feb  5 09:00:21 2015 from 178.17.201.185
root@directik:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# ^C
root@directik:~# sudo dpkg --configure mysql-server-5.5
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 mysql-server-5.5
root@directik:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... 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.
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# dpkg --configure -a
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
root@directik:~# echo "exit 0" >> /etc/init.d/mysql
root@directik:~# dpkg --configure -a
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
root@directik:~# sudo dpkg --configure mysql-server-5.5
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 mysql-server-5.5
root@directik:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... 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.
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# ^C
root@directik:~# ^C
root@directik:~#



Не помогает как видите,((

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:38 pm
pepper
>> Не помогает как видите,((
Да увидел ваше первое сообщение с этим журналом уже после отправки своего ответа.
Посмотрите, пожалуйста, моё пред. сообщение.

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:41 pm
ls
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found

явно же написано чего не хватает,
выполните
Код: выделить все
apt-get install bsdutils

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:46 pm
jetdan
pepper писал(а):При подобной ошибке Mysql-серер не может запуститься для первоначального конфигурирования, надо выяснить почему он не может запуститься.
На всякий случай проверьте нет ли уже запущенных процессов mysql:
Код: выделить все
ps aux|grep mysql

Ещё иногда AppArmor мешает, проверьте, запущен ли этот демон:
Код: выделить все
ps aux|grep -i apparm


Попробуйте после попытки установки доконфигурировать так:
Код: выделить все
 sudo dpkg --configure mysql-server-5.5


Если это не поможет, можете попробовать форсировать установку Mysql-server так:
Код: выделить все
sudo apt-get install -f mysql-server


Ничего не помогает, к сожалению, могу дать доступ, есть есть желание поковыряться.
Код: выделить все
root@directik:~# ps aux|grep mysql
root      4820  0.0  0.1   8816   780 pts/0    S+   09:37   0:00 grep --color=auto mysql
root@directik:~# sudo apt-get install -f mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~# ps aux|grep mysql
root      4934  0.0  0.1   8816   776 pts/0    S+   09:41   0:00 grep --color=auto mysql
root@directik:~# ^C
root@directik:~# ps aux|grep -i apparm
root      4936  0.0  0.1   8816   776 pts/0    S+   09:43   0:00 grep --color=auto -i apparm
root@directik:~# ^C
root@directik:~# sudo dpkg --configure mysql-server-5.5
Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 mysql-server-5.5
root@directik:~# sudo apt-get install -f mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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-server-5.5 (5.5.41-0ubuntu0.14.04.1) ...
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing package mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 127
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
Errors were encountered while processing:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@directik:~#


меня смущает еще этот факт, то что он не может установить именно эти два компонента последние, просто как мы можем проделывать действия по конфигурации, если сервер не до конца установлен?
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:47 pm
ls
Выполните apt-get install bsdutils
В минимальном шаблоне нет этого пакета и нет logger

Re: Mysql-server ставиться некорректно!!!

СообщениеДобавлено: Чт фев 05, 2015 5:58 pm
jetdan
ls писал(а):Выполните apt-get install bsdutils
В минимальном шаблоне нет этого пакета и нет logger


Алилуя, сервер установился и заработал
Надо себе пометить, что в минимальных конфигурациях не хватает.))) Благодарю всех за помощь.
Как жалко время, когда проблема решается, за считанные секунды, а тратишь на нее 4 часа.