根据http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/,apt-get install sublime-text
是安装 Sublime 的正确方法。
不幸的是,我在 Lubuntu 18.10 中找不到它。
user@linux:~$ sudo apt show sub
subcommander subiquity-tools subread substance-flamingo-doc subtle
subcommander-doc subliminal subread-data substance-swingx subunit
subdownloader subliminal-nautilus substance substance-swingx-doc subuser
subiquity submux-dvd substance-doc subtitlecomposer subversion
subiquitycore subnetcalc substance-flamingo subtitleeditor subversion-tools
user@linux:~$
我已经更新了系统(sudo apt update && sudo apt upgrade
),但仍然找不到它。这似乎是什么问题?
答案1
这是因为 sublime-text 默认不在 ubuntu 存储库中。您应该首先将其存储库添加到您的系统存储库:1. 安装密钥:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
- 添加其存储库:
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
现在安装它:
sudo apt-get update
sudo apt-get install sublime-text