Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2019 17:07:41 -0400
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: 10.2 freebsd-update returns cannot open files/.gz: No such file or directory
Message-ID:  <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org>
In-Reply-To: <A5A44F03-79CD-4D03-8702-96EAC3325B56@midsummerdream.org>
References:  <A5A44F03-79CD-4D03-8702-96EAC3325B56@midsummerdream.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--LnK0gWBqwnZ0KZ5NODZ9sg5t7ydc42Ipf
Content-Type: multipart/mixed; boundary="aHpayabWyxefJxZmxZHgu6GhDevAQ0oFD";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-questions@freebsd.org
Message-ID: <6c8bff67-4f06-a041-27a2-ab3884b54ca0@FreeBSD.org>
Subject: Re: 10.2 freebsd-update returns cannot open files/.gz: No such file
 or directory
References: <A5A44F03-79CD-4D03-8702-96EAC3325B56@midsummerdream.org>
In-Reply-To: <A5A44F03-79CD-4D03-8702-96EAC3325B56@midsummerdream.org>

--aHpayabWyxefJxZmxZHgu6GhDevAQ0oFD
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 16/05/2019 16:38, Rob Rati wrote:
> I'm trying to upgrade my 10.4p13 server to 11.2, and I'm getting a weir=
d set of errors from freebsd-update.  After updating to latest set of pat=
ches for 10.4, I run the usual:
>=20
> freebsd-update upgrade -r 11.2-RELEASE=20
>=20
> It goes through its process, downloads patches, etc but I get some erro=
rs I'm not sure about:
> 0....10460....10470....10480....10490....10500....10510....10520.... do=
ne.
> Applying patches... done.
> Fetching 9604 files... done.
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or direct=
ory
> Attempting to automatically merge changes in files... done.
>=20
> The following file will be removed, as it no longer exists in
> FreeBSD 11.2-RELEASE: /etc/autofs/include_nis
> Does this look reasonable (y/n)? n
>=20
> I'm not sure what is causing those no such file or directory errors tho=
ugh.  I tried cleaning everything out of /var/db/freebsd-update, but they=
 didn't solve it.  There's plenty of disk space in /var as well.
>=20
> Does anyone know what is causing those errors and how to resolve it?  W=
here does freebsd-update get the .gz files it could be looking for?
>=20

The .gz files being referenced are the files downloaded in the previous
step 'Fetching 9604 files... ' step IIRC.

freebsd-update is just a shell script.  The error you're seeing looks
very much like an undefined variable.  You can try and debug exactly
which variable is not being set properly by:

   sh -x freebsd-update upgrade -r 11.2-RELEASE

but be warned: there will be a lot of output.

	Cheers,

	Matthew




--aHpayabWyxefJxZmxZHgu6GhDevAQ0oFD--

--LnK0gWBqwnZ0KZ5NODZ9sg5t7ydc42Ipf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlzd0R1fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OdcoxAAgRnMIPW3UBPG9+i4Fl9BeTBVYcupj5RUEBehuQ475ehUCFwkTz9A59Qg
AV28GAG0MYx2wlGoREivPQEl0DjNtygcOoUrHzNKCzCjx3NfgPkwTqftP7jp63xT
hd8ltyUlkf5fL/E7WkIQKtYZxBnr1WEvd6YJNtjKObhso0MF0bI8jZeWAU0plYrh
fGNEOgRKLoOKvr3QuHj1hEAuGZFEiyZ9GAX0WDr+htr/w+0P/JeJknOPiJdmK+0Q
OOzXXfAqv0ZYpv8Nnb6NoDDDI5DK0X72GXh57lU3ZiHtfucr4HZFGWK5pGWQkqpM
EcgIZFAbe/U/Zjw975MrW2I1ysuAOjq5MeGPsm4PS8lNaNiM5JUggeHLH1rIH12j
FKhoMVBeb9UKPEfYVLSCCkFGDWGypemuERYXvxQTlLM1B4dasR3acVs/wYVCxqTv
YJ6o4aJsqZ7ne6p+j8+xvEKIpBVk31OZtciHNFNlGdTjJldcVcj28OHSNOvsoC38
vTykdOsH9TP35JXWoopM8f4Vz1J4dyRILkGdL9Wagm+vny28PXfWA8FCDVkZDWcl
nSjEdlMW9xLm8Ji+CbxsDCHQEsWvDlfp2fV9sNJMUBFuwauH/9TOwWnua9k3Sr8x
JQisTpFlzv7H//263i7iRweuJvqKdfiEGXxP1MNKXuiTq7FoTp0=
=QPjy
-----END PGP SIGNATURE-----

--LnK0gWBqwnZ0KZ5NODZ9sg5t7ydc42Ipf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6c8bff67-4f06-a041-27a2-ab3884b54ca0>