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?

More than 1 year has passed since last update.

Evinceで開いたPDFの中のURLをクリックしても、ブラウザで開かない事象と対応方法のメモ(Ubuntu 21.10)

Last updated at Posted at 2022-04-21

事象

Evinceで開いたPDFにあるURLをクリックすると、/var/log/kern.logに以下のようなエラーが出て、URLは開かなかった。

apparmor="DENIED" operation="sendmsg" profile="/usr/bin/evince//sanitized_helper" pid=1485788 comm="msedge"

解決策

sudo vim /etc/apparmor.d/abstractions/ubuntu-browsers
でファイルを開いて、最後に以下の行を追加する。(Edgeの対応のため)

  /opt/microsoft/msedge{,-beta,-dev}/microsoft-edge{,-beta,-dev} Cx -> sanitized_helper,

また、以下の/etc/apparmor.d/abstractions/ubuntu-helpersファイルを開いて、以下を追記する。

  /opt/microsoft/msedge/msedge_crashpad_handler Pixr,
  /opt/microsoft/msedge{,-beta,-dev}/msedge-sandbox PUxr,
  /opt/microsoft/msedge{,-beta,-dev}/microsoft-edge Pixr,
  /opt/microsoft/msedge{,-beta,-dev}/msedge Pixr,
  /opt/microsoft/msedge{,-beta,-dev}/{,**/}lib*.so{,.*} m,

2つのファイルを保存したあと、以下のコマンドで反映させる。

sudo apparmor_parser -T -W -r /etc/apparmor.d/usr.bin.evince

参考

Ubuntu bug report
Forum thread

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?