Worpdress update another update is currently in progress

In my case the problem was caused by bad import of MySQL tables in phpMyAdmin.

(I exported databases instead of only one database’s content. While importing MySQL errored with “Cannot create DB” but created the tables.)

Testing INSERT INTO wp_options ( option_name, option_value, autoload ) VALUES ('core_updater.lock', 1592768373, 'no') (thanks @Rup) said I have a duplicate primary key.

If moving a wp installation is your issue, export the old data in a propper way (click database, then export), drop tables and import the new sql file.

error code: 523