Download BBB and LibreOffice packages before attempting to install to make installation more reliable.  Also pass --force-yes with -y, if specified, to the BBB installation to circumvent problems with authentication of LibreOffice packages.
Download BBB and LibreOffice packages before attempting to install to make installation more reliable.  Also pass --force-yes with -y, if specified, to the BBB installation to circumvent problems with authentication of LibreOffice packages.

rsiddall/bbb-install