0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

firefoxが起動しない (Ubuntu 22.04.4 LTS)

Last updated at Posted at 2024-02-18

自分用メモ

os(ubuntu)インストール後にfirefoxが起動しない,,
調べると X Window System関連の問題だそう.
単純に使ってるグラフィックボードのNVIDIAドライバがなくて起動できないとのこと.
以下,エラーメッセージ

christopher@Chris-Gaming-Linux:~$ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox %u
Gtk-Message: 18:41:59.114: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:41:59.115: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

(firefox:60465): Gdk-WARNING **: 18:42:01.096: The program 'firefox' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc'.
  (Details: serial 505 error_code 11 request_code 146 (unknown) minor_code 7)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Exiting due to channel error.
以下,解決法(NVIDIAドライバへの切り替え)

まずは利用可能なドライバをリスト

$ sudo ubuntu-drivers devices

distro non-free recommended と書かれたドライバを見つけ, インストールする

$ sudo apt-get install (ドライバ名)

再起動すると使用可能になるはず

解決しない場合は,safe modeで起動してキャッシュをクリアする?

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?