无法从软件中心获取Atom文本编辑器

我无法从软件中心获取Atom文本编辑器。 当我尝试时,我收到此错误:

Package does not exist. Check the spelling of the package name, and that the appropriate repository is enabled. 

运行这些命令可以在所有当前支持的Ubuntu版本(仅限64位)中从终端快速轻松地安装和升级Atom文本编辑器快照包。

  • 安装Atom文本编辑器:

     sudo apt install snapd sudo snap install --classic atom 

    请注意,经典限制中的快照表现为传统打包的应用程序,具有对系统的完全访问权限,并且Atom扩展包安装在用户的主目录中。

  • 升级Atom文本编辑器:

     sudo snap refresh --classic atom 

也可以从Ubuntu 16.04中的Ubuntu软件应用程序安装Atom文本编辑器,如下面的屏幕截图所示。 无论哪种方式,都不需要在您的软件源中添加PPA。

在此处输入图像描述

Atom不仅仅是另一个文本编辑器。 Atom可以通过安装Atom软件包进行扩展,这些软件包可以为Atom提供运行代码,显示内联图形输出等function。

在此处输入图像描述 Atom中的内联图

标准Ubuntu存储库中不提供Atom:

 ┌─[22:57:03]─[kazwolfe@firewolf] └──> ~ % apt-cache madison atom atom | 1.18.0-1~webupd8~0 | http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial/main amd64 Packages 

要安装Atom,您需要下载debfile并安装它,或者添加Webupd8 Atom PPA。

对于前者(直接debfile),运行以下命令:

 wget -O /tmp/atom.deb https://atom.io/download/deb sudo dpkg -i /tmp/atom.deb sudo apt -f install 

或者,如果您更愿意使用PPA并允许Apt管理您的安装(我个人推荐),请运行以下命令:

 sudo add-apt-repository ppa:webupd8team/atom sudo apt update sudo apt install atom