Install Typora on Linux
应用官方文档:
http://support.typora.io/Typora-on-Linux/
September 26, 2016 by typora.io
不同版本的Linux的安装说明。
Debian/Ubuntu
# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update
# install typora
sudo apt-get install typora
Upgrade Typora
安装Typora后,该typora软件包将由管理apt-get,因此,当系统更新已安装的软件包或执行时apt-get upgrade,Typora将更新为最新版本。
# upgrade all packages include Typora
sudo apt-get upgrade
NixOS
# install typora to the curent user's profile
nix-env -i typora
Mint
# or use
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
# install typora
sudo apt-get install typora
其他发行
- 下载二进制软件包 Typora-linux-x64.tar.gz, Typora-linux-ia32.tar.gz.
- 尝试
在您的发行版上安装,然后安装typora。apt-get
发行支持
Typora for Linux仅在Ubuntu上进行了测试。因此,如果您对其他发行版有疑问,请发送电子邮件至 [email protected].
屏幕截图
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbwxCdh1mcvZ2LcV2Zh1Wa9M3clN2byBXLzN3btg3P3pVdC5GTwkzRhpXNXpFbKNTW6lzQlFTNXF2cxMVW5lzRjVjUzwEasdkWsFjMMZHbtxEaKNjY3xGSkVXUuNmdCh0Yx40MMZ3bENGMShUYvwlbj5yZtlmbkN3YuQnclZnbvN2Ztl2Lc9CX6MHc0RHaiojIsJye.jpg)
故障排除
Typora无法打开的常见解决方案
确保已安装所有必需的依赖项。您可以ldd typora | grep not在Linux机器上运行以检查缺少哪些依赖项。
Debian Stretch出错
Debian Stretch出错
对于以下错误:
[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.
尝试
chmod 4755 /usr/share/typora/chrome-sandbox
参见 https://github.com/electron/electron/issues/17972 中的讨论
无法打开Typora二进制文件“没有为共享库安装任何应用程序”
双击Typora的二进制文件时,Nautilus(文件管理器)不会运行,因为我无法将其检测为可执行文件。
这是由Nautilus的错误引起的,请参见https://github.com/electron/electron/issues/15406中的讨论。您可以:通过deb或安装Typora apt-get,或者从终端(./Typora)运行Typora 。
启动Typora并出现version GLIBCXX_3.4.21 not defined in file libstdc++.so.6错误
在Ubuntu 14.x上启动Typora时,如果发生以下错误:
/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
然后在链接http://packages.ubuntu.com/xenial/libstdc++6上下载Xenial的libstdc ++ 6软件包的Debian并使用安装dpkg -i(参考:https: //askubuntu.com/questions/777803/apt -relocation-error-version-glibcxx-3-4-21-not-defined-in-file-libstdc-so-6)。
[Ubuntu 14.04] typora:/lib/x86_64-linux-gnu/libdbus-1.so.3:没有可用的版本信息(Typora要求)
参见 electron/electron#16364 (comment)
加载共享库时出错:libgconf-2.so.4
尝试
libgconf-2-4
先安装。
NSS已过期
如果在启动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
然后:
- 确保xenial-security更新包含在“ 软件和更新”中。
- 跑 sudo apt-get update && sudo apt-get install libnss3
输入格式错误,未添加存储库
您可以通过以下方式添加存储库:
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
请参阅 https://github.com/typora/typora-issues/issues/2065#issuecomment-455877843.