Forum
FYI. Installation error Bootstrap 4.0.0
chapchap70
22 february 2018, 00:35
Got the following error when when downloading Bootstrap 4. Reverted back to 3.3.7. The files that were downloaded were empty. I didn't investigate further to see what changed in the new Bootstrap that would produce this error.
"Installing Bootstrap.
caution: filename not matched: bootstrap-4.0.0-dist/css/bootstrap.min.css
caution: filename not matched: bootstrap-4.0.0-dist/css/bootstrap-theme.min.css
caution: filename not matched: bootstrap-4.0.0-dist/js/bootstrap.min.js
Cleaning up."
"Installing Bootstrap.
caution: filename not matched: bootstrap-4.0.0-dist/css/bootstrap.min.css
caution: filename not matched: bootstrap-4.0.0-dist/css/bootstrap-theme.min.css
caution: filename not matched: bootstrap-4.0.0-dist/js/bootstrap.min.js
Cleaning up."
Joe Schmoe
22 february 2018, 06:02
Looks like they changed the download structure of the files. You need to change lines 22-24 in the download_bootstrap script:
22,24c22,24
< unzip -p bootstrap.zip css/bootstrap.min.css | sed 's/url(\.\./url(/g' > css/banshee/bootstrap.css
< unzip -p bootstrap.zip css/bootstrap-theme.min.css > css/banshee/bootstrap-theme.css
< unzip -p bootstrap.zip js/bootstrap.min.js > js/banshee/bootstrap.js
---
> unzip -p bootstrap.zip bootstrap-${version}-dist/css/bootstrap.min.css | sed 's/url(\.\./url(/g' > css/banshee/bootstrap.css
> unzip -p bootstrap.zip bootstrap-${version}-dist/css/bootstrap-theme.min.css > css/banshee/bootstrap-theme.css
> unzip -p bootstrap.zip bootstrap-${version}-dist/js/bootstrap.min.js > js/banshee/bootstrap.js
Hugo Leisink
22 february 2018, 22:13
Bootstrap v4 is not supported yet. Something for a next release.
samiux
5 march 2018, 02:41
The bootstrap-theme.min.css is not longer exist in Bootstrap v4.0.0 and it is empty in Banshee.
The boostrap.css is empty in Banshee. So, you are not required to change anything there.
It is a piece of cake to install bootstrap.min.js manually :
sudo apt install unzip
wget https://github.com/twbs/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip
unzip bootstrap-4.0.0-dist.zip
sudo mv /var/www/banshee/public/js/banshee/bootstrap.js /var/www/banshee/public/js/banshee/bootstrap.js-v3.3.7
sudo cp js/bootstrap.min.js /var/www/banshee/public/js/banshee/bootstrap.js
sudo reboot
That's all!
The boostrap.css is empty in Banshee. So, you are not required to change anything there.
It is a piece of cake to install bootstrap.min.js manually :
sudo apt install unzip
wget https://github.com/twbs/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip
unzip bootstrap-4.0.0-dist.zip
sudo mv /var/www/banshee/public/js/banshee/bootstrap.js /var/www/banshee/public/js/banshee/bootstrap.js-v3.3.7
sudo cp js/bootstrap.min.js /var/www/banshee/public/js/banshee/bootstrap.js
sudo reboot
That's all!
Hugo Leisink
6 march 2018, 20:51
Not quite. The bootstrap.css in Banshee is definitely not empty. Replacing the .css and .js files causes issues with the menu.
Hugo Leisink
6 march 2018, 22:34
Hmm, I've looked at Bootstrap v4's new design. I don't like it at all...
samiux
7 march 2018, 17:25
I use bootstrap.min.js v4.0.0 but use bootstrap.css and bootstrap-theme.css v3.3.7 without problem. The vulnerability of bootstrap.min.js v3.3.7 is fixed by this setup.
Message preview