Mysql problemas de instalación extraños (registrador: comando no encontrado)

8

Este problema es realmente extraño, he intentado muchas formas de resolverlo, pero nada funcionó. Mi último resultado fue:

    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.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "pl_PL.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
Setting up mysql-server-5.5 (5.5.38-0ubuntu0.14.04.1) ...
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
/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)

Realmente no sé cómo solucionarlo, muchachos, por favor ayudenme :)

BanaanGuy
fuente
1
Posible duplicado de la configuración regional: restablecer la configuración perdida
David Foerster

Respuestas:

24

Tuve el mismo problema con mysql-server-5.6 y esta solución me ayudó:

Launchpad: Bug # 392051: comando de registro [Karmic] no encontrado

Básicamente, el programa loggerse equivocó;

Se puede recrear reinstalando el paquete bsdutils:

apt-get --reinstall install bsdutils

o

aptitude reinstall bsdutils

abudaan
fuente
Esto también funcionó para mí. Usando un VPS de Hosting24
Stephan Bijzitter el
1

Sus "configuraciones regionales" aún no se han generado o no se han generado correctamente.

Prueba esto:

sudo locale-gen en_US en_US.UTF-8 pl_PL pl_PL.UTF-8
sudo dpkg-reconfigure locales

Luego intente nuevamente instalar MySQL.

Jos
fuente
1

Esta es la respuesta original referida desde este bloque:

https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/

Actualizar configuraciones regionales:

sudo locale-gen fi_FI.UTF-8
sudo dpkg-reconfigure locales
apt-get update

Ejecute este comando a continuación

En su servidor y reemplazará todas las URL del repositorio archive.ubuntu.com y del security.ubuntu.compaquete con old-releases.ubuntu.com

sudo sed -i -e 's/us.old-releases.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g'/etc/apt/sources.list

apt-get update
Sumit Munot
fuente