dokku-apt
dokku-apt copied to clipboard
Error in installing Chrome
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.
+1
If you're okay with using Chromium it installs without any problems since it's in Ubuntu's default repository.
apt-packages
chromium-browser