E: 无法找到软件包 sublime-text 20.04

E: 无法找到软件包 sublime-text 20.04

我无法在我的 Ubuntu machin 20.04 上安装 sublime text,我按照以下命令操作,但仍然不起作用。sudo apt-get update sudo apt-get install sublime-text 或者 sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update。sudo apt-get install sublime-text-3

答案1

您有两个安装选项sublime-text

选项1:

按照官方网站

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null

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

选项 2:

sublime-text以 snap 包的形式提供,可以使用以下方式安装:

snap install sublime-text

你可以通过以下方式获取有关此 snap 包的更多详细信息

$ snap info sublime-text
name:      sublime-text
summary:   A sophisticated text editor for code, markup and prose.
publisher: Snapcrafters
store-url: https://snapcraft.io/sublime-text
contact:   https://github.com/snapcrafters/sublime-text/issues
license:   Proprietary
description: |
  Sublime Text is a powerful multi-platform text editor with a clean, modern user interface.
  Bringing wide support for programming languages, extensions, syntax-based features and many other
  useful features alongside low resource usage, Sublime Text proves itself to be a very competent
  solution for a vast set of environments and applications.
  The software may be downloaded and evaluated for free, however a license must be purchased for
  continued use.
  
    **Authors**
  
  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
snap-id: 2kOIsSRmQ7zjpIxzZDpoXaZOVejqaGOT
channels:
  latest/stable:    4143 2023-03-03 (118) 68MB classic
  latest/candidate: ↑                          
  latest/beta:      ↑                          
  latest/edge:      4143 2023-03-02 (118) 68MB classic

相关内容