2013-10-31 37 views
0

在給出這個命令後,我得到了這個......我該怎麼做?這是創建開發人員環境的第一步。任何人都可以請給出一步一步的說明安裝opencv在Ubuntu 13.10請。我不能在ubuntu 13.10上安裝opencv,我提到了我正在獲取的錯誤

[email protected]:~$ sudo apt-get update 






Err http://us.archive.ubuntu.com saucy InRelease        

Err http://us.archive.ubuntu.com saucy-updates InRelease      

Err http://us.archive.ubuntu.com saucy-backports InRelease 

Err http://us.archive.ubuntu.com saucy Release.gpg 
    Could not resolve 'us.archive.ubuntu.com' 
Err http://us.archive.ubuntu.com saucy-updates Release.gpg 
    Could not resolve 'us.archive.ubuntu.com' 
Err http://us.archive.ubuntu.com saucy-backports Release.gpg 
    Could not resolve 'us.archive.ubuntu.com' 
Err http://security.ubuntu.com saucy-security InRelease 

Err http://security.ubuntu.com saucy-security Release.gpg 
    Could not resolve 'security.ubuntu.com' 
Reading package lists... Done 
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/InRelease 

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/InRelease 

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/InRelease 

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/InRelease 

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/Release.gpg Could not resolve 'us.archive.ubuntu.com' 

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/Release.gpg Could not resolve 'us.archive.ubuntu.com' 

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/Release.gpg Could not resolve 'us.archive.ubuntu.com' 

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/Release.gpg Could not resolve 'security.ubuntu.com' 

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

雖然給出下面提到的命令會出現以下錯誤我該怎麼辦?

[email protected]:~$ sudo apt-get install cmake 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Package cmake is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or 
is only available from another source 

E: Package 'cmake' has no installation candidate 

回答

0

當您的軟件源的鏡像可能沒有更新時,會發生此問題。嘗試改變軟件來源Ubuntu的軟件中心 - >編輯 - >軟件源 - > Downloadfrom

然後嘗試sudo易於得到更新

相關問題