Mendapatkan 404 tidak ditemukan kesalahan saat melakukan `sudo apt-get update`


25
cat /etc/issue
Ubuntu 14.04.1 LTS \n \l

Saya mendapatkan kesalahan berikut saat melakukan sudo apt-get update, saya telah mencoba sudo apt-get dist-upgradeseperti yang disarankan di sini tetapi tampaknya tidak ada yang memperbaiki masalah. Tampaknya dari membaca pertanyaan lain yang berkaitan dengan masalah ini bahwa versi Ubuntu tidak lagi didukung tetapi saya menjalankan versi terbaru dari Ubuntu.

Ign http://au.archive.ubuntu.com trusty InRelease
Ign http://au.archive.ubuntu.com trusty-updates InRelease                      
Ign http://au.archive.ubuntu.com trusty-backports InRelease                    
Ign http://dl.google.com stable InRelease                                      
Ign http://au.archive.ubuntu.com trusty-security InRelease                     
Hit http://au.archive.ubuntu.com trusty Release.gpg                            
Hit http://au.archive.ubuntu.com trusty-updates Release.gpg                    
Hit http://au.archive.ubuntu.com trusty-backports Release.gpg                  
Hit http://dl.google.com stable Release.gpg                                    
Hit http://au.archive.ubuntu.com trusty-security Release.gpg                   
Hit http://au.archive.ubuntu.com trusty Release                                
Hit http://au.archive.ubuntu.com trusty-updates Release                        
Hit http://au.archive.ubuntu.com trusty-backports Release                      
Hit http://dl.google.com stable Release                                        
Hit http://au.archive.ubuntu.com trusty-security Release                       
Hit http://apt.insynchq.com trusty InRelease                                   
Hit http://au.archive.ubuntu.com trusty/main Sources                           
Ign http://archive.ubuntu.com main InRelease                                   
Ign http://extras.ubuntu.com trusty InRelease                                  
Ign http://archive.canonical.com trusty InRelease                              
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://au.archive.ubuntu.com trusty/restricted Sources                     
Hit http://au.archive.ubuntu.com trusty/universe Sources                       
Hit http://dl.google.com stable/main amd64 Packages                            
Hit http://au.archive.ubuntu.com trusty/multiverse Sources                     
Hit http://au.archive.ubuntu.com trusty/main amd64 Packages                    
Hit http://au.archive.ubuntu.com trusty/restricted amd64 Packages              
Hit http://au.archive.ubuntu.com trusty/universe amd64 Packages                
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://apt.insynchq.com trusty/non-free amd64 Packages                     
Ign http://archive.ubuntu.com main Release.gpg                                 
Hit http://extras.ubuntu.com trusty Release.gpg                                
Hit http://au.archive.ubuntu.com trusty/multiverse amd64 Packages              
Hit http://archive.canonical.com trusty Release.gpg                            
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://au.archive.ubuntu.com trusty/main i386 Packages                     
Hit http://au.archive.ubuntu.com trusty/restricted i386 Packages               
Hit http://au.archive.ubuntu.com trusty/universe i386 Packages                 
Hit http://au.archive.ubuntu.com trusty/multiverse i386 Packages               
Hit http://au.archive.ubuntu.com trusty/main Translation-en_AU                 
Hit http://apt.insynchq.com trusty/contrib amd64 Packages                      
Hit http://au.archive.ubuntu.com trusty/main Translation-en                    
Ign http://archive.ubuntu.com main Release                                     
Hit http://au.archive.ubuntu.com trusty/main Translation-en_GB                 
Hit http://extras.ubuntu.com trusty Release                                    
Hit http://archive.canonical.com trusty Release                                
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://au.archive.ubuntu.com trusty/multiverse Translation-en_AU           
Hit http://au.archive.ubuntu.com trusty/multiverse Translation-en              
Hit http://au.archive.ubuntu.com trusty/multiverse Translation-en_GB           
Hit http://au.archive.ubuntu.com trusty/restricted Translation-en_AU           
Hit http://au.archive.ubuntu.com trusty/restricted Translation-en              
Hit http://apt.insynchq.com trusty/non-free i386 Packages                      
Hit http://au.archive.ubuntu.com trusty/restricted Translation-en_GB           
Hit http://au.archive.ubuntu.com trusty/universe Translation-en_AU             
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Hit http://au.archive.ubuntu.com trusty/universe Translation-en                
Hit http://au.archive.ubuntu.com trusty/universe Translation-en_GB             
Hit http://au.archive.ubuntu.com trusty-updates/main Sources                   
Hit http://au.archive.ubuntu.com trusty-updates/restricted Sources             
Hit http://apt.insynchq.com trusty/contrib i386 Packages                       
Hit http://au.archive.ubuntu.com trusty-updates/universe Sources               
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Hit http://au.archive.ubuntu.com trusty-updates/multiverse Sources             
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Hit http://au.archive.ubuntu.com trusty-updates/main amd64 Packages            
Hit http://au.archive.ubuntu.com trusty-updates/restricted amd64 Packages      
Hit http://au.archive.ubuntu.com trusty-updates/universe amd64 Packages        
Hit http://au.archive.ubuntu.com trusty-updates/multiverse amd64 Packages      
Hit http://au.archive.ubuntu.com trusty-updates/main i386 Packages             
Hit http://au.archive.ubuntu.com trusty-updates/restricted i386 Packages       
Hit http://au.archive.ubuntu.com trusty-updates/universe i386 Packages         
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Hit http://au.archive.ubuntu.com trusty-updates/multiverse i386 Packages       
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://au.archive.ubuntu.com trusty-updates/main Translation-en            
Hit http://au.archive.ubuntu.com trusty-updates/multiverse Translation-en      
Hit http://au.archive.ubuntu.com trusty-updates/restricted Translation-en      
Hit http://au.archive.ubuntu.com trusty-updates/universe Translation-en        
Hit http://au.archive.ubuntu.com trusty-backports/main Sources                 
Hit http://au.archive.ubuntu.com trusty-backports/restricted Sources           
Hit http://au.archive.ubuntu.com trusty-backports/universe Sources             
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://au.archive.ubuntu.com trusty-backports/multiverse Sources           
Hit http://au.archive.ubuntu.com trusty-backports/main amd64 Packages          
Hit http://au.archive.ubuntu.com trusty-backports/restricted amd64 Packages    
Hit http://au.archive.ubuntu.com trusty-backports/universe amd64 Packages      
Hit http://au.archive.ubuntu.com trusty-backports/multiverse amd64 Packages    
Hit http://au.archive.ubuntu.com trusty-backports/main i386 Packages           
Hit http://au.archive.ubuntu.com trusty-backports/restricted i386 Packages     
Hit http://ppa.launchpad.net trusty Release.gpg                                
Ign http://archive.canonical.com trusty/partner Translation-en                 
Hit http://au.archive.ubuntu.com trusty-backports/universe i386 Packages       
Hit http://au.archive.ubuntu.com trusty-backports/multiverse i386 Packages     
Hit http://au.archive.ubuntu.com trusty-backports/main Translation-en          
Ign http://dl.google.com stable/main Translation-en_AU                         
Hit http://au.archive.ubuntu.com trusty-backports/multiverse Translation-en    
Hit http://au.archive.ubuntu.com trusty-backports/restricted Translation-en    
Hit http://au.archive.ubuntu.com trusty-backports/universe Translation-en      
Hit http://au.archive.ubuntu.com trusty-security/main Sources                  
Ign http://dl.google.com stable/main Translation-en                            
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://au.archive.ubuntu.com trusty-security/restricted Sources            
Hit http://au.archive.ubuntu.com trusty-security/universe Sources              
Hit http://au.archive.ubuntu.com trusty-security/multiverse Sources            
Ign http://dl.google.com stable/main Translation-en_GB                         
Hit http://au.archive.ubuntu.com trusty-security/main amd64 Packages           
Hit http://au.archive.ubuntu.com trusty-security/restricted amd64 Packages     
Hit http://au.archive.ubuntu.com trusty-security/universe amd64 Packages       
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://au.archive.ubuntu.com trusty-security/multiverse amd64 Packages     
Hit http://au.archive.ubuntu.com trusty-security/main i386 Packages            
Hit http://au.archive.ubuntu.com trusty-security/restricted i386 Packages      
Hit http://au.archive.ubuntu.com trusty-security/universe i386 Packages        
Hit http://au.archive.ubuntu.com trusty-security/multiverse i386 Packages      
Hit http://au.archive.ubuntu.com trusty-security/main Translation-en           
Hit http://au.archive.ubuntu.com trusty-security/multiverse Translation-en     
Hit http://au.archive.ubuntu.com trusty-security/restricted Translation-en     
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://au.archive.ubuntu.com trusty-security/universe Translation-en       
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://ppa.launchpad.net trusty Release.gpg                       
Hit http://ppa.launchpad.net trusty Release                           
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://ppa.launchpad.net trusty Release                                    
Ign http://extras.ubuntu.com trusty/main Translation-en_AU                     
Ign http://extras.ubuntu.com trusty/main Translation-en                        
Hit http://ppa.launchpad.net trusty Release                           
Ign http://extras.ubuntu.com trusty/main Translation-en_GB                     
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Ign http://apt.insynchq.com trusty/contrib Translation-en_AU                   
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Ign http://apt.insynchq.com trusty/contrib Translation-en                      
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Ign http://apt.insynchq.com trusty/contrib Translation-en_GB                   
Ign http://apt.insynchq.com trusty/non-free Translation-en_AU                  
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Ign http://apt.insynchq.com trusty/non-free Translation-en                     
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Ign http://apt.insynchq.com trusty/non-free Translation-en_GB                  
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Err http://archive.ubuntu.com main/universe amd64 Packages                     
  404  Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com main/restricted amd64 Packages                   
  404  Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com main/multiverse amd64 Packages                   
  404  Not Found [IP: 91.189.92.200 80]
