sublime text安装

本文档指导如何解决在Ubuntu上通过apt安装Sublime Text时遇到的证书验证失败问题。首先,需要安装GPG密钥,然后设置apt支持HTTPS源。接着,选择稳定或开发频道并更新apt源。但在执行更新时出现错误,提示Repository的Release文件不存在,且证书验证失败。为解决此问题,可以尝试重新安装ca-certificates。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

apt

The apt repository contains packages for both x86-64 and arm64.

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

Select the channel to use:

Stable

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Dev

echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text

 sudo apt update && sudo apt install sublime-text
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                               
Ign:2 https://download.sublimetext.com apt/stable/ InRelease                                                                                   
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease                      
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                               
Err:5 https://download.sublimetext.com apt/stable/ Release                                 
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 104.236.0.104 443]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                                                         
Reading package lists... Done                                                                                                                                          
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.

解决以上错误:

apt install --reinstall ca-certificates

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值