LoginSignup
4
1

docker:ubuntu に apt でvscodeを導入
https://qiita.com/kaizen_nagoya/items/8b6023ca43a16c67f3c0

で出たエラーが標題。: error while loading shared libraries: libX11-xcb.so.1:

How to fix puppetteer error ibX11-xcb.so.1 on Ubuntu
https://medium.com/@cloverinks/how-to-fix-puppetteer-error-ibx11-xcb-so-1-on-ubuntu-152c336368

で書いているライブラリ類を導入したら解決した。

ubuntu
# code --version --user-data-dir /home/cpp
/usr/share/code/bin/../code: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory

# apt install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils 

# code --version --user-data-dir /home/cpp
1.52.1
ea3859d4ba2f3e577a159bc91e3074c5d85c0523
x64

何がよかったかは確かめていない。

その他、読んだ記事は下記。

error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory #31
https://github.com/frinyvonnick/node-html-to-image/issues/31

How to fix puppetteer error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
https://medium.com/@ssmak/how-to-fix-puppetteer-error-while-loading-shared-libraries-libx11-xcb-so-1-c1918b75acc3

Puppeteerの実行時にlibX11.so.6ライブラリーエラー
https://teratail.com/questions/166151

dokku上でPuppeteerを動かすと"Error: Failed to launch chrome!"というエラーになる時の対処法
https://qiita.com/NOOV/items/d440a7b4e595e1d9c445

文書履歴

ver. 0.01 初稿 20210102
ver. 0.02 解決 20210103
ver. 0.03 補正 2…221225

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1