Buenas,
El proceso fue:

1) Instalación nueva de Koha 22.05.00-1 🆗
2) sudo mysql -uroot -p koha_library < backup-koha-2022-06-29.sql 🆗
3) sudo koha-upgrade-schema library 🚩

La distro es Ubuntu.

¿Quién ha tenido una experiencia similar?

Upgrading database schema for library
Upgrade to 21.12.00.016  [08:48:31]: Bug 30060 - Update user_permissions to add primary key and remove null option from code column
ERROR - {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS `PRIMARY`' at line 1 at /usr/share/koha/lib/C4/Installer.pm line 739

Saludos,