Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build new images fails #663

Closed
linjin-harvey opened this issue Jan 12, 2024 · 1 comment
Closed

Build new images fails #663

linjin-harvey opened this issue Jan 12, 2024 · 1 comment
Labels

Comments

@linjin-harvey
Copy link

OS: Centos7

Preinstall: GO, docker

Command: ./images chrome -b https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/google-chrome-stable_120.0.6099.216-1_amd64.deb -d 120.0.6099.216 -t selenoid/chrome:120.0

Seems there is an error when build docker image on https://github.com/aerokube/images/blob/master/static/chrome/local/Dockerfile#L56

Error:

Preparing to unpack google-chrome.deb ...
Unpacking google-chrome-stable (120.0.6099.216-1) ...
Setting up google-chrome-stable (120.0.6099.216-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/google-chrome (google-chrome) in auto mode
Processing triggers for menu (2.1.47ubuntu4) ...
sed: can't read /opt/google/chrome/google-chrome-stable: No such file or directory
The command '/bin/sh -c apt-get update &&         apt-get -y --no-install-recommends install gconf-service          libasound2          libatk1.0-0          libc6          libgbm1         libu2f-udev     libvulkan1          libcairo2          libcups2          libdbus-1-3          libexpat1          libfontconfig1          libfreetype6          libgcc1          libgconf-2-4          libgdk-pixbuf2.0-0          libglib2.0-0          libgtk2.0-0          libgtk-3-0          libnspr4          libnss3          libpango1.0-0          libstdc++6          libx11-6          libx11-xcb1          libxcb1          libxcomposite1          libxcursor1          libxdamage1          libxext6          libxfixes3          libxi6          libxrandr2          libxrender1          libxss1          libxtst6          ca-certificates          fonts-liberation          libappindicator3-1          libnss3          lsb-base          xdg-utils          libcurl4          iproute2          curl &&          curl -O http://host.docker.internal:8080/google-chrome.deb &&          apt-get -y purge curl &&          dpkg -i google-chrome.deb &&          sed -i -e 's@exec -a "$0" "$HERE/chrome"@& --no-sandbox --disable-gpu@' /opt/google/$INSTALL_DIR/$PACKAGE &&          rm google-chrome.deb &&          chown root:root /opt/google/$INSTALL_DIR/chrome-sandbox &&          chmod 4755 /opt/google/$INSTALL_DIR/chrome-sandbox &&          google-chrome --version &&          rm -Rf /tmp/* &&          rm -Rf /var/lib/apt/lists/*' returned a non-zero code: 2
@vania-pooh vania-pooh added the bug label Jan 14, 2024
@vania-pooh
Copy link
Member

Will add dependencies.

#5 44.79 Unpacking google-chrome-stable (120.0.6099.216-1) ...
#5 56.03 dpkg: dependency problems prevent configuration of google-chrome-stable:
#5 56.03  google-chrome-stable depends on libgbm1 (>= 17.1.0~rc2); however:
#5 56.03   Package libgbm1 is not installed.
#5 56.03  google-chrome-stable depends on libu2f-udev; however:
#5 56.03   Package libu2f-udev is not installed.
#5 56.03  google-chrome-stable depends on libvulkan1; however:
#5 56.03   Package libvulkan1 is not installed.
#5 56.03
#5 56.03 dpkg: error processing package google-chrome-stable (--install):
#5 56.03  dependency problems - leaving unconfigured

vania-pooh added a commit that referenced this issue Jan 15, 2024
Correctly patching google-chrome script in new packages (fixes #663)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants