Installing on Ubuntu following Debian instructions

75 views
Skip to first unread message

Samuel Lelièvre

unread,
Jun 10, 2021, 5:34:20 PM6/10/21
to Macaulay2
Hi,

I failed to install Macaulay2 1.18 on Ubuntu 20.04 focal fossa
(based on Debian 11 bullseye) following the instructions at


Ran this as root:
```
$ FOLDER=Macaulay/Repositories/Debian
$ XXXX=bullseye
$ DEST=/etc/apt/sources.list.d/macaulay2.list
$ echo "deb ${DOMAIN}/${FOLDER} ${XXXX} main" > ${DEST}
```

Then this as a user
```
$ alias aptkey='apt-key adv --keyserver'
$ SERVER=hkp://keys.gnupg.net
$ KEY=CD9C0E09B0C780943A1AD85553F8BD99F40DCB31
$ aptkey $SERVER --recv-key $KEY
```

Finally, running this as a user
```
$ sudo apt update -q
```
gave this error:
```
  404 Not Found [IP: 128.174.199.46 443]
Reading package lists...
E: The repository 'https://math.uiuc.edu/Macaulay2/Repositories/Debian bullseye Release'
does not have a Release file.
```

Did I miss a step, or do something incorrectly,
or is a file missing on the Macaulay2 side, and
can it be added?    Kind regards,   --Samuel

Samuel Lelièvre

unread,
Jun 10, 2021, 5:52:38 PM6/10/21
to Macaulay2
Possibly related: no "bullseye" on this page:

Doug Torrance

unread,
Jun 12, 2021, 4:00:57 PM6/12/21
to Macaulay2
One quick clarification: Ubuntu 20.04 isn't based on Debian 11 -- it was based on Debian "unstable" as it existed in early 2020.  Debian 11, which is still the testing distribution and hasn't been officially released yet, will probably share more in common with Ubuntu 21.04 and 21.10 than it does with 20.04.

Anyway, I don't believe Dan built packages for Debian 11, which is why you're getting the 404 errors.  However, there are two different options specifically for Ubuntu 20.04 packages, which is what I think you probably want anyway -- either using the official Macaulay repository or the Personal Package Archive (PPA).  Both methods are outlined at https://faculty.math.illinois.edu/Macaulay2/Downloads/GNU-Linux/Ubuntu/

Samuel Lelièvre

unread,
Jun 12, 2021, 8:41:12 PM6/12/21
to maca...@googlegroups.com
2021-06-12 20:00 UTC, Doug Torrance:
>
> One quick clarification: Ubuntu 20.04 isn't based on Debian 11 -- it was
> based on Debian "unstable" as it existed in early 2020. Debian 11,
> which is still the testing distribution and hasn't been officially released
> yet, will probably share more in common with Ubuntu 21.04 and 21.10
> than it does with 20.04.

Thanks for the clarification, I had overinterpreted an answer to:

- Ask Ubuntu question 445487
What Debian version are the different Ubuntu versions based on?
https://askubuntu.com/questions/445487

> Anyway, I don't believe Dan built packages for Debian 11, which is why
> you're getting the 404 errors. However, there are two different options
> specifically for Ubuntu 20.04 packages, which is what I think you probably
> want anyway -- either using the official Macaulay repository or the
> Personal Package Archive (PPA). Both methods are outlined at
> https://faculty.math.illinois.edu/Macaulay2/Downloads/GNU-Linux/Ubuntu/

Thanks for pointing me to the correct instructions,
leading to a successful installation of M2 using `apt`.

Typing `M2` at the shell prompt now gives the starting banner
with the list of installed packages, then the input prompt:
```
$ M2
Macaulay2, version 1.18
with packages: ConwayPolynomials, Elimination, IntegralClosure,
InverseSystems, LLLBases, MinimalPrimes, PrimaryDecomposition,
ReesAlgebra, Saturation, TangentCone

i1 :
```

So it seems I'm all set.

Thanks for patiently correcting the incorrect assumptions
in my question and for pedagogically presenting the options
for installing given my setup. Kind regards, --Samuel
Reply all
Reply to author
Forward
0 new messages