
自從我升級到 Ubuntu 22.04 以來,我的 Firefox 和 Chromium 安裝都是 snap 套件。這意味著無法安裝 Gnome 擴充不再通過這些瀏覽器中的任何一個。然後我檢查了很久以前安裝的 google-chrome 瀏覽器,但它崩潰了。我去命令列進行調查:
$ which google-chrome
/usr/bin/google-chrome
$ sudo apt search google-chrome
Sorting... Done
Full Text Search... Done
google-chrome-stable/now 78.0.3904.70-1 amd64 [installed,local]
The web browser from Google
$ sudo apt purge google-chrome
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package google-chrome
$ sudo apt install google-chrome-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
google-chrome-stable is already the newest version (78.0.3904.70-1).
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
如您所見,這是 Chrome 的非常非常舊的版本 (78)(2019 年發布)。我嘗試了升級和清除它,都失敗了。
那接下來我該怎麼辦?手動刪除它(類似sudo rm /usr/bin/google-chrome && sudo rm /usr/share/applications/google-chrome.desktop
)?還有其他想法嗎?