Ошибки при установке mysql

Автор olegod, 21 августа 2012, 01:38:58

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

olegod

Здравствуйте, стоит apache2, нужно поставить mysql:
root@teedes:~# apt-get install mysql-server mysql-client php5-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libdbd-mysql-perl libmysqlclient16 mysql-client-5.1 mysql-common mysql-server-5.1 mysql-server-core-5.1
Suggested packages:
  libterm-readkey-perl tinyca
The following NEW packages will be installed:
  libdbd-mysql-perl libmysqlclient16 mysql-client mysql-client-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 php5-mysql
0 upgraded, 9 newly installed, 0 to remove and 64 not upgraded.
Need to get 16.6 MB/23.1 MB of archives.
After this operation, 58.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://security.debian.org/ squeeze/updates/main mysql-common all 5.1.63-0+squeeze1 [70.1 kB]
Get:2 http://ftp.debian.org/debian/ squeeze/main libdbd-mysql-perl amd64 4.016-1 [140 kB]
Get:3 http://security.debian.org/ squeeze/updates/main libmysqlclient16 amd64 5.1.63-0+squeeze1 [1971 kB]
Get:4 http://security.debian.org/ squeeze/updates/main mysql-client-5.1 amd64 5.1.63-0+squeeze1 [10.0 MB]
Get:5 http://security.debian.org/ squeeze/updates/main mysql-server-core-5.1 amd64 5.1.63-0+squeeze1 [4125 kB]
Get:6 http://security.debian.org/ squeeze/updates/main mysql-client all 5.1.63-0+squeeze1 [63.8 kB]
Get:7 http://security.debian.org/ squeeze/updates/main mysql-server all 5.1.63-0+squeeze1 [63.9 kB]
Get:8 http://security.debian.org/ squeeze/updates/main php5-mysql amd64 5.3.3-7+squeeze14 [76.5 kB]
Fetched 16.6 MB in 2s (8252 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ru_RU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
Selecting previously deselected package mysql-common.
(Reading database ... 24833 files and directories currently installed.)
Unpacking mysql-common (from .../mysql-common_5.1.63-0+squeeze1_all.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.63-0+squeeze1_amd64.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_amd64.deb) ...
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.63-0+squeeze1_amd64.deb) ...
Selecting previously deselected package mysql-server-core-5.1.
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.63-0+squeeze1_amd64.deb) ...
Setting up mysql-common (5.1.63-0+squeeze1) ...
(Reading database ... 25029 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Aborting downgrade from (at least) 5.5 to 5.1.
If are sure you want to downgrade to 5.1, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.1.63-0+squeeze1_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.63-0+squeeze1_all.deb) ...
Selecting previously deselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.3.3-7+squeeze14_amd64.deb) ...
Processing triggers for libapache2-mod-php5 ...
Reloading web server config: apache2.
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Пробовал apt-get purge mysql* - не помогло, репозитории стандартные, кеш чистил... В чём может быть проблема? Заранее спасибо!

Malaheenee

Все мы где-то, когда-то и в чем-то были новичками.

olegod

#  File generated by update-locale
Он у меня пустой...
И не могу поставить локаль:
root@teedes:~# apt-get install locales
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Как сбросить это?

kobzar

написано же
apt-get install -f
если не поможет
apt-get purge -f
а потом инсталл!
Ты дорого мой друг, заплатишь за ошибку,..
Когда оскал мой милый, ты приймешь за улыбку.

olegod

apt-get install -f и apt-get purge -f не помогли, та же ошибка...

kobzar

я прошу прощения
правильно было вот так
apt-get -f purge
apt-get -f install
apt-get -f locales
вывод ошибки давайте !
Ты дорого мой друг, заплатишь за ошибку,..
Когда оскал мой милый, ты приймешь за улыбку.

corner

Это пробовали?
$ sudo locale-gen en_US ru_RU.UTF-8
$ sudo dpkg-reconfigure locales

olegod

#7
Сгенерировалось успешно, но не помогло

