[Install] INSTALLAZIONE MYSQL
[Install] INSTALLAZIONE MYSQL
Ciao a tutti,
ho bisogno del vostro aiuto! Sto istallando LAMP, sono riuscito ad istallare
apache2-mpm-prefork
libapache2-mod-php5
ma quando provo a installare mysql-server mi succede questo:
jerry@TOSHIBA-User:~$ sudo apt-get install mysql-server
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Lettura delle informazioni di stato... Fatto
mysql-server è già alla versione più recente.
I seguenti pacchetti sono stati installati automaticamente in precedenza e ora non sono più necessari:
libqt4-core libqt4-gui apturl libaudio2 libmng1
Usare "apt-get autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
2 non completamente installati o rimossi.
Dopo questa operazione verranno occupati 0B di spazio su disco.
Configuro mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
chown: impossibile accedere a `/var/run/mysqld': Nessun file o directory
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: errore processando mysql-server-5.0 (--configure):
il sottoprocesso post-installation script ha restituito un codice di errore 1
dpkg: problemi con le dipendenze impediscono la configurazione di mysql-server:
mysql-server dipende da mysql-server-5.0; comunque:
Il pacchetto mysql-server-5.0 non è ancora configurato.
dpkg: errore processando mysql-server (--configure):
problemi con le dipendenze - lasciato non configurato
Sono occorsi degli errori processando:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Che devo fare? Pls aiutatemi!!
Grazie in anticipo
Jerry
ho bisogno del vostro aiuto! Sto istallando LAMP, sono riuscito ad istallare
apache2-mpm-prefork
libapache2-mod-php5
ma quando provo a installare mysql-server mi succede questo:
jerry@TOSHIBA-User:~$ sudo apt-get install mysql-server
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Lettura delle informazioni di stato... Fatto
mysql-server è già alla versione più recente.
I seguenti pacchetti sono stati installati automaticamente in precedenza e ora non sono più necessari:
libqt4-core libqt4-gui apturl libaudio2 libmng1
Usare "apt-get autoremove" per rimuoverli.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
2 non completamente installati o rimossi.
Dopo questa operazione verranno occupati 0B di spazio su disco.
Configuro mysql-server-5.0 (5.0.51a-3ubuntu5.1) ...
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "stop" failed.
chown: impossibile accedere a `/var/run/mysqld': Nessun file o directory
/etc/lsb-base-logging.sh: line 84: INITOUTPUT: unbound variable
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: errore processando mysql-server-5.0 (--configure):
il sottoprocesso post-installation script ha restituito un codice di errore 1
dpkg: problemi con le dipendenze impediscono la configurazione di mysql-server:
mysql-server dipende da mysql-server-5.0; comunque:
Il pacchetto mysql-server-5.0 non è ancora configurato.
dpkg: errore processando mysql-server (--configure):
problemi con le dipendenze - lasciato non configurato
Sono occorsi degli errori processando:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Che devo fare? Pls aiutatemi!!
Grazie in anticipo
Jerry
Re: [Install] INSTALLAZIONE MYSQL
https://bugs.launchpad.net/ubuntu/+sour ... bug/316594
a quanto pare è capitato anche a qualcun altro, ma per ora non ho trovato soluzioni
a quanto pare è capitato anche a qualcun altro, ma per ora non ho trovato soluzioni
Re: [Install] INSTALLAZIONE MYSQL
È IRRISOLVIBILE ALLORA?? 
Re: [Install] INSTALLAZIONE MYSQL
al contrario
guardando meglio ho visto che quel bug è un duplicato di questo, dove viene proposta una soluzione temporanea al problema:
apri il file /etc/lsb-base-logging.sh con i permessi di root:
e all'inizio delle righe 84 e 106 metti una doppia barra //. le righe dovrebbero essere queste:
PS: La prossima volta che hai problemi tecnici non postare nel bar, ma utilizza le board apposite. In questo caso la migliore era questa: http://forum.ubuntu-it.org/viewforum.php?f=28
guardando meglio ho visto che quel bug è un duplicato di questo, dove viene proposta una soluzione temporanea al problema:
apri il file /etc/lsb-base-logging.sh con i permessi di root:
Codice: Seleziona tutto
sudo gedit /etc/lsb-base-logging.shCodice: Seleziona tutto
84: if [ "INITOUTPUT" = "yes" ]; then
...
106: fi
Re: [Install] INSTALLAZIONE MYSQL
grazie mille, provo subito
ma i due slash// devo metterli all'inizio prima di tutto? anche dei numeri della riga?
scusa sto ancora imparando
ma i due slash// devo metterli all'inizio prima di tutto? anche dei numeri della riga?
scusa sto ancora imparando
Re: [Install] INSTALLAZIONE MYSQL
POI FORSE LA RIGA NON E' LA 106 PERCHE' NELLA RIGA 106 NON C'E' "fi" questa scritta si trova in diverse righe sopra e sotto ma non in quella e non so come procedere?
Re: [Install] INSTALLAZIONE MYSQL
pls help!
Re: [Install] INSTALLAZIONE MYSQL
purtroppo non ho ubuntu e non posso verificare quale riga è in quel file
i numeri di riga li ho messi solo a scopo indicativo, all'interno del file troverai solo ciò che c'è dopo (cioè alla riga 84 troverai "if [ "INITOUTPUT" = "yes" ]; then" e alla riga 106 troverai "fi")
se non ricordo male questi numeri di riga si riferiscono alla versione 8.04 di ubuntu... può essere che, se la tua versione è diversa, siano cambiati
la prima riga la dovresti trovare facilmente, e se hai un minimo di esperienza di programmazione dovresti riuscire anche a trovare l'altra, visto che è la "chiusura" dell'if
i numeri di riga li ho messi solo a scopo indicativo, all'interno del file troverai solo ciò che c'è dopo (cioè alla riga 84 troverai "if [ "INITOUTPUT" = "yes" ]; then" e alla riga 106 troverai "fi")
se non ricordo male questi numeri di riga si riferiscono alla versione 8.04 di ubuntu... può essere che, se la tua versione è diversa, siano cambiati
la prima riga la dovresti trovare facilmente, e se hai un minimo di esperienza di programmazione dovresti riuscire anche a trovare l'altra, visto che è la "chiusura" dell'if
Re: [Install] INSTALLAZIONE MYSQL
ho dato un'occhiata su http://packages.ubuntu.com per vedere a che pacchetto appartiene quel file e pare che appartenga sia a lsb-base che a splashy
ho provato a scaricare entrambi i pacchetti per intrepid i386 e in effetti nessuna delle versioni del file fornite con i pacchetti contiene quelle righe
che versione di ubuntu hai? che architettura?
posta magari qui il contenuto del tuo file....
ho provato a scaricare entrambi i pacchetti per intrepid i386 e in effetti nessuna delle versioni del file fornite con i pacchetti contiene quelle righe
che versione di ubuntu hai? che architettura?
posta magari qui il contenuto del tuo file....
Re: [Install] INSTALLAZIONE MYSQL
OK LUKA STASERA A CASA CONTROLLO E TI POSTO TUTTO....GRAZIE MILLE!!!
Re: [Install] INSTALLAZIONE MYSQL
MI DEVI PLS SOLO DIRE COME FACCIO A CAPIRE CHE TIPO DI ARCHITETTURA HO.
IL MIO COMPUTER E' UN NETBOOK TOSHIBA NB100 CON UBUNTU NETBOOK REMIX, DOPO TI INVIO IL CONTENUTO DEL FILE (PURTROPPO NON HO ALCUNA ESPERIENZA DI PROGRAMMAZIONE :-[ )
IL MIO COMPUTER E' UN NETBOOK TOSHIBA NB100 CON UBUNTU NETBOOK REMIX, DOPO TI INVIO IL CONTENUTO DEL FILE (PURTROPPO NON HO ALCUNA ESPERIENZA DI PROGRAMMAZIONE :-[ )
Re: [Install] INSTALLAZIONE MYSQL
se non sbaglio ci dovrebbe essere il comando `arch` che ti dice l'architettura del sistema installato
PS: non scrivere in maiuscolo, equivale ad urlare...
PS: non scrivere in maiuscolo, equivale ad urlare...
Re: [Install] INSTALLAZIONE MYSQL
Scusa non volevo mancarti di rispetto; ti copio il contenuto del file:
Grazie per il tuo aiuto
Codice: Seleziona tutto
# Default init script logging functions suitable for Ubuntu.
# See /lib/lsb/init-functions for usage help.
. /etc/default/rcS
log_use_usplash () {
if [ "${loop:-n}" = y ]; then
return 1
fi
type usplash_write >/dev/null 2>&1
}
log_to_console () {
[ "${loop:-n}" != y ] || return 0
[ "${QUIET:-no}" != yes ] || return 0
# Only output to the console when we're given /dev/null
stdin=`readlink /proc/self/fd/0`
[ "${stdin#/dev/null}" != "$stdin" ] || return 0
func=$1
shift
loop=y $func "$@" </dev/console >/dev/console 2>&1 || true
}
log_success_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_success_msg "$@"
echo " * $@"
}
log_failure_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_failure_msg "$@"
if log_use_fancy_output; then
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
echo " $RED*$NORMAL $@"
else
echo " * $@"
fi
}
log_warning_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_warning_msg "$@"
if log_use_fancy_output; then
YELLOW=`$TPUT setaf 3`
NORMAL=`$TPUT op`
echo " $YELLOW*$NORMAL $@"
else
echo " * $@"
fi
}
log_begin_msg () {
log_daemon_msg "$1"
}
log_daemon_msg () {
if [ -z "$1" ]; then
return 1
fi
if log_use_usplash; then
usplash_write "TEXT $*" || true
fi
log_to_console log_daemon_msg "$@"
if [ "$INITOUTPUT" = "yes" ]; then
if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
COL=`$EXPR $COLS - 7`
else
COLS=80
COL=73
fi
# We leave the cursor `hanging' about-to-wrap (see terminfo(5)
# xenl, which is approximately right). That way if the script
# prints anything then we will be on the next line and not
# overwrite part of the message.
# Previous versions of this code attempted to colour-code the
# asterisk but this can't be done reliably because in practice
# init scripts sometimes print messages even when they succeed
# and we won't be able to reliably know where the colourful
# asterisk ought to go.
printf " * $* "
# Enough trailing spaces for ` [fail]' to fit in; if the message
# is too long it wraps here rather than later, which is what we
# want.
$TPUT hpa `$EXPR $COLS - 1`
printf ' '
else
echo " * $@"
COL=
fi
fi
}
log_progress_msg () {
:
}
log_end_msg () {
if [ -z "$1" ]; then
return 1
fi
if log_use_usplash; then
if [ "$1" -eq 0 ]; then
usplash_write "SUCCESS OK" || true
else
usplash_write "FAILURE failed" || true
fi
fi
log_to_console log_end_msg "$@"
if [ "$INITOUTPUT" = "yes" ]; then
if [ "$COL" ] && [ -x "$TPUT" ]; then
printf "\r"
$TPUT hpa $COL
if [ "$1" -eq 0 ]; then
echo "[ OK ]"
else
printf '['
$TPUT setaf 1 # red
printf fail
$TPUT op # normal
echo ']'
fi
else
if [ "$1" -eq 0 ]; then
echo " ...done."
else
echo " ...fail!"
fi
fi
fi
return $1
}
log_action_msg () {
if log_use_usplash; then
usplash_write "TEXT $*" || true
fi
log_to_console log_action_msg "$@"
echo " * $@"
}
log_action_begin_msg () {
log_daemon_msg "$@..."
}
log_action_cont_msg () {
log_daemon_msg "$@..."
}
log_action_end_msg () {
# In the future this may do something with $2 as well.
log_end_msg "$1" || true
}
Ultima modifica di pierba il venerdì 24 aprile 2009, 16:41, modificato 1 volta in totale.
Re: [Install] INSTALLAZIONE MYSQL
le righe erano 84 e 114, e poi ho visto che la cosa si ripete anche alle righe 136 e 156, quindi l'ho commentata anche lì (ah, tra l'altro mi sono confuso: per commentare si usa il cancelletto, non il doppio slash)
alla fine credo che così dovrebbe funzionare:
apri il file con
e sostituisci il contenuto con ciò che ho appena postato, e vedi se funziona
alla fine credo che così dovrebbe funzionare:
Codice: Seleziona tutto
# Default init script logging functions suitable for Ubuntu.
# See /lib/lsb/init-functions for usage help.
. /etc/default/rcS
log_use_usplash () {
if [ "${loop:-n}" = y ]; then
return 1
fi
type usplash_write >/dev/null 2>&1
}
log_to_console () {
[ "${loop:-n}" != y ] || return 0
[ "${QUIET:-no}" != yes ] || return 0
# Only output to the console when we're given /dev/null
stdin=`readlink /proc/self/fd/0`
[ "${stdin#/dev/null}" != "$stdin" ] || return 0
func=$1
shift
loop=y $func "$@" </dev/console >/dev/console 2>&1 || true
}
log_success_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_success_msg "$@"
echo " * $@"
}
log_failure_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_failure_msg "$@"
if log_use_fancy_output; then
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
echo " $RED*$NORMAL $@"
else
echo " * $@"
fi
}
log_warning_msg () {
if log_use_usplash; then
usplash_write "STATUS $*" || true
fi
log_to_console log_warning_msg "$@"
if log_use_fancy_output; then
YELLOW=`$TPUT setaf 3`
NORMAL=`$TPUT op`
echo " $YELLOW*$NORMAL $@"
else
echo " * $@"
fi
}
log_begin_msg () {
log_daemon_msg "$1"
}
log_daemon_msg () {
if [ -z "$1" ]; then
return 1
fi
if log_use_usplash; then
usplash_write "TEXT $*" || true
fi
log_to_console log_daemon_msg "$@"
# if [ "$INITOUTPUT" = "yes" ]; then
if log_use_fancy_output && $TPUT xenl >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ "$COLS" ] && [ "$COLS" -gt 6 ]; then
COL=`$EXPR $COLS - 7`
else
COLS=80
COL=73
fi
# We leave the cursor `hanging' about-to-wrap (see terminfo(5)
# xenl, which is approximately right). That way if the script
# prints anything then we will be on the next line and not
# overwrite part of the message.
# Previous versions of this code attempted to colour-code the
# asterisk but this can't be done reliably because in practice
# init scripts sometimes print messages even when they succeed
# and we won't be able to reliably know where the colourful
# asterisk ought to go.
printf " * $* "
# Enough trailing spaces for ` [fail]' to fit in; if the message
# is too long it wraps here rather than later, which is what we
# want.
$TPUT hpa `$EXPR $COLS - 1`
printf ' '
else
echo " * $@"
COL=
fi
# fi
}
log_progress_msg () {
:
}
log_end_msg () {
if [ -z "$1" ]; then
return 1
fi
if log_use_usplash; then
if [ "$1" -eq 0 ]; then
usplash_write "SUCCESS OK" || true
else
usplash_write "FAILURE failed" || true
fi
fi
log_to_console log_end_msg "$@"
# if [ "$INITOUTPUT" = "yes" ]; then
if [ "$COL" ] && [ -x "$TPUT" ]; then
printf "\r"
$TPUT hpa $COL
if [ "$1" -eq 0 ]; then
echo "[ OK ]"
else
printf '['
$TPUT setaf 1 # red
printf fail
$TPUT op # normal
echo ']'
fi
else
if [ "$1" -eq 0 ]; then
echo " ...done."
else
echo " ...fail!"
fi
fi
# fi
return $1
}
log_action_msg () {
if log_use_usplash; then
usplash_write "TEXT $*" || true
fi
log_to_console log_action_msg "$@"
echo " * $@"
}
log_action_begin_msg () {
log_daemon_msg "$@..."
}
log_action_cont_msg () {
log_daemon_msg "$@..."
}
log_action_end_msg () {
# In the future this may do something with $2 as well.
log_end_msg "$1" || true
}
Codice: Seleziona tutto
sudo gedit /etc/lsb-base-logging.shRe: [Install] INSTALLAZIONE MYSQL
purtroppo non riesco a trovare l'architettura.
Ho scritto arch sul terminale ma mi da errore
Ho scritto arch sul terminale ma mi da errore
sicuramente sono io che non so come fare :-[jerry@TOSHIBA-User:~$ arch
bash: arch: command not found
jerry@TOSHIBA-User:~$
Re: [Install] INSTALLAZIONE MYSQL
Mi sei stato velocissimo
Grazie mille!! Non appena posso ti faccio sapere.
Ti auguro una buona serata
Grazie mille!! Non appena posso ti faccio sapere.
Ti auguro una buona serata
Re: [Install] INSTALLAZIONE MYSQL
no, probabilmente è il comando che è sbagliato.... come già detto è un po' che non uso più ubuntu ma mi pareva di ricordare che il comando fosse quello.... mi sarò sbagliato...
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 5 ospiti
