我无法在ubuntu 13.10中安装opencv,我已经提到了我在下面的错误

时间:2013-10-31 06:20:44

标签: opencv

在给出这个命令之后我得到了这个......我该怎么办?这是创建开发人员环境的第一步。任何人都可以请一步一步的说明,请在ubuntu 13.10中安装opencv。

ammu@ubuntu:~$ 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.

并且在给出下面提到的命令的同时我得到以下错误我该怎么办?

ammu@ubuntu:~$ 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

1 个答案:

答案 0 :(得分:0)

当您的软件源的镜像可能没有更新时,会发生此问题。尝试在 Ubuntu软件中心 - > edit->中更改软件源。软件来源 - > Downloadfrom

然后尝试sudo apt-get update