Tout d'abord, j'ai parcouru toutes les questions précédentes liées à cette erreur, mais rien n'a fonctionné. Ci-dessous ma sortie de Sudo apt-get update
:
suite à un ancien post, j'ai fini par changer tout mon fichier sources.list
.
Get:1 http://archive.canonical.com/ubuntu xenial InRelease [3,537 B]
Err:1 http://archive.canonical.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [3,534 B]
Err:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [3,542 B]
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [3,544 B]
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease [3,543 B]
Err:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed.
E: Failed to fetch http://archive.canonical.com/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Malheureusement, le problème était lié au réseau de mon collège. J'ai utilisé mon point d'accès téléphonique et cela a fonctionné. "IMPRESSIONNANT"
Il semblerait que la mise à jour de 16.04 à 18.04 ait gâché votre liste de sources. Remplacez le contenu existant dans le fichier /etc/apt/sources.list
par les lignes suivantes. Sauvegardez et supprimez les autres listes sources existantes dans /etc/apt/sources.list.d/
pour éviter tout conflit.
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Exécutez Sudo apt update
après. Le problème devrait être résolu.
utilisez cette commande pour trouver votre nom de code Ubuntu
lsb_release -a
puis éditez votre liste de référents et décommentez les liens avec ce nom de code en utilisant:
Sudo nano /etc/apt/sources.list
maintenant vérifier le Sudo apt-get update