Ign http://ppa.launchpad.net trusty/main Translation-en_AU                     
Err http://archive.ubuntu.com main/universe i386 Packages                      
  404  Not Found [IP: 91.189.92.200 80]
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Err http://archive.ubuntu.com main/restricted i386 Packages                    
  404  Not Found [IP: 91.189.92.200 80]
Ign http://ppa.launchpad.net trusty/main Translation-en_GB                     
Err http://archive.ubuntu.com main/multiverse i386 Packages                    
  404  Not Found [IP: 91.189.92.200 80]
Ign http://ppa.launchpad.net trusty/main Translation-en_AU                     
Ign http://archive.ubuntu.com main/multiverse Translation-en_AU                
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Ign http://archive.ubuntu.com main/multiverse Translation-en                   
Ign http://ppa.launchpad.net trusty/main Translation-en_GB                     
Ign http://archive.ubuntu.com main/multiverse Translation-en_GB                
Ign http://archive.ubuntu.com main/restricted Translation-en_AU                
Ign http://archive.ubuntu.com main/restricted Translation-en                   
Ign http://archive.ubuntu.com main/restricted Translation-en_GB                
Ign http://archive.ubuntu.com main/universe Translation-en_AU                  
Ign http://archive.ubuntu.com main/universe Translation-en                     
Ign http://archive.ubuntu.com main/universe Translation-en_GB
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/main/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/main/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/main/multiverse/binary-amd64/Packages  404  Not Found [IP: 91.189.92.200 80]

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

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

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/main/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.92.200 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

