Couchbase C SDK安装问题

时间:2018-01-23 09:51:05

标签: ubuntu ubuntu-16.04 couchbase

我需要安装cbc工具。

在我的ubuntu 16.04主机上,我尝试按照这些instructions安装couchbase C SDK:

# Only needed during first-time setup:
wget http://packages.couchbase.com/releases/couchbase-
release/couchbase-release-1.0-4-amd64.deb
sudo dpkg -i couchbase-release-1.0-4-amd64.deb
# Will install or upgrade packages
sudo apt-get update
sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential

结果:

$ 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.

有关解决问题的想法吗?

1 个答案:

答案 0 :(得分:2)

修正:这是一个错误的ubuntu sources.list设置。

我在这里发布了修复以供将来参考:

/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