
私はOracle-Linux-8.9-2024.01.26-0
Oracleから入手したVMでChromiumを起動しようとしていますが、次のエラーが発生します。
root/.cache/puppeteer/chrome/linux-121.0.6167.85/chrome-linux64/chrome: error while loading shared libraries: libdrm.so.2: cannot open shared object file: No such file or directory
実際、ChromiumまたはGoogle Chrome自体をインストールしようとするとエラーが発生します
[root@ilk testcases]# dnf install google-chrome-stable
Last metadata expiration check: 2:51:07 ago on Wed Feb 21 11:34:51 2024.
No match for argument: google-chrome-stable
Error: Unable to find a match: google-chrome-stable
[root@ilk testcases]# yum install google-chrome-stable
Last metadata expiration check: 2:51:22 ago on Wed Feb 21 11:34:51 2024.
No match for argument: google-chrome-stable
Error: Unable to find a match: google-chrome-stable
[root@ilk testcases]# yum install chromium
Last metadata expiration check: 2:51:32 ago on Wed Feb 21 11:34:51 2024.
No match for argument: chromium
Error: Unable to find a match: chromium
注: これを実行する前に、yum update -y
またはyum update
そのため、Oracle VM では何も動作しません。
答え1
Chrome ブラウザをインストールするには、次の 2 つの方法があります。
ブラウザを直接ダウンロードします。このコマンドを実行するだけです
yum localinstall https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
Googleリポジトリをインストールしてからブラウザをインストールします。詳細な手順については、以下を参照してください。このページ