How to fix Index Lifecycle Rollover Alias is empty or not defined

@stephenb - After running those commands, I am now getting this error for the newly created os-linux-2024.01.25 index:

illegal_argument_exception: index.lifecycle.rollover_alias [os-linux] does not point to index [os-linux-2024.01.25]

So at least it is a different error than the one posed in the original post of this thread.
Any advice on how to fix it?