Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Problem with ppa:macaulay2/macaulay2

47 views
Skip to first unread message

Jürgen Böhm

unread,
Aug 13, 2024, 5:54:25 PM8/13/24
to Macaulay2

I am on a Ubuntu 18.04 LTS system and yesterday I finally decided to get the newest Macaulay2 via the ppa named above. So I entered on the command-line

sudo add-apt-repository ppa:macaulay2/macaulay2

and afterwards installed the 1.24 version of Macaulay2 via the Synaptic package manager.

Macaulay2 seems to work fine, but there was an issue during the installation process - at two times an error message came up, but went away too fast for me to remember. Now I am trying to investigate the reasons for the error and did

sudo apt-get update

which gave me (after other output that seemed ok):

Err:11 https://math.illinois.eduMacaulay2/Repositories/Ubuntu bionic InRelease      
  Could not resolve 'math.illinois.eduMacaulay2'
Reading package lists... Done
W: Failed to fetch http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu/dists/bionic/InRelease  Could not resolve 'math.illinois.eduMacaulay2'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Analyzing the output in the line starting with Err:11 there must be some typo in the play, which changed 'edu/Macaulay2' into 'eduMacaulay2'. I tried to find it in the files

/etc/apt/sources.list

and

/etc/apt/sources.list.d/macaulay2-ubuntu-macaulay2-bionic.list

which were the only Macaulay related files in the /etc/apt hierarchy I was aware of, but the typo was not there.

Did anybody else notice a similar problem after trying to use the ppa and/or what can I do to investigate the problem further (I already consulted ChatGPT which gave some plausible advice but finally could not solve the issue).

Many thanks in advance for all tips and hints!

Jürgen

Message has been deleted

Jürgen Böhm

unread,
Aug 13, 2024, 6:16:56 PM8/13/24
to Macaulay2
Again, I have to answer myself: I deactived, just to try it, an old, still active macaulay2 repository

# deb http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu bionic main
# deb-src http://www.math.uiuc.edu/Macaulay2/Repositories/Ubuntu bionic main

(This is from sources.list, the first line was not outcommented earlier, I did the deactivation with Synaptic package manager)

Now the error message after 'sudo apt-get update' vanished and the output is

juergen@regulus:~$ sudo apt-get update
[sudo] password for juergen:
Hit:1 http://de.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                    
Hit:3 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease                              
Hit:4 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease                            
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease                                
Hit:6 https://esm.ubuntu.com/apps/ubuntu bionic-apps-security InRelease                          
Hit:7 https://esm.ubuntu.com/apps/ubuntu bionic-apps-updates InRelease  
Hit:8 http://ppa.launchpad.net/macaulay2/macaulay2/ubuntu bionic InRelease
Hit:9 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security InRelease
Hit:10 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates InRelease


The ppa seems to be mentioned in line Hit:8

Doug Torrance

unread,
Aug 17, 2024, 8:01:46 AM8/17/24
to Macaulay2
This issue looks unrelated to the PPA specifically.  More likely, you have some source lists that still have the old illinois.edu repository information.  That repository is no longer supported.

Try looking in other files in the /etc/apt/sources.list.d directory.  You could try:

cd /etc/apt/sources.list.d
grep Macaulay2 *.list

This would tell you which files to edit as root.  Remove the old lines, re-run "sudo apt update", and those error messages should be gone.

By the way, I'm glad to see that someone is making use of the Ubuntu 18.04 package!

Doug Torrance

unread,
Aug 17, 2024, 8:01:46 AM8/17/24
to maca...@googlegroups.com
I don't think this is an issue with the PPA specifically. More
likely, you still have some lines in one of your source files that
refers to the old, now-unsupported, illinois.edu repository.

You've already checked two files, but there might be others. Try the following:

cd /etc/apt/sources.list.d
grep Macaulay2 *.list

The output should indicate which files you should edit as root.
Remove the lines with the old repository information, save, and re-run
"sudo apt update". That should fix the issue.

By the way, I'm glad to see that someone is making use of the Ubuntu
18.04 package!

> --
> You received this message because you are subscribed to the Google Groups "Macaulay2" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/macaulay2/ff97e99d-b0cd-461b-a93b-a9271337368en%40googlegroups.com.

Jürgen Böhm

unread,
Aug 17, 2024, 10:35:45 AM8/17/24
to Macaulay2
Dear Professor Torrance,

   thank you very much for your answer and the hints to chase the problem down - for some reason or other you seem to have missed my "self-answer" I posted immediately after the first question and where I described that deactivating an old Macaulay2 repository let the error message disappear. So you were absolutely right to suppose that this could be the root of the problem.

(And also many thanks for making the ppa available in the first place - I am on the brink of buying a new workstation and equipping it with Ubuntu 24.04 but I am not fully decided yet and in the meantime it is good to have a current Macaulay2 on my old 18.04 machine.

By the way: Have you had time to give my other recent postings about coherent cohomology a look? I did not stress that explicitly, but I think there is a bug with the truncate function (I had to make a truncate-replacement for myself to get my code to work correctly). Also I would be interested to hear your opinion about the mathematical justification for my algorithm (consider H^n(X-) as right exact functor with H^(n-i)(X,-) as satellite functors and an acyclic resolution for the H^(n-i) and then applying global duality for projective space)).

Yours sincerely

Jürgen Böhm
Reply all
Reply to author
Forward
0 new messages