php – Laravel Homestead的“apt-get update”给出了404

Homestead 2.1.7(方框0.4.0)预先配置的源列表是否存在一些错误配置?

PS.如果Homestead的下一个版本在配置文件中包含用于安装一些预先配置的附加软件包(如MS SQL)的选项,将不胜感激.是的并非每个人都需要它们,但是对于客户项目,通常需要比#laragarden更多的异国情调的包装

vagrant@homestead:~$sudo apt-get update
Hit http://apt.postgresql.org trusty-pgdg InRelease                            
Ign http://ppa.launchpad.net trusty InRelease                                  
Ign http://us.archive.ubuntu.com trusty InRelease                              
Hit http://security.ubuntu.com trusty-security InRelease                       
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://apt.postgresql.org trusty-pgdg/main amd64 Packages                  
Hit http://ppa.launchpad.net trusty InRelease                                  
Get:1 http://us.archive.ubuntu.com trusty-updates InRelease [64.4 kB]          
Hit http://ppa.launchpad.net trusty InRelease                                  
Hit http://security.ubuntu.com trusty-security/main Sources                    
Ign http://dl.hhvm.com utopic InRelease                                        
Hit http://apt.postgresql.org trusty-pgdg/main i386 Packages                   
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://security.ubuntu.com trusty-security/restricted Sources              
Hit http://ppa.launchpad.net trusty Release.gpg                                
Ign http://dl.hhvm.com utopic Release.gpg                                      
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://security.ubuntu.com trusty-security/universe Sources                
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Ign http://dl.hhvm.com utopic Release                                          
Hit http://security.ubuntu.com trusty-security/multiverse Sources              
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://us.archive.ubuntu.com trusty-backports InRelease                    
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://security.ubuntu.com trusty-security/main amd64 Packages             
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Ign http://dl.hhvm.com utopic/main amd64 Packages/DiffIndex                    
Hit http://us.archive.ubuntu.com trusty Release.gpg                            
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://ppa.launchpad.net trusty Release                                    
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en_US               
Hit http://packages.blackfire.io any InRelease                                 
Get:2 http://us.archive.ubuntu.com trusty-updates/main Sources [248 kB]        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Ign http://dl.hhvm.com utopic/main i386 Packages/DiffIndex                     
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Ign http://apt.postgresql.org trusty-pgdg/main Translation-en                  
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://security.ubuntu.com trusty-security/universe i386 Packages          
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages        
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://packages.blackfire.io any/main amd64 Packages                       
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en       
Get:3 http://us.archive.ubuntu.com trusty-updates/restricted Sources [5,359 B] 
Hit http://security.ubuntu.com trusty-security/restricted Translation-en       
Get:4 http://us.archive.ubuntu.com trusty-updates/universe Sources [147 kB]    
Hit http://security.ubuntu.com trusty-security/universe Translation-en         
Get:5 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [5,161 B] 
Hit http://packages.blackfire.io any/main i386 Packages                        
Get:6 http://us.archive.ubuntu.com trusty-updates/main amd64 Packages [689 kB] 
Ign http://dl.hhvm.com utopic/main Translation-en_US                           
Ign http://dl.hhvm.com utopic/main Translation-en                              
Err http://dl.hhvm.com utopic/main amd64 Packages                              
  404  Not Found [IP: 140.211.166.134 80]
Err http://dl.hhvm.com utopic/main i386 Packages                               
  404  Not Found [IP: 140.211.166.134 80]
Get:7 http://us.archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:8 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [334 kB]
Ign http://packages.blackfire.io any/main Translation-en_US                    
Get:9 http://us.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.0 kB]
Get:10 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [663 kB] 
Ign http://packages.blackfire.io any/main Translation-en                       
Get:11 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:12 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [335 kB]
Get:13 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [13.1 kB]
Get:14 http://us.archive.ubuntu.com trusty-updates/main Translation-en [348 kB]
Get:15 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [6,832 B]
Get:16 http://us.archive.ubuntu.com trusty-updates/restricted Translation-en [3,699 B]
Get:17 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [175 kB]
Hit http://us.archive.ubuntu.com trusty-backports/main Sources                 
Hit http://us.archive.ubuntu.com trusty-backports/restricted Sources           
Hit http://us.archive.ubuntu.com trusty-backports/universe Sources             
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Sources           
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages          
Hit http://us.archive.ubuntu.com trusty-backports/restricted amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages      
Hit http://us.archive.ubuntu.com trusty-backports/multiverse amd64 Packages    
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages           
Hit http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages       
Hit http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages     
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en          
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en      
Hit http://us.archive.ubuntu.com trusty Release                                
Hit http://us.archive.ubuntu.com trusty/main Sources                           
Hit http://us.archive.ubuntu.com trusty/restricted Sources                     
Hit http://us.archive.ubuntu.com trusty/universe Sources                       
Hit http://us.archive.ubuntu.com trusty/multiverse Sources                     
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages                    
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages              
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages                
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages              
Hit http://us.archive.ubuntu.com trusty/main i386 Packages                     
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages               
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages                 
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages               
Hit http://us.archive.ubuntu.com trusty/main Translation-en                    
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en              
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en              
Hit http://us.archive.ubuntu.com trusty/universe Translation-en                
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 3,083 kB in 35s (86.1 kB/s)                                            
W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-amd64/Packages  404  Not Found [IP: 140.211.166.134 80]

W: Failed to fetch http://dl.hhvm.com/ubuntu/dists/utopic/main/binary-i386/Packages  404  Not Found [IP: 140.211.166.134 80]

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

最佳答案 如果您不需要HHVM,可以从源中删除它.

>连接到流浪汉机器:
流浪汉ssh
>删除hhvm:
sudo rm -f /etc/apt/sources.list.d/hhvm.list
>更新包列表:
sudo apt-get update
>退出机器:
出口
>重启机器:
vagrant restart –provision

点赞