Quando eu executo o comando sudo apt-get update, achei um erro no ubuntu 16.04 LTS [duplicate]

0
yugasalabs-26@yugasalabs-26:~$ sudo apt-get update
[sudo] password for yugasalabs-26: 

Fetched 94.5 kB in 1s (61.3 kB/s)                  
Reading package lists... Done
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Translations (partner/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Can't drop privileges for downloading as file '/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_xenial_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Translations (partner/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/canonical_partner.list:1 and /etc/apt/sources.list.d/canonical_partner.list:2
    
por Amit Khurchay 23.06.2016 / 07:14

2 respostas

3

Verifique o conteúdo de /etc/apt/sources.list.d/canonical-partners.list se eles também existirem em /etc/apt/sources.list . Se sim, remova as linhas duplas em /etc/apt/sources.list ou remova esse arquivo canonical-partner.list . Em segundo lugar, pode ser uma solução mais fácil.

sudo rm /etc/apt/sources.list.d/canonical_partner.list
    
por Videonauth 23.06.2016 / 07:40
1

Seu arquivo /etc/apt/sources.list.d/canonical_partner.list possui o mesmo repositório configurado duas vezes.

Você pode editar o arquivo e remover a linha duplicada (2ª linha do arquivo) ou remover essa referência para ser usado no modo gráfico, removendo / desmarcando-os.

Editando o arquivo para remover repositórios duplicados

  1. Terminal aberto: ctrl + alt + t
  2. Escreva sudo gedit /etc/apt/sources.list.d/canonical_partner.list
  3. Remover linhas duplicadas (segunda linha do arquivo).
  4. Salve o arquivo usando o menu: arquivo > salvar
  5. Feche gedit .
  6. Agora você pode tentar o sudo apt-get update no terminal novamente.

Desativando / excluindo repositórios duplicados no modo gráfico

  1. No menu lateral, clique em Configurações do sistema .
  2. Na faixa Sistema , clique em Software & amp; Atualizações .
  3. Navegue até a guia Outro software .
  4. Encontre repositórios duplicados e desmarque ou exclua um deles.
  5. Clique em Fechar .
  6. Clique em Recarregar .
  7. O Recarregar é equivalente a sudo apt-get update . Se tudo correr bem, você pode atualizar quando quiser novamente!
por Thiago Rider Augusto 23.06.2016 / 17:30