Install Typora on Linux
Installation instructions for different flavours of Linux.
不同风格 Linux 的安装说明。
Debian/Ubuntu
# or use # wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add - wget -qO - https://typoraio.cn/linux/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/typora.asc # add Typora's repository sudo add-apt-repository 'deb https://typora.io/linux ./' sudo apt-get update # install typora sudo apt-get install typora
Alternative for apt-key //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 followings:
当您尝试在基于这些的 Debian、Ubuntu 和 Linux 发行版上使用 apt-key(上一个命令行中的第一行)添加 APT 存储库密钥时,您将看到以下消息:“警告:不推荐使用 apt-key。 改为在trusted.gpg.d 中管理密钥环文件(参见apt-key(8))”。 最简单的方法就是忽略它。 但是,如果您对警告不满意,您可以执行以下操作:
#Download the key and save it locally somewhere. curl https://typora.io/linux/public-key.asc | gpg --dearmor > /usr/share/keyrings/typora.gpg #Create repo file typora.list in /etc/apt/sources.list.d. sudo vim /etc/apt/sources.list.d/typora.list #Paste repo definition into this file: deb [arch=amd64 signed-by=/usr/share/keyrings/typora.gpg] https://typora.io/linux ./ #Now you can install Typora: sudo apt-get update sudo apt-get install typora
Upgrade 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 latest version.
安装 Typora 后,typora 包将由 apt-get 管理,因此当您的系统更新已安装的包时,或者您执行 apt-get upgrade 时,Typora 将更新到最新版本。
# upgrade all packages include Typora sudo apt-get upgrade
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
Download deb file manually
You can also manually download and install the deb package file, following those steps: Find download link from https://typora.io/releases/all and download the Linux version. Double click the deb file to start installing on Ubuntu / Debian.
Other Distributions
Download the binary package Typora-linux-x64.tar.gz. Try to install apt-get on your distribution, and then install typora.