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

Rob Rati lists at midsummerdream.org
Fri May 17 01:52:58 UTC 2019


On May 16, 2019, at 5:07 PM, Matthew Seaman wrote:

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

Here are the lines from the script around the various errors I am seeing.  Does anyone know if these files are important?  What will freebsd-update do if the files are missing on my system?  Will the upgrade process place the 11.2-RELEASE version of the files on the system?

+ look '/etc/autofs/include_nis|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/autofs/include_nis|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/autofs/include_nis|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/autofs/include_nis_nullfs|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/autofs/include_nis_nullfs|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/autofs/include_nis_nullfs|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/blacklistd.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/blacklistd.conf|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/blacklistd.conf|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.dns|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/casper/system.dns|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.dns|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.grp|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/casper/system.grp|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.grp|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.pwd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/casper/system.pwd|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.pwd|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.random|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/casper/system.random|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.random|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/casper/system.sysctl|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/casper/system.sysctl|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/casper/system.sysctl|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/devd/ulpt.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/devd/ulpt.conf|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/devd/ulpt.conf|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/dma/dma.conf|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ read F
+ look '/etc/mtree/BSD.lib32.dist|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/mtree/BSD.lib32.dist|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/mtree/BSD.lib32.dist|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/mtree/BSD.tests.dist|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ read F
+ look '/etc/periodic/daily/410.status-mfi|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/periodic/daily/410.status-mfi|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/periodic/daily/410.status-mfi|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/periodic/daily/430.status-uptime|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ read F
+ look '/etc/rc.d/blacklistd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/rc.d/blacklistd|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/blacklistd|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/iovctl|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/rc.d/iovctl|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/iovctl|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/ipfw_netflow|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/rc.d/ipfw_netflow|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/ipfw_netflow|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/ypldap|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
+ look '/etc/rc.d/ypldap|' tomerge-old
+ fgrep -q '|f|'
+ look '/etc/rc.d/ypldap|' INDEX-NEW
+ cut -f 1,2,7 -d '|'
+ fgrep -q '|f|'
+ read F
+ look '/etc/rc.d/zfsd|' INDEX-PRESENT
+ cut -f 7 -d '|'
+ V=''
+ gunzip
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory

Rob



More information about the freebsd-questions mailing list