Impossibile recuperare http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources 404 non trovato [IP: 91.189.91.26 80]


9

Sto usando Ubuntu 16.04 LTS. Questa mattina, quando ho corso sudo apt-get update, ho riscontrato il seguente errore:

W: The repository 'http://us.archive.ubuntu.com/ubuntu lucid Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources  404  Not Found [IP: 91.189.91.26 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Ho controllato su Internet una risposta. Anche se ho trovato alcuni post simili, nessuna soluzione funziona per me. Una delle soluzioni interessanti che ho provato è stata:

La soluzione più semplice è eseguire i due passaggi seguenti:

1- Esegui il backup dell'elenco delle fonti -> sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2- Aprire il file sorgenti "/etc/apt/sources.list" Rinominare tutte le istanze di us.archive o archiviare in http://us.archive.ubuntu.com/ubuntu/a

http://old-releases.ubuntu.com/ubuntu/

Fare lo stesso anche per http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages

3- Eseguire sudo apt-get update dopo aver fatto quanto sopra.

Indovina cosa .. non ha funzionato. Infatti ha generato più errori:

W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://us.archive.ubuntu.com/ubuntu lucid Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources  404  Not Found [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Per favore aiuto.

MODIFICARE:

Ecco la mia fonte originale:

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-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://in.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-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://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

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


1
@mikewhatever Il duplicato non è valido - il problema del PO non è la selezione del 'mirror più veloce', ma piuttosto hanno cercato di risolvere un problema di avviso del repository Lucid e nel processo hanno interrotto la loro configurazione Xenial.
Thomas Ward

Risposte:


13

Hai fatto alcuni gravi errori qui.

Innanzitutto, stai eseguendo 16.04. Ciò significa che non è possibile sostituire ciecamente il normale mirror dell'archivio con old-releases. Questo è il motivo per cui attualmente ricevi gli errori che ricevi sui repository Xenial mancanti.

In secondo luogo, stai ancora provando a disegnare dal repository Lucid. Questo non ti aiuterà, perché una buona parte degli elementi nel repository Lucid non funzionerà in Xenial o saranno rimossi dai repository per vari motivi o sostituiti da versioni aggiornate. E, le istruzioni che hai seguito per le vecchie versioni si applicano solo alla linea di repository Lucid che avevi nelle tue configurazioni.


Ecco come risolvere i problemi che stai riscontrando.

  1. Passare attraverso /etc/apt/sources.list, e iniziare sostituendo tutte le old-releases.ubuntu.comvoci con il vostro specchio originale, us.archive.ubuntu.com.
  2. Trova le righe che fanno riferimento lucide commentale o utilizza old-releases.ubuntu.com solo per quel repository .

    Se non si sa quale voce /etc/apt/sources.listo /etc/apt/sources.list.d/*ha voce 'lucida', quindi eseguire questo comando da /etc/apt/: grep -r -i lucid /etc/apt/; identificherà i file contenenti la parola "lucido"

  3. sudo apt-get update e comandi simili ora dovrebbero funzionare senza problemi.

Consiglio vivamente di commentare i repository Lucid, poiché sono anche a fine vita, e se non hai davvero bisogno di qualcosa da loro, non dovresti tenerli attivi.


Non riesco a trovare alcun riferimento alla linea lucid. Ho modificato la domanda e aggiunto il mio sources.list. Potresti dare un'occhiata?
utkarsh2k2,

Controlla ovunque anche in /etc/apt/sources.list.d/. Da qualche parte hai Lucid, o non avresti ottenuto l'errore che hai fatto all'inizio. Prova a provare apt-get updateanche tu per vedere se l'errore è stato risolto. (usare grep -r -i lucid /etc/apt/per trovare riferimenti lucidi)
Thomas Ward

trovato. All'interno c'erano 2 riferimenti /etc/apt/sources.list.d/alternative_Repo.list. Dopo averli commentati, gli errori sono spariti ora.
utkarsh2k2,
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.