Couchbase C SDK 安装问题
Couchbase C SDK install issue
我需要安装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.
有解决问题的想法吗?
修正:这是一个错误的 ubuntu sources.list
设置。
我post这里修复以供将来参考:
/etc/apt/sources.list
的内容是:
deb https://dl.yarnpkg.com/debian/ stable main
(可能是之前引入的安装错误,错误的 yarn 设置)
要解决此问题,我只需要正确的来源列表设置,例如:
###### 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
我需要安装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.
有解决问题的想法吗?
修正:这是一个错误的 ubuntu sources.list
设置。
我post这里修复以供将来参考:
/etc/apt/sources.list
的内容是:
deb https://dl.yarnpkg.com/debian/ stable main
(可能是之前引入的安装错误,错误的 yarn 设置)
要解决此问题,我只需要正确的来源列表设置,例如:
###### 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