※ここから先の文章は私の個人的なメモです、インストールマニュアルではありません。
※ご参考にされるのは構いませんが、インストールは自己責任でお願いします。
※これにより不具合が発生した場合の責任は一切取りません。
$ mkdir Arduino
$ cd Arduino/
Arduino公式サイトから下記のzipファイルをダウンロードして
解凍に必要なunzipをインストール後、解凍
$ unzip arduino-ide_2.3.10_Linux_64bit.zip
解凍されたフォルダに移動
$ cd arduino-ide_2.3.10_Linux_64bit/
起動するか試す
$ ./arduino-ide
./arduino-ide: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
「libnss3.so」がインストールされてないようなので、インストール
$ sudo apt install libnss3
再度、起動するか試す
$ ./arduino-ide
./arduino-ide: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
「libasound.so.2」がインストールされてないようなので、インストール
しかし、sudo apt-get install libasound2 ではパッケージ名が変わっているようで下記を実行
$ sudo apt-get install libasound2t64
もう一度、起動を試すと下記の画面が表示されたので、インストール成功
上記のインストールでは、「arduino-cli」は「~/Arduino/arduino-ide_2.3.10_Linux_64bit/resources/app/lib/backend/resources」フォルダ配下にインストールされていた。
2026/11/12:追記
ちなみに、Ubuntu 26.04.1 LTSで同じ手順でインストールして、起動しようとしたら下記のエラーとなった。
$ ./arduino-ide
[7497:1112/213535.298528:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found,
but is not configured correctly. Rather than run without sandboxing I'm aborting now.
You need to make sure that /home/alfaalfa/Arduino/arduino-ide_2.3.10_Linux_64bit/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (コアダンプ) ./arduino-ide
原因は?
「Linux(特にUbuntu 24.04など)でArduino IDE 2.3.10のAppImage版を実行した際、Electron/Chromiumのサンドボックス機能と
OSのセキュリティ制限(AppArmorなど)の競合により発生する一般的なエラーです。」とのこと。
$ arduino-ide --no-sandbox とすれば、起動できました。
他の対処方法として、下記もあるそう。
chrome-sandbox の所有者と権限を変更する
エラーメッセージ通りに、該当する chrome-sandbox ファイルの所有権をルート(root)に変更し、パーミッションを 4755 に設定します。
※AppImageを一度展開(マウント)してから実行するか、解凍して配置しているフォルダのパスに読み替えてください。
bash
sudo chown root:root /path/to/chrome-sandbox
sudo chmod 4755 /path/to/chrome-sandbox

0 件のコメント:
コメントを投稿