Updating from 6.28.0 to anything

I have been trying for like a month to upgrade to anything and everything from v6.28. I’ve been getting the same error no matter what version I try to update to. I use the ghost cli on Debian 12, Linux and it always kicks back with this in the log:

Debug Information:
OS: Debian GNU/Linux, v12
Node Version: v22.13.1
Ghost Version: 6.28.0
Ghost-CLI Version: 1.29.2
Environment: production
Command: ‘ghost update’
Message: Command failed: pnpm install --prod --reporter=append-only
/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:21535
if (key == null || signature == null) throw new Error(Cannot find matching keyid: ${JSON.stringify({ signatures, keys })});
^

Error: Cannot find matching keyid: {“signatures”:[{“sig”:"MEUCIQD8aGiiEVFDqpcIAux49JR5tnWvSERz+izseguKrlwD9QIgLHoqYNaMcTbnF5/3SoV+zTMvNkwT9dPwYc2jRTi>
at verifySignature (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:21535:47)
at fetchLatestStableVersion (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:21553:5)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async fetchLatestStableVersion2 (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:21672:14)
at async Engine.getDefaultVersion (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22298:23)
at async Engine.executePackageManagerRequest (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22396:47)
at async Object.runMain (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23102:5)

Node.js v22.13.1

Exit code: 1

Please, someone tell me what I’m missing.

Give this a try:

npm install -g corepack@latest
corepack enable
corepack prepare pnpm@latest --activate

And then try ghost update again.

Thank you, Thank you, Thank you.
No idea where that came from but it worked.

Thanks, @jannis! And thanks for the report - we’ve patched and released a new version of Ghost-CLI to provide these instructions to help those with a stale corepack install.