I just think I've figured out what the issue is with the "failed to extract". I was able to reproduce this with a fresh macOS installation and the latest packages from Homebrew.
The culprit appears to be the cabextract utility. The cabextract utility has been very recently been updated from its authors and from Homebrew (like within the last couple of weeks). This updated version no longer appears to work correctly to extract the files from the download cab files from Microsoft. The older version works fine.
TL;DR
Homebrew now provides version 1.10 of the cabextract. This version appears to be broken, at least on macOS, and at least for use by the UUP conversion process. The 1.9.1 version that was available before they made the recent changes does work. However, this version no longer appears to be available from Homebrew.
I've found 2 workarounds:
- If you're using MacPorts, it still has the 1.9.1 version of cabextract available. Use the procedure in the Companion Guide to install all of the utilities from MacPorts.
- If you're using Homebrew, download the sources for cabextract 1.9.1 from cabextract 1.9.1 source code, build it, and replace the version of cabextract that Homebrew installed.
You already have all the Xcode command line utilities you'll need installed - you needed them for Homebrew. Here's a cheat sheet on how to build that old version once you get the source code tar file downloaded.
The cabextract source files are a .tar.gz file named cabextract-1.9.1.tar.gz . Use the following commands to build and install the old cabextract utility that works from these sources:
tar xvfz cabextract-1.9.1.tar.gz
cd cabextract-1.9.1
./configure
make
mv /opt/homebrew/bin/cabextract /opt/homebrew/bin/cabextract-1.10
cp cabextract /opt/homebrew/bin
chmod 555 /opt/homebrew/bin/cabextract
You can verify that the old version of cabextract is installed with the following command:
cabextract -v
It should reply with
cabextract version 1.9.1
If the conversion failed with this issue, you can restart the conversion once you have built and installed the 1.9.1 version of cabextract. cd back to the directory where the uup_download_macos.sh script resides, and type the following command:
./files/convert.sh