Date: Wed, 25 Feb 2015 20:38:15 +0000 From: Karl-Philipp Richter <richter@richtercloud.de> To: Ben Woods <woodsb02@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> 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>
next in thread | raw e-mail | index | archive | help
--=-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==--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4tuf5840yrgt.ma9n39-4c36ogit18eo6o>