I have this script called from a docker container to install CEF dependencies.
It downloads a version specific install-build-deps.sh from Google, and and executes it.
- Code: Select all
#!/bin/bash -x
chromium_version=94.0.4606.81
# Packages required to download and run the Chromium bootstrap.
apt-get update
apt-get install -y \
curl \
lsb-release \
python
# Download the Chromium bootstrap at the requested version.
curl "https://chromium.googlesource.com/chromium/src/+/refs/tags/${chromium_version}/build/install-build-deps.sh?format=TEXT" | base64 -d > install-build-deps.sh
chmod 755 install-build-deps.sh
# Remove the "Installing locales" step which fails with sed errors.
# TODO: This trims all the way to end-of-file. Fix the sed error or
# add a more nuanced approach in the future if necessary.
line_num="$(grep -n 'echo \"Installing locales.\"' install-build-deps.sh | head -n 1 | cut -d: -f1)"
sed -i "${line_num},\$ d" install-build-deps.sh
# The install script expects sudo, so make a placeholder that transparently forwards commands.
if type sudo 2>/dev/null; then
echo "The sudo command already exists... Skipping.";
else
echo -e "#!/bin/bash\n\${@}" > /usr/sbin/sudo;
chmod +x /usr/sbin/sudo;
fi
# Install with i386 and ARM dependencies included.
./install-build-deps.sh --no-arm --no-chromeos-fonts --no-nacl --no-prompt
It seemed to be working fine just a few weeks ago, when I prepared a development environment.
In ubuntu 20.04 container on builder, it gets stuck while connecting to snap store:
- Code: Select all
...
Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service → /lib/systemd/system/systemd-timesyncd.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
Selecting previously unselected package snapcraft.
(Reading database ... 14493 files and directories currently installed.)
Preparing to unpack .../000-snapcraft_3.0ubuntu1.1_all.deb ...
=> Installing the Snapcraft snap
==> Checking connectivity with the snap store
===> Unable to contact the store, trying every minute for the next 30 minutes
Is there any known fix for this issue, or a parameter I can use calling install-build-deps.sh?
Thanks
Serge