Não consigo instalar nenhum pacote

0

Eu não consigo instalar nenhum pacote usando o apt install. Estou recebendo o seguinte erro

  sudo apt-get install mysql-server
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  E: Unable to locate package mysql-server

quando eu faço o apt-get update

# apt-get update
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [1,539 B]
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
    Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [1,548 B]
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
    Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [1,547 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 main InRelease [1,537 B]
Err:4 http://archive.ubuntu.com/ubuntu main InRelease
    Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:5 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton InRelease [1,554 B]
Err:5 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton InRelease
    Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Fetched 7,725 B in 0s (13.5 kB/s)
Reading package lists... Done
W: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_xenial_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
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/main/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/xenial-updates/newton/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.

Antes disso eu tentei desinstalar o mysql e eu segui isso

apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb

Depois disso, estou apenas recebendo este erro. Ajude-me a resolver isso.

    
por Arul Guna 02.05.2017 / 08:57

1 resposta

1

Parece que você não tem acesso à Internet durante essa tentativa. Tente pingar google.com ou vá para a internet e, se puder, tente executar novamente. Eu tive problemas com o acesso à internet depois de acordar o meu laptop de sono, então eu iria pelo menos tentar "systemctl reiniciar a rede".

Também pode valer a pena verificar se a partição / boot / está cheia. Execute "df -h" e veja quanto espaço está disponível lá.

Sei que minha resposta pode parecer um pouco boba, mas você não pode esquecer de verificar o básico antes de tentar atualizar / atualizar / instalar pacotes.

    
por Gordster 02.05.2017 / 09:22