apt-get update [RESOLVIDO]

1. apt-get update [RESOLVIDO]

Trytski
Drodg_Rose

(usa Deepin)

Enviado em 27/09/2014 - 01:07h

Olá gente do viva o linux

Alguém pode me ajudar com este problema?

Lendo listas de pacotes... Pronto
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ trusty-security/restricted amd64 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_restricted_binary-i386_Packages)
W: Você terá que executar apt-get update para corrigir estes problemas


Claro que quando executo novamente o update o erro se repete.
Tentei editar meu sources.list porém não sei quais pacotes posso realmente remover.
Meu sistema é 64bits


Se alguém puder ajudar eu agradeço =)


  


2. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 01:17h

sudo gedit /etc/apt/sources.list apague a linha que estiver duplicada salva fecha e de um update.Ou use o synaptic que e mais facil!


3. Re: apt-get update [RESOLVIDO]

Trytski
Drodg_Rose

(usa Deepin)

Enviado em 27/09/2014 - 01:45h

AgnaldoLucindo escreveu:

sudo gedit /etc/apt/sources.list apague a linha que estiver duplicada salva fecha e de um update.Ou use o synaptic que e mais facil!


Como posso saber se as linhas são realmente duplicadas? Por exemplo, se deb e deb-src são diferentes ou posso removelos quando forem iguais...
Como em: deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


4. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 02:22h

#deb cdrom:[Ubuntu 14.04 _Trusty Tahr_ - Release i386]/ Trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://gb.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://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe 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 trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse


5. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 02:25h

Voce so pode modificar depois do fim dessa sources.list.Mais eu nao sei o que e porque voce nao colocou a sua aqui (y)


6. Re: apt-get update [RESOLVIDO]

Trytski
Drodg_Rose

(usa Deepin)

Enviado em 27/09/2014 - 02:43h

AgnaldoLucindo escreveu:

Voce so pode modificar depois do fim dessa sources.list.Mais eu nao sei o que e porque voce nao colocou a sua aqui (y)



Aqui esta ela

# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty$
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://security.ubuntu.com/ubuntu/">http://security.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://br.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://br.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty universe
deb http://br.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://br.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://br.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://br.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://br.archive.ubuntu.com/ubuntu/ trusty-backports main restricted unive$
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty-backports main restricted u$

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.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 trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty 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


7. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 03:51h

Cola todo esse comando de uma vez e de enter:sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo apt-get clean ; sudo apt-get update


8. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 09:58h

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo apt-get update


9. Re: apt-get update [RESOLVIDO]

Trytski
Drodg_Rose

(usa Deepin)

Enviado em 27/09/2014 - 14:22h

AgnaldoLucindo escreveu:

Cola todo esse comando de uma vez e de enter:sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get -f install ; sudo apt-get clean ; sudo apt-get update




rm: não foi possível remover “/var/lib/apt/lists/partial”: É um diretório
rm: não foi possível remover “/var/lib/apt/lists/partial/*”: Arquivo ou diretório não encontrado



Depois disso ele prosseguiu com o update e deu o aquele mesmo erro


10. Re: apt-get update [RESOLVIDO]

Trytski
Drodg_Rose

(usa Deepin)

Enviado em 27/09/2014 - 14:38h

clodoaldops escreveu:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo apt-get update




O mesmo erro persistiu


11. Re: apt-get update [RESOLVIDO]

Showeidek
showeidek

(usa Slackware)

Enviado em 27/09/2014 - 14:43h

Para remover diretórios use

rm -rf diretório


12. Re: apt-get update [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 27/09/2014 - 14:47h

Eu vi i386 la em cima e voce nao postou!O problema quase sempre e ppa se voce instalou algum programa novo e nao colocou ai nao tem como consertar sem ver a ppa.Tem ppa antiga que quebra o sistema (y)



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts