Installation instructions for different flavours of Linux.
# Add your key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://downloads.typora.io/typora.gpg | sudo tee /etc/apt/keyrings/typora.gpg > /dev/null
# Add the repo securely
echo "deb [signed-by=/etc/apt/keyrings/typora.gpg] https://downloads.typora.io/linux ./" | sudo tee /etc/apt/sources.list.d/typora.list
sudo apt-get update
# install typora
sudo apt-get install typora
If you once installed Typora below version 1.11, you need to remove the old keys before above steps. The old typora.asc
was considered unsafe as it uses SHA1 as digest algorithms.
sudo rm /etc/apt/trusted.gpg.d/typora.asc
apt-key
When you try to add an APT repository key using apt-key
(first line in previous command line) on Debian, Ubuntu and Linux distributions based on these, you’ll see the following message: “Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))”.
The easiest way would be just to ignore it.
But if you’re not OK with the warning, you can do the following:
Download the key and save it locally somewhere.
curl https://typora.io/linux/public-key.asc | gpg --dearmor > /usr/share/keyrings/typora.gpg
Create the repo file typora.list
in /etc/apt/sources.list.d
.
sudo vim /etc/apt/sources.list.d/typora.list
Paste the repo definition into this file:
deb [arch=amd64 signed-by=/usr/share/keyrings/typora.gpg] https://downloads.typora.io/linux ./
Now you can install Typora:
sudo apt-get update
sudo apt-get install typora
After installing Typora, the typora
package will be managed by apt-get
, so when your system updates installed packages, or you execute apt-get upgrade
, Typora will be updated to the latest version.
# upgrade all packages include Typora
sudo apt-get upgrade
# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://downloads.typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
echo -e "\ndeb https://downloads.typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
# install typora
sudo apt-get install typora
You can also manually download and install the deb package file by following these steps:
Firstly, you will need to enable Linux on Chromebook by following the “Turn on Linux” part here https://support.google.com/chromebook/answer/9145439?hl=en
Then, input commands from https://typora.io/#linux into the newly opened terminal window.
apt-get
on your distribution and then install Typora.You can also install Typora via snap install typora
.
Please notice the limitations of the snap version.
For wayland, please append flags when launching Typora (see https://blogs.igalia.com/msisov/2020/11/20/chrome-chromium-on-wayland-the-waylandification-project/).
--enable-features=UseOzonePlatform --ozone-platform=wayland
Typora for Linux is tested only on Ubuntu. So, if you have a problem with other distributions, please email us at hi@typora.
Make sure all the necessary dependencies are installed. You can run ldd typora | grep not
on a Linux machine to check which dependencies are missing.
For the following error:
[8898:0620/213856.172363:FATAL:setuid_sandbox_host.cc(157)] 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 /usr/share/typora/chrome-sandbox is owned by root and has mode 4755.
Try chmod 4755 /usr/share/typora/chrome-sandbox
See discussion in https://github.com/electron/electron/issues/17972
When double clicking on Typora’s binary file, Nautilus (file manager) doesn’t run it as it can’t detect it as an executable file.
This is caused by a Nautilus bug, see discussions in https://github.com/electron/electron/issues/15406. You can either: install Typora via deb
or apt-get
, or run Typora from the terminal (./Typora
).
version GLIBCXX_3.4.21 not defined in file libstdc++.so.6
errorWhen you start Typora on Ubuntu 14.x, if the following error happens:
/usr/share/typora/Typora: relocation error: /usr/share/typora/resources/app/node_modules/spellchecker/build/Release/spellchecker.node: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
Then download the Debian version of package libstdc++6 for Xenial at the following link http://packages.ubuntu.com/xenial/libstdc++6 and install it using dpkg -I
(Reference: https://askubuntu.com/questions/777803/apt-relocation-error-version-glibcxx-3-4-21-not-defined-in-file-libstdc-so-6).
See electron/electron#16364 (comment)
Try installing libgconf-2-4
first.
If you receive the following error when launching Typora:
[7465:7499:0911/174740.042852:FATAL:nss_util.cc(632)] NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer.
Aborted
then:
xenial-security
updates are included in Software & Updates.sudo apt-get update && sudo apt-get install libnss3
You can add a repository by:
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
See related discussion in https://github.com/typora/typora-issues/issues/2065#issuecomment-455877843.
Please check if you use fcitx (e.g. for typing Chinese)? Ctrl + 5 is the global shortcut key for fcitx to reload its config. Deleting that global shortcut should make Ctrl + 5 work in Typora. (Thanks to https://github.com/typora/typora-issues/issues/867#issuecomment-647082881).
Try launching Typora with the extra argument --disable-gpu
.
Please refer to https://github.com/electron-userland/electron-builder/issues/5217#issuecomment-700707564
When you save or save-as a file, the dialog does not pop up and in terminal you get:
(typora:114856): Gtk-WARNING **: 15:47:01.744: Can't open portal file chooser: GDBus.Error:org.freedesktop.portal.Error.InvalidArgument: invalid filter: no filters
Then, you can try running Typora with GTK_USE_PORTAL=0 typora