erro apt-get

Iniciado por Wellington Ton, 24 de Setembro de 2015, 20:49

tópico anterior - próximo tópico

Wellington Ton

Como resolver esses erros:

Obs: O sources.list está logo abaixo.


ton@ton:~$ sudo apt-get update
[sudo] password for ton:
Ign http://br.archive.ubuntu.com trusty InRelease                             
Ign http://br.archive.ubuntu.com trusty-updates InRelease                     
Ign http://dl.google.com stable InRelease                                     
Ign http://br.archive.ubuntu.com trusty-backports InRelease                   
Atingido http://br.archive.ubuntu.com trusty Release.gpg                       
Ign http://ppa.launchpad.net trusty InRelease                                 
Ign http://security.ubuntu.com trusty-security InRelease                       
Atingido http://dl.google.com stable Release.gpg                               
Atingido http://br.archive.ubuntu.com trusty-updates Release.gpg               
Atingido http://br.archive.ubuntu.com trusty-backports Release.gpg             
Atingido http://ppa.launchpad.net trusty Release.gpg                           
Atingido http://dl.google.com stable Release                                   
Atingido http://br.archive.ubuntu.com trusty Release                           
Atingido http://security.ubuntu.com trusty-security Release.gpg               
Atingido http://br.archive.ubuntu.com trusty-updates Release                   
Atingido http://dl.google.com stable/main amd64 Packages                       
Atingido http://br.archive.ubuntu.com trusty-backports Release                 
Atingido http://br.archive.ubuntu.com trusty/main Sources                     
Atingido http://ppa.launchpad.net trusty Release                               
Atingido http://dl.google.com stable/main i386 Packages                       
Atingido http://security.ubuntu.com trusty-security Release                   
Atingido http://br.archive.ubuntu.com trusty-updates/main Sources             
Atingido http://br.archive.ubuntu.com trusty-backports/main Sources           
Atingido http://ppa.launchpad.net trusty/main amd64 Packages                   
Atingido http://security.ubuntu.com trusty-security/main Sources               
Atingido http://ppa.launchpad.net trusty/main i386 Packages                   
Atingido http://ppa.launchpad.net trusty/main Translation-en                   
Ign http://dl.google.com stable/main Translation-pt_BR       
Ign http://dl.google.com stable/main Translation-pt                           
Ign http://dl.google.com stable/main Translation-pt_PT                         
Ign http://dl.google.com stable/main Translation-en                           
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/Release  Incapaz de encontrar a entrada 'contrib/source/Sources' esperada no ficheiro Release (entrada errada em sources.list ou ficheiro malformado)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release  Incapaz de encontrar a entrada 'contrib/source/Sources' esperada no ficheiro Release (entrada errada em sources.list ou ficheiro malformado)

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release  Incapaz de encontrar a entrada 'contrib/source/Sources' esperada no ficheiro Release (entrada errada em sources.list ou ficheiro malformado)

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/Release  Incapaz de encontrar a entrada 'contrib/source/Sources' esperada no ficheiro Release (entrada errada em sources.list ou ficheiro malformado)

E: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.

Sources.list:

# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main contrib non-free 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 contrib non-free restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty main contrib non-free restricted

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

deb http://security.ubuntu.com/ubuntu trusty-security main contrib non-free restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main contrib non-free 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.





alisson_sdj

ola Wellington Ton coloca esses comando aqui e coloca a resposta depois

sudo rm /var/lib/apt/lists/lock

sudo rm /var/lib/dpkg/lock

sudo apt-get update && sudo apt-get upgrade
Se não resolver logo apos isso faça o seguinte:

sudo apt-get -f remove && sudo apt-get autoremove && sudo apt-get -f install &&  sudo dpkg --configure -a && sudo apt-get clean && sudo apt-get autoclean && sudo apt-get update

OBS: É só copiar e colar no Terminal.
"A melhor maneira de prever o futuro é inventá-lo." Alan Kay

Wellington Ton

alisson_sdj

executei todos os comandos mas ainda continua dando os mesmos erros

Obs: eu acho que  isso aconteceu depois que eu adicionei duas vezes os repositórios java

alisson_sdj

ola Wellington Ton, va na central de programas do ubuntu e na opção: Editar  ----> canais de software ---> outros programas você procura pelo repositorio duplicado, desmarque ele deixando somente um e logo em seguida digite o comando no terminal:

sudo apt-get update

"A melhor maneira de prever o futuro é inventá-lo." Alan Kay

Wellington Ton

alisson_sdj

Criei uma máquina virtual colei o meu sources.list deu o mesmo erro,  peguei o meu sources.list apaguei e colei o da máquina virtual e resolvi o problema.

Obrigado pela ajuda.