Eu recebo o erro “Falha ao baixar informações do repositório. Verifique sua conexão com a Internet. ”Como posso consertar isso?

0

Não consegui atualizar minha máquina Ubuntu 16.04 no último mês devido a esse erro. Quando clico para ver os detalhes, recebo

W:Target Sources (main/source/Sources) is configured multiple times in
/etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:2 and
/etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:3, 
W:The repository 'cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2) xenial Release' does not have a Release file., 
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., 
W:See apt-secure(8) manpage for repository creation and user configuration details., 
W:The repository http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu xenial Release' does not have a Release file., 
W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., 
W:See apt-secure(8) manpage for repository creation and user configuration
details., 
E:Failed to fetch cdrom://Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)/dists/xenial/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs, 
E:Failed to fetch http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/dists/xenial/main/source/Sources 404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.

Você pode me dizer o que eu fiz de errado ou o que posso fazer para resolver isso?

    
por Mikey Kuplevatsky 09.07.2017 / 19:18

1 resposta

1

Vou oferecer várias soluções:

  1. Para se livrar do erro de cdrom, veja aqui

  2. Para o erro:

    W:Target Sources (main/source/Sources) is configured multiple times in
    /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:2 and
    /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list:3'
    
      1. Abra /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list e remova as entradas duplicadas para o repositório existente ou apenas adicione # na frente de uma das entradas.

        sudo nano /etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-xenial.list
        
  3. Para corrigir este erro The repository http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu xenial Release' does not have a Release file.,

      1. remova o repo com:

        sudo add-apt-repository -r ppa:noobslab/deepin-sc
        
  4. Depois disso, execute sudo apt update then sudo apt dist-upgrade

por George Udosen 09.07.2017 / 20:14