E: Alguns arquivos de índice falharam ao baixar. Eles foram ignorados ou os antigos foram usados ​​após a atualização do apt-get


21

Meu /etc/apt/sources.listcontido:

nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ cat sources.list.old
deb http://archive.ubuntu.com/ubuntu precise universe
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ 

Eu atualizei de acordo com este post Como restauro os repositórios padrão?

Mas chamou outro problema quando executo sudo apt-get update, tenho alguma saída como esta:

Err http://ua.archive.ubuntu.com main/restricted Sources                       
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe Sources                         
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/multiverse Sources                       
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/restricted amd64 Packages                
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe amd64 Packages                  
  404  Not Found [IP: 91.189.91.13 80]

e isto:

W: Failed to fetch http://ua.archive.ubuntu.com/ubuntu/dists/-backports/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://ua.archive.ubuntu.com/ubuntu/dists/-backports/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch http://ua.archive.ubuntu.com/ubuntu/dists/-backports/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

ATUALIZAR:

Eu fiz este comando (Obrigado NikTh):

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

saída inteira:

/etc/apt/sources.list

     1  #############################################################
     2  ################### OFFICIAL UBUNTU REPOS ###################
     3  #############################################################
     4  
     5  ###### Ubuntu Main Repos
     6  deb http://ua.archive.ubuntu.com/ubuntu/  main restricted universe multiverse 
     7  deb-src http://ua.archive.ubuntu.com/ubuntu/  main restricted universe multiverse 
     8  
     9  ###### Ubuntu Update Repos
    10  deb http://ua.archive.ubuntu.com/ubuntu/ -security main restricted universe multiverse 
    11  deb http://ua.archive.ubuntu.com/ubuntu/ -updates main restricted universe multiverse 
    12  deb http://ua.archive.ubuntu.com/ubuntu/ -proposed main restricted universe multiverse 
    13  deb http://ua.archive.ubuntu.com/ubuntu/ -backports main restricted universe multiverse 
    14  deb-src http://ua.archive.ubuntu.com/ubuntu/ -security main restricted universe multiverse 
    15  deb-src http://ua.archive.ubuntu.com/ubuntu/ -updates main restricted universe multiverse 
    16  deb-src http://ua.archive.ubuntu.com/ubuntu/ -proposed main restricted universe multiverse 
    17  deb-src http://ua.archive.ubuntu.com/ubuntu/ -backports main restricted universe multiverse 
    18  
    19  
    20  
    21  #############################################################
    22  ################### OFFICIAL UBUNTU REPOS ###################
    23  #############################################################
    24  
    25  ###### Ubuntu Main Repos
    26  deb http://ua.archive.ubuntu.com/ubuntu/  main restricted universe multiverse 
    27  deb-src http://ua.archive.ubuntu.com/ubuntu/  main restricted universe multiverse 
    28  
    29  ###### Ubuntu Update Repos
    30  deb http://ua.archive.ubuntu.com/ubuntu/ -security main restricted universe multiverse 
    31  deb http://ua.archive.ubuntu.com/ubuntu/ -updates main restricted universe multiverse 
    32  deb http://ua.archive.ubuntu.com/ubuntu/ -proposed main restricted universe multiverse 
    33  deb http://ua.archive.ubuntu.com/ubuntu/ -backports main restricted universe multiverse 
    34  deb-src http://ua.archive.ubuntu.com/ubuntu/ -security main restricted universe multiverse 
    35  deb-src http://ua.archive.ubuntu.com/ubuntu/ -updates main restricted universe multiverse 
    36  deb-src http://ua.archive.ubuntu.com/ubuntu/ -proposed main restricted universe multiverse 
    37  deb-src http://ua.archive.ubuntu.com/ubuntu/ -backports main restricted universe multiverse 
    38  
    39  

/etc/apt/source.list

     1  deb http://security.ubuntu.com/ubuntu precise-security main universe

/etc/apt/sources.list.d/ubuntu-extras.list

     1  deb http://extras.ubuntu.com/ubuntu/ precise main #Added by software-center
     2  deb-src http://extras.ubuntu.com/ubuntu/ precise main #Added by software-center

/etc/apt/sources.list.d/webupd8team-y-ppa-manager-precise.list

     1  deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu precise main

/etc/apt/sources.list.d/playonlinux.list

     1  deb http://deb.playonlinux.com/ quantal main

/etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_intellij-idea-ce_ubuntu.list

     1  deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/intellij-idea-ce/ubuntu precise main #Added by software-center; credentials stored in /etc/apt/auth.conf

/etc/apt/sources.list.d/webupd8team-sublime-text-3-precise.list

     1  deb http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu precise main

/etc/apt/sources.list.d/medibuntu.list

     1  ## Please report any bug on https://bugs.launchpad.net/medibuntu/
     2  deb http://packages.medibuntu.org/ precise free non-free #Medibuntu - Ubuntu 12.04 "precise pangolin"
     3  # deb-src http://packages.medibuntu.org/ precise free non-free #Medibuntu (source) - Ubuntu 12.04 "precise pangolin"

