bigbluebutton / bbb-install

BASH script to install BigBlueButton in 30 minutes.
GNU Lesser General Public License v3.0
612 stars 538 forks source link

failed install bbb 2.5 & 2.6 error related to bbb-libreoffice #611

Open AlaaNassar opened 1 year ago

AlaaNassar commented 1 year ago

i tried to install on clean ubuntu 20.04 and 22.04 and tried both 2.5 and 2.6 multiple times without success i get always this error

Ign:1 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
Hit:2 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release
Hit:4 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:6 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:7 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:8 https://download.docker.com/linux/ubuntu focal InRelease
Hit:9 http://ppa.launchpad.net/bigbluebutton/support/ubuntu focal InRelease
Hit:10 https://deb.nodesource.com/node_16.x focal InRelease
Hit:11 https://ubuntu.bigbluebutton.org/focal-260 bigbluebutton-focal InRelease
Fetched 108 kB in 11s (9,605 B/s)
Reading package lists... Done
Warning: apt-key output should not be parsed (stdout is not a terminal)
SHELL=/bin/bash
SUDO_GID=998
SUDO_COMMAND=/usr/bin/su
SUDO_USER=host-cube
PWD=/root
LOGNAME=root
HOME=/root
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm
LESSOPEN=| /usr/bin/lesspipe %s
USER=root
DISPLAY=localhost:10.0
SHLVL=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
SUDO_UID=1000
MAIL=/var/mail/root
DEBIAN_FRONTEND=noninteractive
OLDPWD=/usr/lib/jvm
_=/usr/bin/env
'universe' distribution component is already enabled for all sources.
Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: apt-key output should not be parsed (stdout is not a terminal)
deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
Warning: apt-key output should not be parsed (stdout is not a terminal)
/usr/bin/docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'docker-compose' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bbb-libreoffice-docker (1:2.6-9) ...
#
# Building bbb-libreoffice docker image
#
[+] Building 16.2s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 103B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/amazoncorretto:17-alpi  0.8s
 => CACHED [1/2] FROM docker.io/library/amazoncorretto:17-alpine@sha256:b  0.0s
 => ERROR [2/2] RUN apk add fontconfig libreoffice                        15.4s
------
 > [2/2] RUN apk add fontconfig libreoffice:
#0 0.292 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#0 5.301 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#0 5.301 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later)
#0 5.301 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
#0 10.31 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/community: temporary error (try again later)
#0 10.31 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
#0 10.31 fetch https://apk.corretto.aws/x86_64/APKINDEX.tar.gz
#0 15.32 ERROR: https://apk.corretto.aws: temporary error (try again later)
#0 15.32 WARNING: Ignoring https://apk.corretto.aws: No such file or directory
#0 15.32 ERROR: unable to select packages:
#0 15.32   fontconfig (no such package):
#0 15.32     required by: world[fontconfig]
#0 15.32   libreoffice (no such package):
#0 15.32     required by: world[libreoffice]
------
Dockerfile:3
--------------------
   1 |     FROM amazoncorretto:17-alpine
   2 |
   3 | >>> RUN apk add fontconfig libreoffice
   4 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add fontconfig libreoffice" did not complete successfully: exit code: 2
dpkg: error processing package bbb-libreoffice-docker (--configure):
 installed bbb-libreoffice-docker package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of bbb-web:
 bbb-web depends on bbb-libreoffice-docker; however:
  Package bbb-libreoffice-docker is not configured yet.

