我的操作系统是:Ubuntu(16.04 LTS)
我想安装MongoDB历史数据库而不是mysqlhistorian(已安装)。
跟进问题:Switching between or adding multiple VOLTTRON Historian Framework
和文件:http://volttron.readthedocs.io/en/4.1/core_services/historians/Mongo-Historian.html#prerequisites
我运行脚本时似乎发生了另一个错误:
sudo scripts/historian-scripts/root_install_mongo_ubuntu.sh
此消息显示:
Enter 1 or 2 based on the version of Ubuntu you are running
1. Ubuntu 12.04 LTS(Precise Pangolin)
2. Ubuntu 14.04.4 LTS(Trusty Tahr)
我选择“2”,因为它是最接近的版本(16.04 LTS)
选择“2”后
我收到如下错误:
Executing: /tmp/tmp.0w3KEgvSfT/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv
EA312927
gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com
gpg: key EA312927: "MongoDB 3.2 Release Signing Key <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse
Ign:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 InRelease
Hit:2 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 Release
Ign:3 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial InRelease
Hit:4 http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial InRelease
Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Ign:9 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial Release
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Ign:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Err:10 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Sources
404 Not Found
Ign:12 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 Packages
Ign:13 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main i386 Packages
Ign:14 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main all Packages
Ign:15 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en_US
Ign:16 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:18 http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial/main DEP-11 64x64 Icons
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/chris-lea/zeromq/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/chris-lea/zeromq/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
值得一提的是我已安装(pyzmq)使用:
(Volttron)USER_NAME @ USER_NAME-Laptop:〜/ volttron $
pip install pyzmq
并满足其要求,如下所示:
Requirement already satisfied: pyzmq in ./env/local/lib/python2.7/site-packages
并且对于(MongoDB连接器)也满意使用:
pip install pymongo
Requirement already satisfied: pymongo in ./env/lib/python2.7/site-packages
需要更新脚本以支持最新版本的ubuntu。我将更新它并创建一个拉取请求。
作为替代方案你有没有考虑过CrateHistorian? CrateHistorian还为大型生产系统提供了更好的性能。