Tag: upgrade

  • Aggiornare Ubuntu Intrepid Ibex (8.10) a Ubuntu Jaunty Jackalope (9.04) usando soltanto la linea di comando

    Ed ecco che finalmente, la nuova versione di Ubuntu 9.04 (il cui nome in codice è Jaunty Jackalope) è stata rilasciata. Un po’ come durante l’upgrade da Ubuntu da Hardy (8.04) a Intrepid Ibex (8.10), voglio utilizzare la linea di comando per aggiornare il sistema all’ultima release. Nota importante: per passare a Jaunty dovete obbligatoriamente avere Intrepid; date un lsb_release –a per scoprire che versione di Ubuntu state utilizzando, ad esempio:

    • $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description:    Ubuntu 8.10
      Release:        8.10
      Codename:       intrepid
      OK, questa macchina può essere aggiornata
    • $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description:    Ubuntu 8.04.2
      Release:        8.04
      Codename:       hardy
      KO, questa macchina NON può essere aggiornata. Dovete prima fare l’upgrade da Ubuntu da Hardy (8.04) a Intrepid Ibex (8.10) e poi tornare a seguire questa guida.

    Ora che abbiamo passato in rassegna i vari requisiti, passiamo alle istruzioni vere e proprie:

    1. Installare (se non è già installato) update manager con: sudo apt-get install update-manager-core
    2. lanciate il processo di aggiornamento con sudo do-release-upgrade

    update-manager vi chiederà se volete effettivamente aggiornare e vi darà anche una stima del tempo previsto:

    Calculating the changes

    Do you want to start the upgrade?

    12 packages are going to be removed. 160 new packages are going to be
    installed. 998 packages are going to be upgraded.

    You have to download a total of 749M. This download will take about
    51 minutes with your connection.

    Fetching and installing the upgrade can take several hours. Once the
    download has finished, the process cannot be cancelled.

    Continue [yN]  Details [d]

    Date ‘y’ e l’upgrade comincerà.

  • Aggiornare Ubuntu da Hardy (8.04) a Intrepid Ibex (8.10) usando la linea di comando

    Ultimamente mi è capitato di dover aggiornare alcuni server da Ubuntu 8.04 (NB: questa versione è una LTS, ovvero Long Time Support che significa pacchetti aggiornati per 3 anni per la versione desktop e fino a 5 per i server) a Ubuntu 8.10 (questa versione non è LTS!).

    Personalmente preferisco prima aggiornare una macchina di test, e, se tutto va bene, migrare tutte anche le altre macchine alla nuova versione. Ma come si può aggiornare Ubuntu usando soltanto l’accesso a linea di comando (tipicamente ssh)?

    È tutto molto semplice:

    1. Installare (se non è già installato) update manager con: sudo apt-get install update-manager-core
    2. Modificate il file /etc/update-manager/release-upgrades cambiando la riga:
    3. Prompt=lts

      con

      Prompt=normal

      (usate vim o il vostro editor preferito)

    4. Salvate il file e lanciate il processo di aggiornamento con sudo do-release-upgrade

    Se tutto va bene, update-manager vi chiederà se volete effettivamente aggiornare e vi darà anche una stima del tempo previsto:

    Calculating the changes

    Do you want to start the upgrade?

    24 packages are going to be removed. 208 new packages are going to be
    installed. 1018 packages are going to be upgraded.

    You have to download a total of 768M. This download will take about 1
    hour 10 minutes with your connection.

    Fetching and installing the upgrade can take several hours. Once the
    download has finished, the process cannot be cancelled.

    Continue [yN]  Details [d]y