dpkg: error processing package bbb-web (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-html5:
 bbb-html5 depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-html5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-pads:
 bbb-pads depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-pads (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-export-annotations:
 bbb-export-annotations depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-export-annotations (--configure):
 dependenNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
cy problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-config:
 bbb-config depends on bbb-html5; however:
  Package bbb-html5 is not configured yet.

dpkg: error processing package bbb-config (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bigbluebutton:
 bigbluebutton depends on bbb-config; however:
  Package bbb-config is not configured yet.

dpkg: error processing package bigbluebutton (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bbb-libreoffice-docker
 bbb-web
 bbb-html5
 bbb-pads
 bbb-export-annotations
 bbb-config
 bigbluebutton
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hit:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:3 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
Ign:6 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
Hit:7 http://ppa.launchpad.net/bigbluebutton/support/ubuntu focal InRelease
Hit:8 https://deb.nodesource.com/node_16.x focal InRelease
Hit:9 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release
Hit:10 https://ubuntu.bigbluebutton.org/focal-260 bigbluebutton-focal InRelease
Fetched 108 kB in 1s (81.5 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bbb-libreoffice-docker (1:2.6-9) ...
#
# Building bbb-libreoffice docker image
#
[+] Building 19.0s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 103B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/amazoncorretto:17-alpi  3.4s
 => CACHED [1/2] FROM docker.io/library/amazoncorretto:17-alpine@sha256:b  0.0s
 => ERROR [2/2] RUN apk add fontconfig libreoffice                        15.6s
------
 > [2/2] RUN apk add fontconfig libreoffice:
#0 0.327 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#0 5.336 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later)
#0 5.336 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
#0 5.336 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#0 10.34 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/community: temporary error (try again later)
#0 10.34 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
#0 10.34 fetch https://apk.corretto.aws/x86_64/APKINDEX.tar.gz
#0 15.35 ERROR: https://apk.corretto.aws: temporary error (try again later)
#0 15.35 WARNING: Ignoring https://apk.corretto.aws: No such file or directory
#0 15.35 ERROR: unable to select packages:
#0 15.35   fontconfig (no such package):
#0 15.35     required by: world[fontconfig]
#0 15.35   libreoffice (no such package):
#0 15.35     required by: world[libreoffice]
------
Dockerfile:3
--------------------
   1 |     FROM amazoncorretto:17-alpine
   2 |
   3 | >>> RUN apk add fontconfig libreoffice
   4 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add fontconfig libreoffice" did not complete successfully: exit code: 2
dpkg: error processing package bbb-libreoffice-docker (--configure):
 installed bbb-libreoffice-docker package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of bbb-web:
 bbb-web depends on bbb-libreoffice-docker; however:
  Package bbb-libreoffice-docker is not configured yet.

dpkg: error processing package bbb-web (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-html5:
 bbb-html5 depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-html5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-pads:
 bbb-pads depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-pads (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-export-annotations:
 bbb-export-annotations depends on bbb-web; however:
  Package bbb-web is not configured yet.

dpkg: error processing package bbb-export-annotations (--configure):
 dependenNo apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
cy problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bbb-config:
 bbb-config depends on bbb-html5; however:
  Package bbb-html5 is not configured yet.

dpkg: error processing package bbb-config (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of bigbluebutton:
 bigbluebutton depends on bbb-config; however:
  Package bbb-config is not configured yet.

dpkg: error processing package bigbluebutton (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bbb-libreoffice-docker
 bbb-web
 bbb-html5
 bbb-pads
 bbb-export-annotations
 bbb-config
 bigbluebutton
E: Sub-process /usr/bin/dpkg returned an error code (1)

# BigBlueButton does not appear to be installed.  Could not
# locate: /etc/bigbluebutton/bigbluebutton-release

any help in this error i think it's related to bbb-libreoffice

also this is the content of the docker file

# cat /usr/share/bbb-libreoffice/docker/Dockerfile
FROM amazoncorretto:17-alpine

RUN apk add fontconfig libreoffice

any help

AlaaNassar commented 1 year ago

i tried alot,, any idea how i install bbb on my local hyper-v ?? any idea

ffdixon commented 1 year ago

deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse Warning: apt-key output should not be parsed (stdout is not a terminal)

When installing packages, always look for the first error (the rest are usually just a consequence of this error). After a quick google for "install mongo key" I found these docs

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/

specifically the command

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

Try the above and let us know if that command works and, after running it, try doing the install again and if that works.

michi-80337 commented 1 year ago

The warnings from apt-key are harmless in most cases. It's just a warning for developers, that the output might change over versions or language settings without any further notice. Nevertheless it is worth to look after this:

Ign:1 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease

(That's why it is a good idea to check for the repository keys as noted by @ffdixon.)

The following lines look a little bit suspicious to me, because they are a sign of some packages being hold back for some reason:

Package 'docker-compose' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed.

I was able to install BBB 2.6 on a fresh Ubuntu 20.04.6 LTS (Focal Fossa) about two weeks ago. Some tricks that might help: