Received: from primeraholten.nl (235-230-138-45.connected.by.freedominter.net [45.138.230.235]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTP id 39A6C223703 for <~alpine/apk-tools@lists.alpinelinux.org>; Mon, 6 Jan 2025 17:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=primeraholten.nl; s=default; t=1736186212; bh=51GD9DCVtCy++0O2QsJn6nxaK+VC1P72U7l7VeJDnVw=; h=Date:From:To:Subject:From; b=APwLhXvafCJRQON1STDxNwrUZ4vXv5uQEH9FkDk174BAO6i1I2h3+rWSDjWngJHg4 OfROvVKewYEoOXKDffg5LPJzmvjy+DEttFCzvOEkHCEJwwZRL/nvJOWAUu5b++qgyl scmO/daIgIhhkVwoJ/lbdTCAuakRpzSTpGpyD+ZtpmEaQjXc1wgYasVdzuFPEW5/yC mp0RizIlYgzvNFgdtrcdFLRsULkfaTGxaKydBr5AKEeFTfM4Dx/sVoczcN5HrVNN+9 rF9Mwo/1LHiD5zdOwksGCahE8ZqeoW5rpmmZzxYE9+lDxa5YJ764VfR9G6SFHOyo97 09b+O9xDc0kiQ== Date: Mon, 6 Jan 2025 18:56:51 +0100 From: Arjan Bouter To: ~alpine/apk-tools@lists.alpinelinux.org Subject: apk rebuild database? Message-ID: <20250106185651.69029a37@tonberry> Organization: Primera Holten X-Mailer: Claws Mail 4.2.0 (GTK 3.24.43; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi there, when I try to use apk to update, add or remove applications I get the following error: ERROR: Unable to read database state: package file format error ERROR: Failed to open apk database: package file format error Strace shows a bit more info: read(7, "C:Q1DAq8+0eVL2Ce+rsHzYHUPCmuEy8="..., 131072) = 131072 close(7) = 0 munmap(0x7f5d4fdd3000, 135168) = 0 writev(2, [{iov_base="", iov_len=0}, {iov_base="ERROR: ", iov_len=7}], 2) = 7 writev(2, [{iov_base="Unable to read database state: p"..., iov_len=56}, {iov_base=NULL, iov_len=0}], 2) = 56 writev(2, [{iov_base="", iov_len=0}, {iov_base="\n", iov_len=1}], 2) = 1 Is there a way to recreate the database state file? -- Kind regards, Arjan Bouter