Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu Couchbase C SDK安装问题_Ubuntu_Ubuntu 16.04_Couchbase - Fatal编程技术网

Ubuntu Couchbase C SDK安装问题

Ubuntu Couchbase C SDK安装问题,ubuntu,ubuntu-16.04,couchbase,Ubuntu,Ubuntu 16.04,Couchbase,我需要安装cbc工具 在我的ubuntu 16.04主机上,我尝试安装couchbase C SDK,如下所示: 结果: $ sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is

我需要安装cbc工具

在我的ubuntu 16.04主机上,我尝试安装couchbase C SDK,如下所示:

结果:

$ sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libcouchbase2-bin : Depends: libcouchbase2-libevent (= 2.8.4-1) but it is not going to be installed
                    Depends: libevent-core-2.0-5 (>= 2.0.10-stable) but it is not installable
E: Unable to correct problems, you have held broken packages.

有没有关于解决这个问题的想法?

修复:这是一个错误的ubuntu
源代码。列出设置

我在此发布修复程序,以供将来参考:

/etc/apt/sources.list
的内容是:

deb https://dl.yarnpkg.com/debian/ stable main
(可能是之前由于错误的纱线设置而引入的安装错误)

要解决此问题,我只需要设置正确的源代码列表,例如:

###### Ubuntu Main Repos
deb http://it.archive.ubuntu.com/ubuntu/ xenial main universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ xenial main

###### Ubuntu Update Repos
deb http://it.archive.ubuntu.com/ubuntu/ xenial-security main universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ xenial-updates main universe multiverse

我在我的ubuntu 16.04上尝试了这些命令,一切正常。请检查您的apt source.list。也许你错过了一些知识库。谢谢马里奥·桑蒂尼给我指出了正确的方向。
###### Ubuntu Main Repos
deb http://it.archive.ubuntu.com/ubuntu/ xenial main universe multiverse
deb-src http://it.archive.ubuntu.com/ubuntu/ xenial main

###### Ubuntu Update Repos
deb http://it.archive.ubuntu.com/ubuntu/ xenial-security main universe multiverse
deb http://it.archive.ubuntu.com/ubuntu/ xenial-updates main universe multiverse