[Risolto] Aggiornamento Server Ubuntu da 20.10 a 22.04 LTS

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
skye85
Prode Principiante
Messaggi: 4
Iscrizione: mercoledì 23 novembre 2022, 17:21

[Risolto] Aggiornamento Server Ubuntu da 20.10 a 22.04 LTS

Messaggio da skye85 »

Salve a tutti,

dovrei aggiornare il mio server Ubuntu dalla versione 20.10 all'ultima versione LTS, ovvero la 22.04.

Ecco i dati della versione attuale:

Codice: Seleziona tutto

Distributor ID:	Ubuntu
Description:	Ubuntu 20.10
Release:	20.10
Codename:	groovy
Linux 5.8.0-63-generic x86_64
Quando provo ad eseguire i consueti comandi per aggiornare:

Codice: Seleziona tutto

sudo apt update
sudo apt upgrade
sudo do-release-upgrade
mi da diversi errori. Intanto risultano non più disponibili le repository, es.:

Codice: Seleziona tutto

Err:10 http://ppa.launchpad.net/certbot/certbot/ubuntu groovy Release 404  Not Found [IP: x.x.x.x 80].
Infine quando lancio il do-release-upgrade mi lancia il seguente errore:

Codice: Seleziona tutto

The required dependency 'apt (>= 2.1.10ubuntu0.3)' is not installed. 
Ho provato a cercare in rete, ma non ho trovato guide esaustive specifiche di questo tipo di casistica. E' probabile che il passaggio diretto alla 22.04 non è così semplice, in quanto occorreva passare prima alla 21.x, versione che a luglio pare sia scaduta. Corretto?

Come posso risolvere?

grazie in anticipo.
Ultima modifica di skye85 il mercoledì 23 novembre 2022, 19:05, modificato 1 volta in totale.
skye85
Prode Principiante
Messaggi: 4
Iscrizione: mercoledì 23 novembre 2022, 17:21

Re: Aggiornamento Server Ubuntu da 20.10 a 22.04 LTS

Messaggio da skye85 »

Ecco il mio sources.list:

Codice: Seleziona tutto

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://it.archive.ubuntu.com/ubuntu groovy main restricted
# deb-src http://it.archive.ubuntu.com/ubuntu groovy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://it.archive.ubuntu.com/ubuntu groovy-updates main restricted
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://it.archive.ubuntu.com/ubuntu groovy universe
# deb-src http://it.archive.ubuntu.com/ubuntu groovy universe
deb http://it.archive.ubuntu.com/ubuntu groovy-updates universe
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://it.archive.ubuntu.com/ubuntu groovy multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu groovy multiverse
deb http://it.archive.ubuntu.com/ubuntu groovy-updates multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://it.archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu groovy partner
# deb-src http://archive.canonical.com/ubuntu groovy partner

deb http://it.archive.ubuntu.com/ubuntu groovy-security main restricted
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-security main restricted
deb http://it.archive.ubuntu.com/ubuntu groovy-security universe
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-security universe
deb http://it.archive.ubuntu.com/ubuntu groovy-security multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu groovy-security multiverse
skye85
Prode Principiante
Messaggi: 4
Iscrizione: mercoledì 23 novembre 2022, 17:21

Re: Aggiornamento Server Ubuntu da 20.10 a 22.04 LTS

Messaggio da skye85 »

Pare che aggiornando le url delle source da http://it.archive.ubuntu.com/ubuntu a http://old-releases.ubuntu.com/ubuntu/ riesca ad effettuare gli update minimi per riuscire a lanciare l'upgrade e pertanto dopo averli modificati ho lanciato in sequenza:

Codice: Seleziona tutto

sudo apt-get update
sudo apt-get dist-upgrade
sudo do-release-upgrade
e così è partito l'upgrade. Vi aggiorno non appena completo per vedere se è andato tutto a buon fine.
skye85
Prode Principiante
Messaggi: 4
Iscrizione: mercoledì 23 novembre 2022, 17:21

Re: Aggiornamento Server Ubuntu da 20.10 a 22.04 LTS

Messaggio da skye85 »

L'aggiornamento è andato a buon fine
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti