1. 編輯 /etc/apt/source.list 加上下列三行:
# Apache Cassandra
deb http://www.apache.org/dist/cassandra/debian 10x main
deb-src http://www.apache.org/dist/cassandra/debian 10x main
2. 執行下列:sudo apt-get update
出現錯誤訊息:
W: GPG error: http://www.apache.org 10x InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4BD736A82B5C1B00
3. 新增apt public key
gpg --keyserver pgp.mit.edu --recv-keys 4BD736A82B5C1B00
gpg --export --armor 4BD736A82B5C1B00|sudo apt-key add -
4. 再次執行 sudo apt-get update
5. 安裝 Cassandra
sudo apt-get install cassandra
完成~ #
沒有留言:
張貼留言