Hmm, the opf had </guide> but no matching open <guide …
I deleted </guide> and the error was gone.
However unrelated to the link to anchor edit. Do what Kovid suggests and make sure you are not using Wayland.
Also make sure using
https://calibre-ebook.com/download_linux and not the version in the distro.