I had Sage 4.8 running fine on Ubuntu 11.10. I did a new installation of Ubuntu 12.04 in a new partition, downloaded Sage 5.0 64-bit, verified the MD5 sum and unpacked, and ran ./sage. After the paths were reset, I got a slew of messages about "code for hash <x> not found". I deleted the Sage directory in /home and redid the Sage install, with the same result. In hashlib.py where the code issues the message, there is the note "some may not work due to the OpenSSL version not supporting that algorithm." I do have the latest level of the openssl and python-openssl packages that are available on the Ubuntu repositories, and it appears that the code is trying all the standard ones, nothing exotic. Any ideas?
peterhu@peterhu-ThinkPad-T420:~/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$ ./sage
| Sage Version 5.0, Release Date: 2012-05-14 |
| Type notebook() for the GUI, and license() for information. |
The Sage installation tree may have moved (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-5.0 to /home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux). Changing various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done resetting paths. ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type md5 ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha1 ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module> globals()[__func_name] = __get_hash(__func_name) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor raise ValueError('unsupported hash type %s' % name) ValueError: unsupported hash type sha512 Traceback (most recent call last): File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython", line 18, in <module> import IPython File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/ipstruct.py", line 17, in <module> from IPython.genutils import list2dict2 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/genutils.py", line 53, in <module> from IPython.external.path import path File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.7/site-packages/IPython/external/path.py", line 35, in <module> import md5 File "/home/peterhu/math/tools/sage-5.0-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py", line 10, in <module> from hashlib import md5 ImportError: cannot import name md5