Сообщение объединено: 21 августа 2012, 14:31:55

root@tfun:~# apt-get -f purge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  mysql-server-5.1
Suggested packages:
  tinyca
The following NEW packages will be installed:
  mysql-server-5.1
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
7 not fully installed or removed.
Need to get 0 B/6594 kB of archives.
After this operation, 15.0 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),
LANG = "ru_RU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 25046 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Aborting downgrade from (at least) 5.5 to 5.1.
If are sure you want to downgrade to 5.1, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
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.1_5.1.63-0+squeeze1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@teedes:~#
root@tfun:~# 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.1
Suggested packages:
  tinyca
The following NEW packages will be installed:
  mysql-server-5.1
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
7 not fully installed or removed.
Need to get 0 B/6594 kB of archives.
After this operation, 15.0 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),
LANG = "ru_RU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 25046 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Aborting downgrade from (at least) 5.5 to 5.1.
If are sure you want to downgrade to 5.1, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.63-0+squeeze1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
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.1_5.1.63-0+squeeze1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@tfun:~# apt-get -f locales
E: Invalid operation locales


ihammers

Это костыль, но должен сработать следующий вариант:
LANG=C apt-get -f install имя_пакета

Покажите, что находиться в:
cat /etc/default/locale
Debian GNU/Linux Bookworm, LXQt/OpenBox: AMD Ryzen 5 5600G / 64Gb RAM
_______________________________
Debian GNU/Linux Bookworm, без графики: AMD Phenon X4 / 16Gb RAM
_______________________________
Debian GNU/Linux Bookworm, LXQt/OpenBox: Acer Aspire One 722 AMD C60 / 8Gb RAM / ATI HD6290

kobzar

а если сделать
export LANG=ru_RU.UTF-8
export LANGUAGE=ru_RU.UTF-8
export LC_ALL=ru_RU.UTF-8
а потом запустить установку ?
А потом почитать тут ?
http://wiki.debian.org/Locale
Ты дорого мой друг, заплатишь за ошибку,..
Когда оскал мой милый, ты приймешь за улыбку.

ihammers

Цитата: kobzar от 21 августа 2012, 15:40:19
а если сделать
export LANG=ru_RU.UTF-8
export LANGUAGE=ru_RU.UTF-8
export LC_ALL=ru_RU.UTF-8
а потом запустить установку ?
А потом почитать тут ?
http://wiki.debian.org/Locale
Можно и так.  Но я думаю, что системные сообщения всё-таки лучше выводить на английском языке.

ТС, а что у вас выдается:
~$ locale
Debian GNU/Linux Bookworm, LXQt/OpenBox: AMD Ryzen 5 5600G / 64Gb RAM
_______________________________
Debian GNU/Linux Bookworm, без графики: AMD Phenon X4 / 16Gb RAM
_______________________________
Debian GNU/Linux Bookworm, LXQt/OpenBox: Acer Aspire One 722 AMD C60 / 8Gb RAM / ATI HD6290

kobzar

Цитата: ihammers от 21 августа 2012, 15:47:58
Цитата: kobzar от 21 августа 2012, 15:40:19
а если сделать
export LANG=ru_RU.UTF-8
export LANGUAGE=ru_RU.UTF-8
export LC_ALL=ru_RU.UTF-8
а потом запустить установку ?
А потом почитать тут ?
http://wiki.debian.org/Locale
Можно и так.  Но я думаю, что системные сообщения всё-таки лучше выводить на английском языке.

ТС, а что у вас выдается:
~$ locale

Ну мне лично всеравно какой язык а вот ТС явно имеет пробелы, по сему подумал что ему будет понятнее читать много русских букаф...
Ты дорого мой друг, заплатишь за ошибку,..
Когда оскал мой милый, ты приймешь за улыбку.

olegod

Всем спасибо, помогла переустановка ;D

xbsd

Цитата: olegod от 22 августа 2012, 13:01:57помогла переустановка
кружек перед монитором?