Tag Archives: Sublime text

Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”

Sublime is the editor I am used to. I want to download it after reinstalling the system recently, but according to the download method on the official website, the following error will appear:

@ubuntu:~$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
OK
@ubuntu:~$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
deb https://download.sublimetext.com/ apt/stable/
@ubuntu:~$ sudo apt update && sudo apt install sublime-text
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease              
Ign:4 https://download.sublimetext.com apt/stable/ InRelease                   
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease            
Err:6 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]
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.

The reason is that a software package called “ca-certificates” is not installed. After installation, you can execute the installation instruction of sublime from the beginning.

@ubuntu:~$ sudo apt install ca-certificates

MacTex Font Missing Error: The font “TeX Gyre Termes Math“ cannot be found.

Problem: the font “tex gyre termes math” cannot be found after the installation configuration is completed

\setmathfont{TeX Gyre Termes Math}

Software: mactex + sublime text

Cause: the Mac OS system lacks tex gyre termes math font

Solution:

1. Download font package

get into http://www.gust.org.pl/projects/e-foundry Download, find tex gyre termes math from the font bar on the left and download:

2. Install font

After decompression, there are doc and OpenType folders in the font package, and the OpenType file contains a textgyreterms-math.otf file. Double click the installation directly under the MAC system to install the system font. After successful installation, see the following figure:

For the installation process of other systems, refer to install.txt in the doc folder. After the installation is completed, it can be compiled!

Sublime text4 install package error [How to Solve]

Problem introduction

sublime Text4 when installing install package control , you may encounter the following errors:

an error occurred installing package control.
Visit https://packagecontrol.io/installation for manual instructions

Problem-solving

For the above problems, it may be due to network problems. At this time, try adding the following two lines to the hosts file.

50.116.34.243 sublime.wbond.net
50.116.34.243 packagecontrol.io

Win10, add sublime text in the right mouse button menu to open

Environment: Win10; Take Sublime Text for example


Use the shortcut key Win + R to open Command and type Regedit to open the registry.
Find the shell in “*” in “HKEY_CLASSES_ROOT”, right-click and create a new item “Edit with Sublime Text”, and right-click on “Edit with Sublime Text” and create a new item “Command”;
Create a new string value in “Edit with Sublime Text” and name it “Icon”. The value is the installation path of ST, but be sure to add “,0 “after it;
double-click to edit the default values in the “Command”, add value for the same installation path of ST, but the back to add “% 1” – pay attention to the space;

Sublime text add to right mouse button function

D:\ AppFiles\\ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \ SubLimeText3 \

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\SublimeText3]
@="Edit with SublimeText3"
"Icon"="D:\\AppFiles\\SublimeText3\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\*\shell\SublimeText3\command]
@="D:\\AppFiles\\SublimeText3\\sublime_text.exe \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3]
@="Edit with SublimeText3"
"Icon"="D:\\AppFiles\\SublimeText3\\sublime_text.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\SublimeText3\command]
@="D:\\AppFiles\\SublimeText3\\sublime_text.exe \"%1\""

Note: Sublime Text 3 space paths and space filenames are problematic
Note that %1 must be enclosed in English double quotation marks. Otherwise, you will not be able to right-click files containing space paths or files with space filenames.