2 Novembre 2008 11:58
DOMANDA : Come faccio ad aggiornare il mio sistema di server Ubuntu Hardy Heron 8.04 di Ubuntu Linux server 8.10 Intrepid Ibex attraverso una sessione ssh?
RISPOSTA : È possibile fare l’aggiornamento dei server di Ubuntu 8.04 alla 8.10 utilizzando un prompt della shell remota su sessione SSH come segue:
ubuntu 8.10 intrepid ibex server edition
Ubuntu Server 8.10 Network Upgrade
Accedi al server remoto utilizzando ssh oppure aprire una console locale:
Apply patches
Come prima cosa verificare che la versione 8.04 è aggiornata.
Immettere questi due comandi per essere sicuri di essere aggiornati
$ sudo apt-get update
$ sudo apt-get upgrade
Cambiare release
aprire il file /etc/update-manager/release-upgrades :
$ nano /etc/update-manager/release-upgrades
# default behavior for the release upgrader
#
[DEFAULT]
# default prompting behavior, valid options:
# never - never prompt for a new distribution version
# normal - prompt if a new version of the distribution is available
# lts - prompt only if a LTS version of the distribution is available
Prompt=lts
Trovare la riga :
Prompt=lts
E cambiarla in :
Prompt=normal
Salvare ( control-O ) e uscire dal file ( control-X ). Questo imposta l’aggiornamento dalle versioni LTS (long support version) alla branch normale
Ubuntu 8.10 Server Upgrade
Assicurarsi di aver installato update-manager-core
$ sudo apt-get install update-manager-core
Sopra si installa / aggiorna update-manager-core, se non è già installato e aggiornato. Una volta installato usando il seguente comando si aggiorna tutto il sistema . Assicurarsi di avere il backup di tutti i dati importanti:
$ sudo do-release-upgrade
Ora seguire le istruzioni che appaio a video, dovreste vedere qualcosa di simile .
do-release-upgrade
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
extracting ‘intrepid.tar.gz’
authenticate ‘intrepid.tar.gz’ against ‘intrepid.tar.gz.gpg’
Reading cache
Checking package manager
Continue running under SSH?
This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.
If you continue, a additional ssh daemon will be started at port
‘9004′.
Do you want to continue?
Continue [yN] y
Starting additional sshd
To make recovery in case of failure easier, an additional sshd will
be started on port ‘9004′. If anything goes wrong with the running
ssh you can still connect to the additional one.
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done
Hit http://us.archive.ubuntu.com hardy Release.gpg
Hit http://us.archive.ubuntu.com hardy-updates Release.gpg
Hit http://security.ubuntu.com hardy-security Release.gpg
Hit http://us.archive.ubuntu.com hardy-backports/multiverse Sources
Done downloading
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done
Updating repository information
Done http://security.ubuntu.com intrepid-security Release.gpg
Done http://security.ubuntu.com intrepid-security Release
Done http://us.archive.ubuntu.com intrepid-backports/universe Sources
Done http://us.archive.ubuntu.com intrepid-backports/multiverse Sources
Done downloading
Checking package manager
Reading package lists: Donem intrepid-backports/multiverse Packages: 97
Reading state information: Done
Reading state information: Done
Reading state information: Done
Calculating the changes
Do you want to start the upgrade?
4 packages are going to be removed. 85 new packages are going to be
installed. 592 packages are going to be upgraded.
You have to download a total of 438M. This download will take about
20 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
Fetching…
convert this post to pdf.
Nessun commento:
Posta un commento