应用官方文档:http://support.typora.io/Typora-on-Linux/
September 26, 2016 by typora.io
不同版本的Linux的安装说明。
# 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
安装Typora后,该typora软件包将由管理apt-get,因此,当系统更新已安装的软件包或执行时apt-get upgrade,Typora将更新为最新版本。
# upgrade all packages include Typora
sudo apt-get upgrade
# install typora to the curent user's profile
nix-env -i typora
# 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
apt-get
在您的发行版上安装,然后安装typora。Typora for Linux仅在Ubuntu上进行了测试。因此,如果您对其他发行版有疑问,请发送电子邮件至 hi@typora.
确保已安装所有必需的依赖项。您可以ldd typora | grep not在Linux机器上运行以检查缺少哪些依赖项。
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的二进制文件时,Nautilus(文件管理器)不会运行,因为我无法将其检测为可执行文件。
这是由Nautilus的错误引起的,请参见https://github.com/electron/electron/issues/15406中的讨论。您可以:通过deb或安装Typora apt-get,或者从终端(./Typora)运行Typora 。
在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)。
参见 electron/electron#16364 (comment)
尝试libgconf-2-4
先安装。
如果在启动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
然后:
您可以通过以下方式添加存储库:
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
请参阅 https://github.com/typora/typora-issues/issues/2065#issuecomment-455877843.
手机扫一扫
移动阅读更方便
你可能感兴趣的文章