/etc/apt/sources.list

# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

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

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

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

Bisakah Anda memposting konten /etc/apt/sources.list?
saiarcot895

Saya memiliki masalah serupa pada PC lama saya, yang akan saya bersihkan / nonaktifkan ( jadi tidak mendesak untuk diperbaiki ). Saya belum menyelesaikan ..
david6

@ saiarcot895 ya, menambahkannya ke post
jax

Jawaban:


12

Hapus baris yang berbunyi deb http://archive.ubuntu.com/ubuntu main universe restricted multiverse(dan baris komentar setelah itu, jika Anda mau). Kemudian jalankan sudo apt-get update. Seharusnya tidak ada kesalahan sekarang.


2
Itu memperbaiki masalah, tahukah Anda mengapa? Saya tidak menambahkan repositori itu sendiri, saya pikir itu ditambahkan ketika saya awalnya menginstal Ubuntu.
Jax

1
Sintaksnya (untuk repo Ubuntu default) salah. Tepat setelah URL, versi distro ( trusty) biasanya ada di sana, diikuti oleh bagian-bagian berbeda dari repo (satu atau lebih diizinkan). Lihat URL lain untuk sintaks.
saiarcot895

Terima kasih telah berbagi pengetahuan Anda. Saya telah menggunakan solusi Anda dan askubuntu.com/a/468062/47992 ini . Masalah akhirnya terpecahkan. Butuh beberapa jam untuk menemukan ini ...
user65130

Perhatikan bahwa jika Anda menggunakan perintah dalam solusi kedua, Anda mungkin ingin mengaktifkan / menambahkan pembaruan bugfix dan repo pembaruan keamanan juga.
saiarcot895

16

Untuk mengubah semua url usang Anda http://archive.ubuntu.comke url yang berfungsihttp://old-releases.ubuntu.com

sudo sed -i -e 's/:\/\/(archive.ubuntu.com\|security.ubuntu.com)/old-releases.ubuntu.com/g' /etc/apt/sources.list

Jawaban ini didasarkan pada https://smyl.es/how-to-fix-ubuntudebian-apt-get-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/


2
Jawaban ini dimaksudkan untuk rilis yang berada di luar batas dukungan. Dalam hal pertanyaan ini, 14,04 LTS masih di bawah dukungan.
Sn3akyP3t3

@Pylinux Saya masih menghadapi masalah ini
ravi404

5

Pertama kali dijalankan sudo apt-get -y upgradeuntuk mendapatkan apt-get repointed dengan benar.

Kemudian Anda dapat menjalankan perintah seperti:

sudo apt-get -y update
sudo apt-get -y dist-upgrade

tanpa mendapatkan kesalahan "404 Tidak Ditemukan".


2
Ini solusi terbaik bagi saya. Jawaban lain mengharuskan saya untuk langsung memodifikasi file yang biasanya dikelola secara otomatis dan saya tidak nyaman dengan itu.
Vince

Apakah Anda tahu mengapa itu memecahkan masalah? Karena kami biasanya disarankan untuk menjalankan updateSEBELUMupgrade
lapin

@lapin saya tidak tahu.
Michael Currie
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.