From owner-freebsd-questions@FreeBSD.ORG Wed Feb 25 20:48:18 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 163DB8A6 for ; Wed, 25 Feb 2015 20:48:18 +0000 (UTC) Received: from e2.mxout.mta4.net (e2.mxout.mta4.net [96.45.68.2]) by mx1.freebsd.org (Postfix) with SMTP id C86556DD for ; Wed, 25 Feb 2015 20:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=elasticemail.com; h=MIME-Version:Subject:Date:From:Reply-To:To:Message-ID:List-Unsubscribe:Content-Type; q=dns/txt; s=api; t=1424896700; bh=XJkxlGMzndmYPkG6plhhHVJX5wU=; b= Q4zkdhb7HvipeGabQh27RylsXDwACJ2tL4PNNjz3l+Rw0rovbuTgAsTWkMNBchHMmiVvdSXnHuCshtXddwhJeYdBZdcMGmaoVewvNQTGwyVAQU4ykqmYF8KbQwTMkoobxQuvLoDTJRw1gAy0vy7iXCD7TaiWrUKK/HIw57BQKLE= From: Karl-Philipp Richter To: Ben Woods Date: Wed, 25 Feb 2015 20:38:15 +0000 Subject: Re: How to fix error `cached package a-x.y.z: size mismatch, cannot continue` during `pkg upgrade`? Message-Id: <4tuf5840yrgt.ma9n39-4c36ogit18eo6o@api.elasticemail.com> Reply-To: Karl-Philipp Richter Sender: Elastic Email X-Mailer: api.elasticemail.com Feedback-ID: ma9n39:9usw15l:ElasticEmailFBL MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1b7MhP3wSwWdzjTDhlQXmg==" Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 20:48:18 -0000 --=-1b7MhP3wSwWdzjTDhlQXmg== Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, It seems to have been a server issue. `pkg upgrade` just worked fine this evening. Thanks for the input! Best regards, Kalle Am 25.02.2015 um 11:16 schrieb Ben Woods: > I thought pkg(8) automatically deleted packages if they are the wron= g size, > avoiding the need for a pkg clean? >=20 > Regardless, the following command will delete ALL cached packages (e= ven > those that are still current). This means if you needed to reinstall= the > packages, they will first need to be re-downloaded from the package > repository: > # pkg clean -a >=20 > Note: if the package you are downloading keeps having the wrong file > size/hash, it is probably the wrong size/hash on the server you are > downloading it from, meaning this solution will not help. This could= be > because it is corrupt on the server, or simply because the server is= half > way through syncing it's package mirror and the file download is > incomplete. Perhaps waiting a few hours will help in this case. >=20 > Regards, > Ben >=20 >=20 > On Wednesday, February 25, 2015, Karl-Philipp Richter < > richter@richtercloud.de> wrote: >=20 >> Hi, >> According to `man pkg` `pkg clean` should fix the issue, but doesn'= t. Is >> that a bug? Experienced with `pkg` 1.4.12 on FreeBSD 10.1. >> >> -Kalle >> >> >=20 = --=-1b7MhP3wSwWdzjTDhlQXmg== Content-Type: application/pgp-signature Content-Disposition: attachment; filename=signature.asc Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NClZlcnNpb246IEdudVBHIHYxDQoNCmlR RWNCQUVCQWdBR0JRSlU3aktPQUFvSkVHYWRLSjhlSjdaR0ZVVUlBSkwra0RMZlNoVmZmQ3Vo TEtPQkkwTFoNCnBmck0xbDZpcWhBTGF0MWQvclRQaXc2WjRST0dWZmR3Qk5nYlV2UmlKRlNx eDlFVjF3NkprOUltQ1h1UGJGb3ANClNKOHloS3lCTmJySGlXblZ1eldQdG5Hd0pyS2RlWnhj MFB1RWFMQjY5K2VRNG1ueW40bC91L2ljaG9scmY3K1ANCkVudjFkdWRXU0pwRkpnR0k4UU9T R1BlbjhNUlhjWk56TDF3VG5TdVg4UlJ3UW5GVG9XbWxiYzl2dy9JbEZWSzYNCkxpdVk3TWZ4 MFIrMXlzREZ4VXN3cjV4aEtFSDBOY2FnVUNHYnhYZlRaZHFiRXBzTUVjL0FJQkZINm5xTFM5 Nm4NCk1RaVFHeGw2Mm55Ri95dEF3elRtT1JWcEVIbFRtN29QUXFidEpTVFNENk53SnIxamg1 VUpMRkE5TGVvdXJHND0NCj1rbW9jDQotLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS0NCg== --=-1b7MhP3wSwWdzjTDhlQXmg==--