oracle 虛擬機器實例,找不到符合項

oracle 虛擬機器實例,找不到符合項

我試圖在Oracle-Linux-8.9-2024.01.26-0它上啟動 chromium,這是我從 oracle 獲得的虛擬機,但出現以下錯誤

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瀏覽器,可以使用兩種可能的方式:

  1. 直接用瀏覽器下載。只需執行這個命令

    yum localinstall https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

  2. 安裝 google repo,然後安裝瀏覽器。更詳細的說明你可以查看這一頁

相關內容