Ask Your Question

Updating Sage

asked 2019-03-04 16:33:22 +0200

Javidlg gravatar image

updated 2019-03-04 16:34:34 +0200

I tried the following for passing from 8.2 to 8.6.


And I got the following:

Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: python2-2.7.15.p0
  log file: /home/javi/SageMath/logs/pkgs/python2-2.7.15.p0.log
  build directory: /home/javi/SageMath/local/var/tmp/sage/build/python2-2.7.15.p0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:31: recipe for target 'all-start' failed
make[1]: *** [all-start] Error 1
make[1]: Leaving directory '/home/javi/SageMath'
Makefile:13: recipe for target 'all' failed
make: *** [all] Error 2
javi@javi-ThinkPad-E480 11:42:47 ~ > sage
Forcing sage-location, probably because a new package was installed.
Cleaning up, do not interrupt this.
Done cleaning.

If I type


I note no upgrade was performed

│ SageMath version 8.2, Release Date: 2018-05-05                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.

any Idea?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-03-05 01:28:42 +0200

slelievre gravatar image

The log file located on your computer at


may have some clues as to what exactly failed.

One way to upgrade would be, after checking you have all prerequisites for building from source, to run the following in a terminal:

SAGEDIR=/home/javi/SageMath  # your Sage directory
git pull origin master

The git command will update all the source files to their latest stable version (currently SageMath 8.6) and the make command will build SageMath from source; this will download tarballs for those packages that have been upgraded between SageMath 8.2 and SageMath 8.6, and compile all that needs to be compiled. It will use less internet bandwidth than downloading the new binary, but will make your processors work a bit (or a lot) to compile the new version.

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

1 follower


Asked: 2019-03-04 16:33:22 +0200

Seen: 586 times

Last updated: Mar 05 '19