Sudo apt-get não funciona em 18.04 [duplicado]

0
Primeiro de tudo eu tenho surfado através de todas as questões anteriores relacionadas a este erro, mas nada funcionou. Abaixo está minha saída de sudo apt-get update :

seguindo uma postagem antiga, acabei alterando todo o meu arquivo 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.
    
por Rahul Gurung 09.05.2018 / 09:44

3 respostas

1

Infelizmente, o problema estava na minha rede da faculdade, eu usei meu hotspot de telefone e funcionou. "IMPRESSIONANTE"

    
por Rahul Gurung 09.05.2018 / 10:45
0

use este comando para encontrar o seu codinome do ubuntu

lsb_release -a

edite sua lista de repo e descomente links com esse nome de código usando:

sudo nano /etc/apt/sources.list

agora verifique o sudo apt-get update

    
por MehrdadEP 09.05.2018 / 09:57
0

Parece que a atualização de 16.04 para 18.04 atrapalhou sua lista de fontes. Substitua o conteúdo existente no arquivo /etc/apt/sources.list pelas seguintes linhas. Faça backup e remova outras listas de origem existentes em /etc/apt/sources.list.d/ para evitar conflitos.

#------------------------------------------------------------------------------#
#                            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

Execute sudo apt update depois disso. O problema deve ser resolvido.

    
por Ketan Patel 09.05.2018 / 10:51