10.2 freebsd-update returns cannot open files/.gz: No such file or directory

Matthew Seaman matthew at FreeBSD.org
Thu May 16 21:07:49 UTC 2019


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 weird set of errors from freebsd-update.  After updating to latest set of patches for 10.4, I run the usual:
> 
> freebsd-update upgrade -r 11.2-RELEASE 
> 
> It goes through its process, downloads patches, etc but I get some errors I'm not sure about:
> 0....10460....10470....10480....10490....10500....10510....10520.... done.
> Applying patches... done.
> Fetching 9604 files... done.
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
> Attempting to automatically merge changes in files... done.
> 
> 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
> 
> I'm not sure what is causing those no such file or directory errors though.  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.
> 
> Does anyone know what is causing those errors and how to resolve it?  Where does freebsd-update get the .gz files it could be looking for?
> 

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20190516/bfc93be8/attachment.sig>


More information about the freebsd-questions mailing list