2016-06-22 3 views
0

У меня возникла проблема, я удалил свой сервер MYSQL, но я не могу его установить. Я пробовал все, но, похоже, не работает. Любой мне помогает. Я пробовал следующее: Я пробовал все это, задавался вопросом, может ли проблема быть проблемой? Sudo APT-получить продувка MySQL-сервер MySQL-клиент MySQL-общий MySQL-сервер-ядро-5,5 MySQL-клиент-ядро-5,5Проблема с установкой Mysql

sudo apt-get autoremove 

sudo apt-get autoclean 


[email protected]:~$ sudo service mysql start 
mysql: unrecognized service 
[email protected]:~$ sudo apt-get install mysql-server 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
mysql-server is already the newest version. 
You might want to run 'apt-get -f install' to correct these: 
The following packages have unmet dependencies: 
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed 
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 
[email protected]:~$ mysql -u root -p 
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 
[email protected]:~$ 
[email protected]:~$ sudo service mysql start 
mysql: unrecognized service 
[email protected]:~$ 
[email protected]:~$ sudo apt-get -f install 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Correcting dependencies... Done 
The following extra packages will be installed: 
mysql-server-5.5 
Suggested packages: 
tinyca mailx 
The following NEW packages will be installed: 
mysql-server-5.5 
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded. 
8 not fully installed or removed. 
Need to get 0 B/1845 kB of archives. 
After this operation, 32.7 MB of additional disk space will be used. 
Do you want to continue? [Y/n] y 
perl: warning: Setting locale failed. 
perl: warning: Please check that your locale settings: 
LANGUAGE = (unset), 
LC_ALL = (unset), 
LC_TIME = "en_GB.UTF-8", 
LC_MONETARY = "en_GB.UTF-8", 
LC_ADDRESS = "en_GB.UTF-8", 
LC_TELEPHONE = "en_GB.UTF-8", 
LC_NAME = "en_GB.UTF-8", 
LC_MEASUREMENT = "en_GB.UTF-8", 
LC_IDENTIFICATION = "en_GB.UTF-8", 
LC_NUMERIC = "en_GB.UTF-8", 
LC_PAPER = "en_GB.UTF-8", 
LANG = "en_US.UTF-8" 
are supported and installed on your system. 
perl: warning: Falling back to the standard locale ("C"). 
locale: Cannot set LC_ALL to default locale: No such file or directory 
Preconfiguring packages ... 
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory 
(Reading database ... 201373 files and directories currently installed.) 
Preparing to unpack .../mysql-server- 5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb ... 
locale: Cannot set LC_ALL to default locale: No such file or directory 
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory 
egrep: /etc/mysql/: No such file or directory 
ERROR: There's not enough space in /var/lib/mysql/ 
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb (--unpack): 
subprocess new pre-installation script returned error exit status 1 
locale: Cannot set LC_ALL to default locale: No such file or directory 
Errors were encountered while processing: 
/var/cache/apt/archives/mysql-server-5.5_5.5.49-0ubuntu0.14.04.1_amd64.deb 
E: Sub-process /usr/bin/dpkg returned an error code (1) 
[email protected]:~$ mysql -u root -p 
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) 
[email protected]:~$ 
+0

Вы пытались запустить 'apt-get -f install' без пакетов? Если да, то что случилось? –

+0

Что это значит? Я набираю «apt-get -f install» в одиночку? – Bob

ответ

0

Похоже, вы можете запустить из дискового пространства для MySQL. Когда вы запускали apt-get -f install, он включал следующее сообщение об ошибке:

ERROR: There's not enough space in /var/lib/mysql/ 

Вы будете нуждаться, чтобы освободить пространство так, что apt-get может правильно установить MySQL. Как только вы освободите место, перезапустите apt-get -f install и, надеюсь, MySQL будет работать правильно.

+0

На самом деле это то, что я только что отметил, спасибо – Bob

Смежные вопросы