Fixed error "curl: (77) error setting certificate verify locations" when installing spacevim on ubuntu.
In our attempt to install a distribution the vim editor (which is spacevim), we encountered an error. It appears when trying to install the spacevim installation command:
bash <(curl -fsSL https://raw.githubusercontent.com/liuchengxu/space-vim/master/install.sh)
curl: (77) error setting certificate verify locations: CAfile: /home/bad-path/anaconda3/ssl/cacert.pem CApath: none $: command not found
In this post, we will take a step-by-step walk through how we were able to solve the problem.
File search 2.0 - the file search application is compatible with android 11 - other new features
[bctt tweet=”spacevim – curl: (77) error setting certificate verify locations” username=”tedidevblog”]
Solution - spacevim - curl: (77) error setting certificate verify locations
After several searches, we found that the causes of this error are that the script cannot find the binary of the python language. Indeed the path of the excutable of the interpreter of the python language is erroneous.
The most obvious solution is to correct the path to the python binary.
In our case, the observation is fragile when we try to run the anaconda software strongly based on the python interpreter. Here is the error that appears
bash: / home / tedidev / anaconda3 / bin / conda: / home / byteboy / anaconda3 / bin / python: bad interpreter: No such file or directory
To resolve this issue, we have modified the conda bash file with the following instructions:
-
gedit / home / tedidev / anaconda3 / bin / conda;
- In the file there is the following script:
#! / home / bad-path / anaconda3 / bin / python # - * - coding: utf-8 - * - import re import sys from conda.cli import main if __name__ == '__main__': sys.argv [0] = re.sub (r '(- script \ .pyw? | \ .exe)? $ ',' ', sys.argv [0]) sys.exit (main ())
- The first line is the one that interests us. it must be modified by the real path to python
#! / home / good-path / anaconda3 / bin / python
- Save the file and test conda again. He should be walking.
Now that we have fixed the path to the python executable, there is one last step. This is to remove the tool curl which conflicts with that of the system.
conda remove curl
Now after following the instruction you can start the installation again with the spacevim installation script.
Kazam - ideal application for taking screenshots and video on ubuntu
About Spacevim
SpaceVim is a distribution of the Vim editor inspired by spacemacs. It manages layered plugin collections, which help bring together related packages to provide functionality. This approach keeps the setup organized and reduces overhead for the user by preventing them from having to think about which packages to install.
Conclusion
As you may have noticed, the spacevim installation error, comes from the fact that we already had an installation of a powerful datascience tool which is anaconda and whose components conflict with those of spacevim. To correct it, we had to remove the problematic conda tools.
You may be interested in Loss of internet connection as soon as you connect a bluetooth headset et Soulstice - announcement trailer - release scheduled for 2022
