D'abord, tu vas éditer le sources.list :
sudo nano /etc/apt/sources.list
Supprime les quatre lignes docker vers la fin (mais laisse la dernière ligne, qui est le dépôt source Security), ton sources.list devrait ressembler à ça :
# deb cdrom:[Ubuntu 18.04.3 LTS _Bionic Beaver_ - Release amd64 (20190805)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-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/ bionic universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-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/ bionic multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-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/ bionic-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic-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 bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
Enregistre avec ctrl + O, valide le nom de fichier (avec entrée), ferme Nano avec ctrl + X.
On va ensuite créer un .list dédié pour le dépôt Docker supprimé :
sudo nano /etc/apt/sources.list.d/docker.list
colle ça dedans :
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
Enregistre comme précédemment (ctrl + O, valide le nom, ctrl + X).
Ensuite, un peu de nettoyage :
cd /etc/apt/sources.list.d
sudo rm *.distUpgrade *.save
Tu as donc les dépôts suivants, sachant que certains posent apparemment problème pour la mise à niveau :
- docker.list
- google-chrome.list
- jonathonf-ubuntu-python-3_6-bionic.list
- mapeditor_org-ubuntu-tiled-bionic.list
- metasploit-framework.list
- microsoft-prod.list
- mono-official-stable.list
- sonic-pi-ubuntu-ppa-bionic.list
- teams.list
- vscode.list
Déjà, est-ce que tu as besoin de tout ou il y en a que tu n'utilises plus ?
Il y a de fortes chances que dans les dépôts qui posent problème il y ait celui de Python 3.6 et peut-être celui de Mono. On va les supprimer proprement, quitte à les remettre après la mise à niveau s'ils sont encore pertinents.
EDIT : j'avais mal regardé la liste, le dépôt Python n'est plus en place. Celui de sonic-pi non plus (aucune idée de ce que c'est).
On va avoir besoin de ppa-purge pour la suite des opérations, installe-le s'il ne l'est pas :
sudo apt-get install ppa-purge