Como consertar duplicatas aparentemente autogeradas em sources.list em 14.04 LTS? [duplicado]

0

Então eu passei pela pergunta Como corrigir a entrada de sources.list Duplicada? e a maior parte da resposta, mas esse problema não parece ser corrigido. O erro que estou recebendo é:

Fetched 30.0 MB in 51s (577 kB/s)                                              
Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-backports_multiverse_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

O source.list :

# deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/ saucy main restricted
# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb-src http://archive.ubuntu.com/ubuntu trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu trusty-security universe
deb-src http://archive.ubuntu.com/ubuntu trusty-security universe
deb http://archive.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
# deb http://deb.torproject.org/torproject.org trusty main # disabled on upgrade to trusty
deb http://archive.ubuntu.com/ubuntu trusty-backports multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty-backports multiverse

O que tentei é

  • excluindo o arquivo source.list
  • sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.bak
  • sudo rm /etc/apt/sources.list.distUpgrade
  • removeu um repositório de origem duplicado e garante que não haja outro

O comando que estou usando é sudo apt-get clean && sudo apt-get update . Tentei mesmo sem a limpeza.

Como posso resolver este problema?

Histórico:

  1. Meu Emacs Tramp está dando o erro cond: Couldn't find a proper 'ls' command . Então tentei as respostas aqui . Mas nenhum resultado.
  2. Tentei compilar o Emacs 24.4 (não disponível no centro de software). Não foi possível devido a ( sudo apt-get build-dep emacs24 ):

    The following packages have unmet dependencies:
    libgtk-3-dev : Depends: libgtk-3-0 (= 3.10.8-0ubuntu1.2) but 3.12.2-0ubuntu4~trusty1 is to be installed
    E: Build-dependencies for emacs24 could not be satisfied.
    
  3. Então eu encontrei este . O que disse para consertar pacotes quebrados usa o comando sudo apt-get clean && sudo apt-get update
por Bleeding Fingers 23.11.2014 / 17:54

1 resposta

1

Eu não posso comentar, então tenho que adicionar isso como resposta.

Você pode mostrar sua sources.list?

Eu não acho que o problema seja com sources.list.d / *. list porque o erro é com o repositório multiverso ubuntu. Aposto que você tem duas entradas do multiverso de backports confiáveis em seu /etc/apt/sources.list de alguma forma. Pode ser uma única linha duplicada, ou algo parecido com

deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-backports multiverse

Abra o seu sources.list em um editor de texto, localize as duplicatas e exclua as linhas extras.

    
por Sudhanshu 23.11.2014 / 18:06