E: Impossibile scaricare alcuni file indice. Sono stati ignorati o quelli vecchi sono stati usati dopo l'aggiornamento apt-get


21

Il mio /etc/apt/sources.listcontenuto:

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$ 

Ho aggiornato in base a questo post Come ripristinare i repository predefiniti?

Ma ha chiamato un altro problema quando corro sudo apt-get updateho un output come questo:

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 questo:

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.

AGGIORNARE:

Ho fatto questo comando (Grazie NikTh):

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

intero output:

/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

Sembra che tu stia catitando source.list, ma aptusa /etc/apt/sources.list. Puoi pubblicare il contenuto di quel file?
zymhan,

1
Apri un terminale e copia e incolla da qui questo comando, find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \; quindi modifica la tua domanda e aggiungi i risultati completi.
NickTux,

1
Provate questi comandi sudo cp /etc/apt/sources.list ~/, sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list, sudo apt-get update. Tutto bene adesso?
NickTux,

1
Sembra che il tuo problema sia stato risolto. Ignnon è un errore, è normale. Il server locale è generalmente l'opzione migliore perché è vicino a te. Ora stai utilizzando il server USA (lo abbiamo sostituito quando abbiamo wgetinserito l'URL di pastebin nei commenti sopra). Puoi cambiare server e vedere cosa si adatta alle tue esigenze.
NickTux,

1
@NikTh, ovviamente, il formato corretto è Domande nella domanda e soluzione / risposte nella sezione risposta. Questo ragazzo ha incasinato la sua installazione poiché l'intera domanda era un disastro. Per favore, se vedi qualcuno che aggiunge la soluzione alla domanda, ripristina la modifica e chiedi a OP di pubblicarla come risposta o pubblicarla tu stesso.
Braiam,

Risposte:


31
  • Come risolvere questo problema in Ubuntu 12.04

Aprire un terminale (CTRL + ALT + T) ed eseguire i seguenti comandi in ordine.

SOLUZIONE:

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

Questa soluzione non è generale. È specifico del file sources.list del Poster originale.

Il secondo comando che inizia con i wgetdownload e sostituisce il file sources.list con uno specifico per il file sources.list Preciso (Ubuntu 12.04). Vedi il file in formato raw visitando questa pagina .

Il quarto comando rimuove ciò ubuntu-extras.list file che ha avuto un impatto / conflitto con un altro file dello stesso, quindi l'abbiamo rimosso per evitare l'errore

W: Duplicate sources.list entry

vedi i commenti sopra.


1
Non funziona per me
Balaji Rajendran il

4

Significa che non è possibile raggiungere queste fonti:

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  

Prova a selezionare un altro server da cui recuperare (non quello in Ucraina).


2
try selecting another server to fetch from not the (one in Ukraine)come posso fare questo?
nazar_art,

apri ubuntu software center vai a: modifica-> Sorgenti software e modifica il download dal server principale o dagli stati uniti
speedox

1
Era il server principale - sono passato al server USA ma ho riscontrato lo stesso risultato - qui puoi vedere la fine dell'output . Come risolvere questo problema?
nazar_art

non aiutato. Devo riavviare o chiudere la console?
MrGloom,
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.