ubuntu下安装sublime文本编辑器的问题

ubuntu下安装sublime文本编辑器的问题
E: The repository 'https://download.sublimetext.com apt/stable/ Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

请帮我解决这个问题?

答案1

您必须software-properies-gtk先使用软件和更新 ( ) 删除损坏的 APT 存储库。然后修复它通过

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
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

或者使用下面方法之一安装 SublimeText:

  • 扁平包装

    sudo apt install flatpak
    flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    flatpak install flathub com.sublimetext.three
    
  • Ubuntu 制作

    sudo add-apt-repository ppa:lyzardking/ubuntu-make
    sudo apt-get update
    sudo apt-get install ubuntu-make
    
    umake ide sublime-text
    

相关内容