From owner-freebsd-questions@freebsd.org Tue Aug 18 16:41:45 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70FD09BCFDC for ; Tue, 18 Aug 2015 16:41:45 +0000 (UTC) (envelope-from 0000014f41a87ca2-9d19cfb6-4c46-444e-8308-6631cdea701e-000000@us-west-2.amazonses.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4ECE32DB for ; Tue, 18 Aug 2015 16:41:45 +0000 (UTC) (envelope-from 0000014f41a87ca2-9d19cfb6-4c46-444e-8308-6631cdea701e-000000@us-west-2.amazonses.com) Received: by mailman.ysv.freebsd.org (Postfix) id 4DEC49BCFDA; Tue, 18 Aug 2015 16:41:45 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D7DC9BCFD6 for ; Tue, 18 Aug 2015 16:41:45 +0000 (UTC) (envelope-from 0000014f41a87ca2-9d19cfb6-4c46-444e-8308-6631cdea701e-000000@us-west-2.amazonses.com) Received: from a27-115.smtp-out.us-west-2.amazonses.com (a27-115.smtp-out.us-west-2.amazonses.com [54.240.27.115]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A0E72DA for ; Tue, 18 Aug 2015 16:41:45 +0000 (UTC) (envelope-from 0000014f41a87ca2-9d19cfb6-4c46-444e-8308-6631cdea701e-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1439915605; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Subject:Message-ID:Feedback-ID; bh=QKA4Dnn6vjY+WhKaqZlwCofh6b3PwF2oQHsieRMhtWU=; b=lAx3kE2aJuDHsigh2ObpVEjpa3p6ORNTVanPN1Vsi1FcbRZUU07ys/hVQR7V+esS oHkhE7MES1ejWFagBT6jYPXDTloZ2EX+g70SGieDnqk2pjCc8Q6KQrpD1zgVCu38Ur3 tYcHcOdeZzeP6h4N5okVcMC9qKdVTehFag8UB4/E= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=4nphvxivhgsntfxkzsopqsdbvjscuhxm; d=vmeta.jp; t=1439915605; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Subject:Message-ID; bh=QKA4Dnn6vjY+WhKaqZlwCofh6b3PwF2oQHsieRMhtWU=; b=mF6FhGFA5fI0vZeZG4iK88THB/FqIoyKSxtcr3uAhfVAOiGvCxruHvP1Y/Iaek2b FaOQKm28vNZJNGlFrkZgy+caQK38voRT1GJq87XXO/Oj0ECe+3IQHeTTWJftsTqUK+j drxZhhlvCJohi+MZeJVQ+hKSeu3WokYg+w5Npzoo= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on glory.vmeta.jp X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 18 Aug 2015 16:33:25 +0000 From: Koichiro IWAO To: questions@freebsd.org Subject: freebsd-update checksum mismatch (why not resume?) Message-ID: <0000014f41a87ca2-9d19cfb6-4c46-444e-8308-6631cdea701e-000000@us-west-2.amazonses.com> X-Sender: meta@vmeta.jp User-Agent: Roundcube Webmail/1.1.2 X-SES-Outgoing: 2015.08.18-54.240.27.115 Feedback-ID: 1.us-west-2.ngRt4x2U/cWqug8pbfjwMxB6pcDw1fmN73bGmMLYyRI=:AmazonSES X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 16:41:45 -0000 Hi, Why freebsd-update does not resume previous run with same arguent? I tried to upgrade my FreeBSD system with freebsd-update. However, applying patch phase stops by checksum mismatch. See following output. I ran "freebsd-update upgrade" 5 times. Finally 5th try went smoothly. It looks each n-th run of freebsd-update fetches and patches at the beginning. What a waste of time! Refetching file with incorrect hash is enough, right? Refetching all files in order to refetch only single file with incorrect hash is waste of time and network. Why don't you implement resume in freebsd-update? Isn't it a good idea? # freebsd-update upgrade -r 10.2-RELEASE Looking up update.FreeBSD.org mirrors... none found. Fetching metadata signature for 10.1-RELEASE from update.FreeBSD.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Inspecting system... done. The following components of FreeBSD seem to be installed: kernel/generic src/src world/base world/lib32 The following components of FreeBSD do not seem to be installed: world/doc world/games Does this look reasonable (y/n)? y Fetching metadata signature for 10.2-RELEASE from update.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata patches. done. Applying metadata patches... done. Fetching 1 metadata files... done. Inspecting system... done. Fetching files from 10.1-RELEASE for merging... done. Preparing to download files... done. Fetching 41390 patches.......41380....41390 done. Applying patches... done. Fetching 8464 files... 0820ce82763e357f692678c6dcddd0a217a9a411888f25d999177164df8a7dd0 has incorrect hash. -- `whois vmeta.jp | nkf -w` meta