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
[Bug]: libappindicator3-1 has been renamed on debian #7822
Comments
Do you have a working DockerFile that works to download Chrome as I'm running into this issue as well |
sure :
|
What's more, I've done some tests on yarn add puppeteer
ldd node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome | grep not
apt install libayatana-appindicator3-1 --no-install-recommends
|
So I figured out some magic to install only those necessary libs: RUN \
set -ex && \
apt-get update && \
apt install -yq --no-install-recommends \
apt-file \
&& \
apt-file update && \
find /app/node_modules/puppeteer/ -name chrome | tee /tmp/.chromium_path && \
ldd $(cat /tmp/.chromium_path) | grep -Po "\S+(?= => not found)" | \
sed 's/\./\\./g' | awk '{print $1"$"}' | apt-file search -xlf - | grep ^lib | \
xargs -d '\n' -- \
apt-get install -yq --no-install-recommends \
&& \
apt purge -yq --auto-remove \
apt-file \
&& \
ldd $(cat /tmp/.chromium_path) | grep "not found" | tee /tmp/.unmet_chromium_deps && \
if [ -s /tmp/.unmet_chromium_deps ]; then \
echo "!!! Chromium has unmet dependencies !!!" && \
exit 1 ; \
fi; \
rm -rf /tmp/.chromium_path /tmp/.unmet_chromium_deps /var/lib/apt/lists/* They are (for
Still, the doc suggests us to install these non-lib packages:
And If you do need to render pages and screenshot them, fonts are still required (that is, otherwise they are just wasting disk space). |
In fact, neither apt-rdepends chromium | grep appindicator
apt-rdepends google-chrome-stable | grep appindicator Meanwhile, I really doubt if These are all packages on which
|
@mmouterde And just an off-topic reminder: I am not really sure why the doc has such a weird example executing I've verified that with only these packages installed, puppeteer, along with its bundled Chromium, still works perfectly in the case it is just used to grab rendered HTML:
Last but not least, you should not install puppeteer using |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
This should get labeled docs as this is docs related not a real bug |
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it! |
Bug description
Steps to reproduce the problem:
node:lts-bullseye
image, I added debian dependencies as mentioned in https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unixlibappindicator3-1 has no installation candidate
I suggest to mention
libayatana-appindicator3-1
insteadPuppeteer version
latest
Node.js version
latest
npm version
latest
What operating system are you seeing the problem on?
Linux
Relevant log output
No response
The text was updated successfully, but these errors were encountered: