ubuntu中安装和使用quant-lib

安装与使用
推荐在 Ubuntu 操作系统下安装和使用 QuantLib ,如果使用的是 Ubuntu 16.04 或 18.04,请先在系统中添加 Dirk Eddelbuettel 维护的 PPA,以便轻松地安装最新版本。

sudo add-apt-repository ppa:edd/misc
sudo apt-get update

QuantLib 高度依赖 Boost 库,在安装 QuantLib 之前务必安装 Boost,只需要在终端键入:
sudo apt-get install libboost-all-dev

root@ubuntu:~$ sudo add-apt-repository ppa:edd/misc
A PPA for backports of some of my packages
更多信息: https://launchpad.net/~edd/+archive/ubuntu/misc
按 [ENTER] 继续或 Ctrl-c 取消安装。

命中:1 http://mirrors.ustc.edu.cn/ubuntu focal InRelease
命中:2 http://mirrors.ustc.edu.cn/ubuntu focal-updates InRelease
命中:3 http://mirrors.ustc.edu.cn/ubuntu focal-backports InRelease
命中:4 http://mirrors.ustc.edu.cn/ubuntu focal-security InRelease
命中:5 http://ppa.launchpad.net/edd/misc/ubuntu focal InRelease
忽略:6 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu focal InRelease
错误:7 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu focal Release
404 Not Found [IP: 91.189.95.83 80]
正在读取软件包列表... 完成
E: 仓库 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu focal Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
root@ubuntu:~$ sudo add-apt-repository --remove ppa:/fcitx-team/nightly
Experimental releases of Fcitx, use with caution.
更多信息: https://launchpad.net/~fcitx-team/+archive/ubuntu/nightly
按 [ENTER] 继续或Ctrl-c 取消卸载。

root@ubuntu:~$ sudo add-apt-repository ppa:edd/misc
A PPA for backports of some of my packages
更多信息: https://launchpad.net/~edd/+archive/ubuntu/misc
按 [ENTER] 继续或 Ctrl-c 取消安装。

命中:1 http://mirrors.ustc.edu.cn/ubuntu focal InRelease
命中:2 http://mirrors.ustc.edu.cn/ubuntu focal-updates InRelease
命中:3 http://mirrors.ustc.edu.cn/ubuntu focal-backports InRelease
命中:4 http://mirrors.ustc.edu.cn/ubuntu focal-security InRelease
命中:5 http://ppa.launchpad.net/edd/misc/ubuntu focal InRelease
正在读取软件包列表... 完成
root@ubuntu:~$ sudo apt-get update

原文地址:https://www.cnblogs.com/treasury-manager/p/13972007.html