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

Error in installing Chrome #43

Open
jiax83 opened this issue Jan 26, 2021 · 2 comments
Open

Error in installing Chrome #43

jiax83 opened this issue Jan 26, 2021 · 2 comments

Comments

@jiax83
Copy link

jiax83 commented Jan 26, 2021

Hello, I came across your project while implementing deployment with dokku. I'm not clear on how dokku-apt should be used to install Chrome in my Ubuntu image, so I'd like to clarify. Any pointer would be appreciated.

Environment info:
Ubuntu 20.04.1 LTS
Dokku 0.21.4
Rails 6

The Rails app uses webdrivers and watir (a gem built on top of Selenium) to open a web page and read its content, so a browser executable needs to be installed, in this case it is expected to be Chrome.

This is what I have tried: added these files in the root folder of my Rails app (i.e. same level as app, config, etc.): apt-keys, apt-repositories, apt-packages. And here are the contents of each of the 3 files:

  • apt-keys: https://dl-ssl.google.com/linux/linux_signing_key.pub
  • apt-repositories: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  • apt-packages: google-chrome-stable

But it threw the following error when I deploy (through git push dokku master):

Package google-chrome-stable is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Then I tried renaming the apt-repositories file to apt-sources-list, with the same content, then deployed again. This time it threw this error:

remote: W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
remote: E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.

Could you advise how dokku-apt should be used to install Chrome?

Also, as a suggestion, I think it'd be more illustrative if the README.md showed a working example with all the files needed (e.g. install Chrome or another package) instead of / in addition to the current code snippets for the apt-* files that are independent of each other. Basically, an example that shows how the apt-* files would work together in an actual scenario rather than how each individual file should be written.

Appreciate your time. Please advise.

@salarihamid
Copy link

+1

@johnsorrentino
Copy link

If you're okay with using Chromium it installs without any problems since it's in Ubuntu's default repository.

apt-packages

chromium-browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants