Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2015 18:16:37 +0800
From:      Ben Woods <woodsb02@gmail.com>
To:        Karl-Philipp Richter <richter@richtercloud.de>
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:  <CAOc73CAdkTmhkPkGH6HYFbkyohbG5EPbMVKirej9WsrHuAcTQg@mail.gmail.com>
In-Reply-To: <4tuey3akkcb4.ma9n39-4c0vk8az116k5a@api.elasticemail.com>
References:  <4tuey3akkcb4.ma9n39-4c0vk8az116k5a@api.elasticemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I thought pkg(8) automatically deleted packages if they are the wrong size,
avoiding the need for a pkg clean?

Regardless, the following command will delete ALL cached packages (even
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

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.

Regards,
Ben


On Wednesday, February 25, 2015, Karl-Philipp Richter <
richter@richtercloud.de> wrote:

> 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
>
>

-- 

--
From: Benjamin Woods
woodsb02@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CAdkTmhkPkGH6HYFbkyohbG5EPbMVKirej9WsrHuAcTQg>