[Install] INSTALLAZIONE MYSQL

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
Scrivi risposta
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

[Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

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
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

https://bugs.launchpad.net/ubuntu/+sour ... bug/316594

a quanto pare è capitato anche a qualcun altro, ma per ora non ho trovato soluzioni
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

È IRRISOLVIBILE ALLORA??  :(
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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:

Codice: Seleziona tutto

sudo gedit /etc/lsb-base-logging.sh
e all'inizio delle righe 84 e 106 metti una doppia barra //. le righe dovrebbero essere queste:

Codice: Seleziona tutto

84: if [ "INITOUTPUT" = "yes" ]; then
...
106: fi
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
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

grazie mille, provo subito

ma i due slash// devo metterli all'inizio prima di tutto? anche dei numeri della riga?

scusa sto ancora imparando
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

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?
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

pls help!
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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....
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

OK LUKA STASERA A CASA CONTROLLO E TI POSTO TUTTO....GRAZIE MILLE!!!
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

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  :-[ )
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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...
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

Scusa non volevo mancarti di rispetto; ti copio il contenuto del file:

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
}
Grazie per il tuo aiuto
Ultima modifica di pierba il venerdì 24 aprile 2009, 16:41, modificato 1 volta in totale.
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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:

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
}
apri il file con

Codice: Seleziona tutto

sudo gedit /etc/lsb-base-logging.sh
e sostituisci il contenuto con ciò che ho appena postato, e vedi se funziona
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

purtroppo non riesco a trovare l'architettura.

Ho scritto arch sul terminale ma mi da errore
jerry@TOSHIBA-User:~$ arch
bash: arch: command not found
jerry@TOSHIBA-User:~$
sicuramente sono io che non so come fare  :-[
Jerry
Prode Principiante
Messaggi: 13
Iscrizione: martedì 13 gennaio 2009, 18:46

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Jerry »

Mi sei stato velocissimo

Grazie mille!! Non appena posso ti faccio sapere.

Ti auguro una buona serata
Avatar utente
Luka7
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 559
Iscrizione: mercoledì 22 agosto 2007, 19:37

Re: [Install] INSTALLAZIONE MYSQL

Messaggio da Luka7 »

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...
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 5 ospiti