在 Ubuntu 20.04 中,当我输入:
sudo apt-get install sagemath sagemath-jupyter sagemath-doc-en
我得到:
Package sagemath is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source.
E: Package 'sagemath' has no installation candidate
E: Unable to locate package sagemath-jupyter
E: Unable to locate package sagemath-doc-en''
看来 PPA 不再维护了。我是不是得费尽心思获取二进制文件以及它的所有依赖项,还是我忽略了某些显而易见的东西?我觉得自己很蠢。
添加 Universe 存储库并尝试再次安装后,我得到:
E: Package 'sagemath' has no installation candidate
添加 Universe 存储库并尝试再次安装后,我得到:
E:软件包‘sagemath’没有安装候选项
答案1
相比从 Ubuntu 存储库安装,您可能会发现直接访问https://www.sagemath.org/download.html
并下载当前版本更方便。安装很简单。我建议将文件解压到目录中~/Sage
,cd ~/Sage/SageMath
然后执行./sage
几分钟后,一切都设置好了。目前有 9.2 版的二进制文件,但 9.3 版应该很快就会出现。