I am unable to install Macaulay2. I am following the guideline given in the website M2. I have added the repository in the sources list (see the attached screenshot). I have installed the key from the link above. Now when I search for the package with apt-cache search macaylay2 I get nothing.

I have also looked at the answer to an old related quiestion but I don't think that will work either, please help.screenshot


Although the Macauley2 Repository may not be working the Bionic Beaver Debian files work well enough when downloaded and installed directly. Install as follows:

sudo apt-get install libblas3 libgfortran4 liblapack3 libquadmath0
wget https://faculty.math.illinois.edu/Macaulay2/Repositories/Ubuntu/dists/bionic/main/binary-amd64/Macaulay2-1.14-amd64-Linux-Ubuntu-18.04.deb
wget https://faculty.math.illinois.edu/Macaulay2/Repositories/Ubuntu/dists/bionic/main/binary-amd64/Macaulay2-1.14-common.deb
sudo dpkg -i *.deb

This installed cleanly on my own Bionic system and appears to be functional:

andrew@corinth:~$ M2
Macaulay2, version 1.14
--storing configuration for package FourTiTwo in /home/andrew/.Macaulay2/init-FourTiTwo.m2
--storing configuration for package Topcom in /home/andrew/.Macaulay2/init-Topcom.m2
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases, PrimaryDecomposition,
               ReesAlgebra, TangentCone, Truncations

i1 : 

And hopefully all will be well on your system as well :)

| improve this answer | |
  • @mukhujje Great news :) – andrew.46 Jul 23 '18 at 21:38
  • Thanks for the explanation. I copied and pasted what you have written into the terminal but for the second and third lines it says ERROR 404: Not Found. Is it possible to fix that? – Artus Oct 24 '19 at 11:55
  • 1
    @Artus I have updated for newer version and appropriately updated this brief answer. Tested on my Bionic VM and all is working well, thanks for letting me know my answer had broken :) – andrew.46 Oct 24 '19 at 22:39
  • Thanks a lot now the second and third lines work. But when I type M2 it says "M2: command not found". I just noticed that for the first line it says "404 Not Found" and says "E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?" – Artus Oct 25 '19 at 4:26
  • 1
    @Artus Hmmm.... try running the suggested command lines and try again? That would be: sudo apt-get update && sudo apt-get upgrade and if no joy with the first line again add --fix-missing into the mix... – andrew.46 Oct 25 '19 at 4:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.