/etc/apt/sources.list.d/lezhoev-qstamina-precise.list

     1  deb http://ppa.launchpad.net/lezhoev/qstamina/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/lezhoev/qstamina/ubuntu precise main

/etc/apt/sources.list.d/webupd8team-java-precise.list

     1  deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main

/etc/apt/sources.list.d/tualatrix-ppa-precise.list

     1  deb http://ppa.launchpad.net/tualatrix/ppa/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/tualatrix/ppa/ubuntu precise main

/etc/apt/sources.list.d/kilian-f_lux-precise.list

     1  deb http://ppa.launchpad.net/kilian/f.lux/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/kilian/f.lux/ubuntu precise main

/etc/apt/sources.list.d/ubuntu-wine-ppa-precise.list

     1  deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main

/etc/apt/sources.list.d/fsqcds-goldendict-precise.list

     1  deb http://ppa.launchpad.net/fsqcds/goldendict/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/fsqcds/goldendict/ubuntu precise main

/etc/apt/sources.list.d/webupd8team-rhythmbox-precise.list

     1  deb http://ppa.launchpad.net/webupd8team/rhythmbox/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/webupd8team/rhythmbox/ubuntu precise main

/etc/apt/sources.list.d/upubuntu-com-devel-precise.list

     1  deb http://ppa.launchpad.net/upubuntu-com/devel/ubuntu precise main
     2  deb-src http://ppa.launchpad.net/upubuntu-com/devel/ubuntu precise main

Parece que você está amando source.list, mas aptusa /etc/apt/sources.list. Você pode postar o conteúdo desse arquivo?
Zymhan 6/08

1
Abra um terminal e copie e cole a partir daqui, este comando find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \; , edite sua pergunta e adicione os resultados completos.
NickTux

1
Experimente estes comandos sudo cp /etc/apt/sources.list ~/, sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list, sudo apt-get update. Tudo bem agora?
NickTux

1
Parece que seu problema foi resolvido. Ignnão é um erro, é normal. O servidor local geralmente é a melhor opção porque está perto de você. Agora você está usando o servidor dos EUA (o substituímos quando colocamos wgeto URL da pasta nos comentários acima). Você pode alterar os servidores e ver o que se adequa às suas necessidades.
NickTux

1
@ Nikik, é claro, o formato correto é Perguntas na pergunta e solução / respostas na seção de respostas. Esse cara estragou sua instalação, já que toda a pergunta era uma bagunça. Por favor, se você vir alguém anexando a solução à pergunta, reverta a edição e peça ao OP para publicá-la como resposta ou publique você mesmo.
Braiam

Respostas:


31
  • Como resolver esse problema no Ubuntu 12.04

Abra um terminal (CTRL + ALT + T) e execute os seguintes comandos em ordem.

SOLUÇÃO:

sudo cp /etc/apt/sources.list ~/ 
sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list 
sudo apt-get update
sudo rm /etc/apt/sources.list.d/ubuntu-extras.list
sudo apt-get update

Esta solução não é geral. É específico para o arquivo sources.list do Pôster original.

O segundo comando que começa com wgetdownloads e substitui o arquivo sources.list por um arquivo sources.list específico para o Precise (Ubuntu 12.04). Veja o arquivo em formato bruto, visitando esta página .

O quarto comando remove o ubuntu-extras.list file que teve um impacto / conflito com outro arquivo do mesmo, então o removemos para evitar o erro

W: Duplicate sources.list entry

veja os comentários acima.


1
Não está funcionando para mim
Balaji Rajendran

4

Isso significa que essas fontes não podem ser alcançadas:

http://ua.archive.ubuntu.com/ubuntu/dists/-backports/restricted/binary-i386/Packages  
http://ua.archive.ubuntu.com/ubuntu/dists/-backports/universe/binary-i386/Packages   
http://ua.archive.ubuntu.com/ubuntu/dists/-backports/multiverse/binary-i386/Packages  

Tente selecionar outro servidor para buscar (não aquele na Ucrânia).


2
try selecting another server to fetch from not the (one in Ukraine)como posso fazer isso?
Nazar_art 7/08

aberto Ubuntu Software Center Ir para: edit-> Fontes de Software e mudança download para o servidor principal ou estados unidos
speedox

1
Era o servidor principal - mudei para o servidor dos EUA, mas peguei o mesmo resultado - aqui você pode ver o final da saída . Como resolver este problema?
Nazar_art 7/08

não ajudou. Preciso reiniciar ou fechar o console?
mrgloom
Ao utilizar nosso site, você reconhece que leu e compreendeu nossa Política de Cookies e nossa Política de Privacidade.
Licensed under cc by-sa 3.0 with attribution required.