typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Typora cannot export pdf on Ubuntu 24.04 due to denied permissoins

Open wkjun opened this issue 4 months ago • 2 comments


Describe the bug

export to pdf file hang exporting

To Reproduce Steps to reproduce the behavior:

  1. Open md file
  2. Click file
  3. Scroll down to 'export' -> 'pdf'
  4. See error

hang exporting...

8月 06 16:52:44 14X kernel: audit: type=1400 audit(1754470364.817:146): apparmor="DENIED" operation="capable" class="cap" profile="unprivileged_userns" pid=7137 comm="Typora" capability=21  capname="sys_admin"

Desktop (please complete the following information):

PRETTY_NAME="Ubuntu 24.04.2 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.2 LTS (Noble Numbat)" VERSION_CODENAME=noble ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=noble LOGO=ubuntu-logo

kernel: 6.14.0-24-generic

Typora Version

1.10.8

Temporary workaround using work

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

refer this issue: https://github.com/typora/typora-issues/issues/6160

wkjun avatar Aug 06 '25 09:08 wkjun

Using AppImage? may relates: https://github.com/electron/electron/issues/42510

abnerlee avatar Aug 27 '25 00:08 abnerlee

not, i'm using deb package.

wkjun avatar Aug 27 '25 05:08 wkjun