0

发出该命令后,我得到了这个……我该怎么办?这是创建开发者环境的第一步。任何人都可以请提供在 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
4

1 回答 1

0

当您的软件源的镜像可能没有更新时,会出现此问题。尝试在Ubuntu软件中心->编辑->软件源->下载中更改软件源

然后尝试 sudo apt-get update

于 2013-11-06T02:38:35.297 回答