Voilà, donc édite le sources.list et remplace tous les bionic par focal dans les lignes qui n'ont pas été traitées :
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-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://fr.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal universe
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-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://fr.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-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://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-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 focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
Et idem pour tous les fichiers .list qui sont dans /etc/apt/sources.list.d. Pour chacun :
- décommente la ligne deb
- supprime éventuellement le commentaire "# désactivé pour la mise à niveau vers focal"
- corrige bionic en focal dans la ligne deb-src (sans pour autant la décommenter)
Exemple pour le PPA graphics drivers :
On a ça :
# deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main # désactivé pour la mise à niveau vers focal
# deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
qui devient ça :
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
# deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
Comme indiqué précédemment, il y a deux dépôts qui n'ont pas de branche focal, il s'arrêtent à bionic et ne sont plus maintenus : clipgrab et kranich/cubuntu. Dans ce genre de cas, il faut :
- vérifier quels paquets tu utilises dedans en allant voir sur la page du PPA ;
- déterminer si tu as toujours besoin du PPA en question (par exemple, peut-être que les paquets que tu utilises sont maintenant dispo dans les dépôts Ubuntu) ;
- si c'est le cas, voir s'il n'y aurait pas un autre dépôt plus à jour ;
- sinon, voir ce que ça donne si on le garde actif à sa dernière branche utilisable (en l'occurrence bionic pour les deux PPA concernés) : est-ce que ça provoquer des problèmes de dépendances qui pètent complètement APT ou est-ce que ça passe ?
Pour modifier les dépôts tiers, tu peux aussi passer par Logiciels et mises à jour si tu ne veux pas rééditer chaque fichier à la main. Mais pour le sources.list principal, il vaut mieux l'éditer avec Nano, ses lignes deb-src n'étant pas accessibles indépendamment dans Logiciels et mises à jour.