Ask Your Question
2

Sagemath installation with apt package manager installs outdated version

asked 2022-01-20 22:55:33 +0200

WyattW gravatar image

updated 2022-01-21 11:11:31 +0200

FrédéricC gravatar image

Hi all,

I'm attempting to install the latest version of sagemath, v9.4, with the recommended method of my linux distro's package manager. I'm running Ubuntu 20.04 through WSL2. I run the command

sudo apt install sagemath sagemath-jupyter sagemath-doc-en

and wait for installation to complete. After installation, I launch sage and observe the reported version

~ $ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01                     │
│ Using Python 3.8.10. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage:

and notice that it is version 9.0. This was after running

sudo apt update
sudo apt upgrade

so I believe my packages lists are up to date. Launching a Sage kernel in Jupyter reports the same version. This same behavior is observed on my other machine which runs the newest version of Linux Mint. Since pre-built binaries aren't available anymore, how can I get the latest version of Sage without needing to spend the time and effort installing from binaries?

Thank you for any insight you all might be able to provide :) I'm still very much an amateur with Linux and Sage and am still learning lots.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2022-01-21 10:22:50 +0200

eric_g gravatar image

Hopefully, the next Ubuntu LTS version (22.04), to be released in April, will contain an up to date SageMath (probably version 9.5). Meanwhile, you can still download the SageMath 9.4 binary for Ubuntu 20.04 by selecting a mirror from https://www.sagemath.org/download.html. For instance: https://www-ftp.lip6.fr/pub/math/sage...

Note that you have to install the Ubuntu package python-is-python3 first.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2022-01-20 22:55:33 +0200

Seen: 1,509 times

Last updated: Jan 21 '22