Problems with portupgrade or db

Jeremy Chadwick koitsu at FreeBSD.org
Tue Oct 14 09:35:58 PDT 2008


On Tue, Oct 14, 2008 at 05:18:36PM +0200, Marco Beishuizen wrote:
> On Tue, 14 Oct 2008 08:06:46 -0700 (PDT)
> mdh <mdh_lists at yahoo.com> wrote:
> 
> > Have you tried installing db42 from ports manually?  ie:
> > (cd /usr/ports/databases/db42 && make deinstall && make clean && make
> > install && make clean)
> > 
> > If that doesn't work, perhaps try installing the db42 pkg from the
> > FreeBSD ftp servers?  Personally, I try to stay away from portupgrade
> > or anything else that comes around claiming to make something easier
> > that's already easy enough.  ;)
> > 
> > - mdh
> 
> Yes, I did try to install it manually but that results in:
> ...
> ===>  Extracting for db42-4.2.52_5
> => MD5 Checksum mismatch for bdb/db-4.2.52.tar.gz.
> => SHA256 Checksum mismatch for bdb/db-4.2.52.tar.gz.
> => MD5 Checksum OK for bdb/patch.4.2.52.1.
> => SHA256 Checksum OK for bdb/patch.4.2.52.1.
> => MD5 Checksum OK for bdb/patch.4.2.52.2.
> => SHA256 Checksum OK for bdb/patch.4.2.52.2.
> => MD5 Checksum OK for bdb/patch.4.2.52.3.
> => SHA256 Checksum OK for bdb/patch.4.2.52.3.
> => MD5 Checksum OK for bdb/patch.4.2.52.4.
> => SHA256 Checksum OK for bdb/patch.4.2.52.4.
> => MD5 Checksum OK for bdb/patch.4.2.52.5.
> => SHA256 Checksum OK for bdb/patch.4.2.52.5.
> ===>  Refetch for 1 more times files: bdb/db-4.2.52.tar.gz
> bdb/db-4.2.52.tar.gz => db-4.2.52.tar.gz doesn't seem to exist
> in /usr/ports/distfiles/bdb. => Attempting to fetch from
> http://download-east.oracle.com/berkeley-db/. fetch:
> http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested
> Range Not Satisfiable => Attempting to fetch from
> http://download-west.oracle.com/berkeley-db/. fetch:
> http://download-west.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested
> Range Not Satisfiable => Attempting to fetch from
> http://download-uk.oracle.com/berkeley-db/. fetch:
> http://download-uk.oracle.com/berkeley-db/db-4.2.52.tar.gz: Requested
> Range Not Satisfiable => Attempting to fetch from
> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bdb/. fetch:
> db-4.2.52.tar.gz: local modification time does not match remote =>
> Couldn't fetch it - please try to retrieve this => port manually
> into /usr/ports/distfiles/bdb and try again. *** Error code 1
> 
> Stop in /usr/ports/databases/db42.
> *** Error code 1
> 
> Stop in /usr/ports/databases/db42.
> ...
> 
> The package is already present in /usr/ports/distfiles/bdb and when I
> download it manually I get the error above.

The "Range Not Satisfiable" errors are because your db-4.2.52.tar.gz is
of an incorrect size (probably larger than what's on the source site).
The last error (talking about modification time) could indicate that you
have a clock which is severely skewed or incorrect in some way.

Otherwise, if you're *absolutely 100% positive* all is well, then the
issue could be one of the following:

1) The db-4.2.52.tar.gz tarball on the distribution sites has changed,
2) There is a proxy server between you and the distribution site which
   is caching data and returning bad stuff,
3) You're experiencing underlying corruption going on (network or disk),
4) Your ports tree is outdated or broken (some pieces are out of date
   while others are correct).

Here's some evidence that things are indeed working (on my systems)
how you'd expect -- everything matches up perfectly:

$ wget -q http://download-east.oracle.com/berkeley-db/db-4.2.52.tar.gz

$ md5 db-4.2.52.tar.gz
MD5 (db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c

$ grep db-4.2.52.tar.gz /usr/ports/databases/db42/distinfo
MD5 (bdb/db-4.2.52.tar.gz) = 8b5cff6eb83972afdd8e0b821703c33c
SHA256 (bdb/db-4.2.52.tar.gz) = f4bddd8d1b4cde0daf5e13e3493ed62a25b736b0bf258e1d929e47bc6a82a28c
SIZE (bdb/db-4.2.52.tar.gz) = 3919271

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |



More information about the freebsd-questions mailing list