Error: sudo: amazon-linux-extras: command not found

Viewed 2639

System Information: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws x86_64)

Problem: Trying to run sudo amazon-linux-extras install epel -y and sudo yum install -y chromium Because i need it for my Discord Bot which has the error of:

Discord Bot Error:

Mashwishi using command cyt!price
/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:120
                    throw new Error(`Unable to launch browser, error message: ${err.message}`);
                          ^

Error: Unable to launch browser, error message: Failed to launch the browser process!
/home/container/node_modules/node-html-to-image/node_modules/puppeteer/.local-chromium/linux-737027/chrome-linux/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

    at Cluster.<anonymous> (/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:120:27)
    at Generator.throw (<anonymous>)
    at rejected (/home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

So I went to check the article for troubleshooting Running Puppeteer on AWS EC2 instance running Amazon-Linux since we're running Amazon AWS EC2. So I tried to the commands:

sudo amazon-linux-extras install epel -y

The error is: sudo: amazon-linux-extras: command not found

sudo yum install -y chromium

The error is: sudo: yum: command not found

0 Answers
Related