this post was submitted on 24 Nov 2023
2 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I am trying to install ement.el with the following config

#+begin_src emacs-lisp
  (use-package ement
    :elpaca (:host github :repo "alphapapa/ement.el"))
#+end_src

When the config is loaded I get the error as follows. There are no network issues.

ement [GNU-devel ELPA|GNU ELPA]
Matrix client

source: GNU-devel ELPA
url:    https://elpa.gnu.org/packages/ement.html
menu item:
( :package   "ement"
  :repo      "https://github.com/alphapapa/ement.el.git"
  :local-repo "ement"
  :files    
  (:defaults "*" (:exclude ".git")))
recipe:
( :package   "ement"
  :host      github
  :repo      "alphapapa/ement.el"
  :local-repo "ement"
  :files    
  (:defaults "*" (:exclude ".git"))
  :protocol  https
  :inherit   t
  :depth     nil)
dependencies: ?
dependents: ?
commit:  
statuses:
  (failed cloning reclone cloning queued)

top 5 comments
sorted by: hot top controversial new old
[–] nv-elisp@alien.top 1 points 1 year ago (1 children)

That's the package info (accessed via M-x elpaca-info ). What does the log say for that package (M-x elpaca-log)?

[–] paarulakan@alien.top 1 points 1 year ago (1 children)

just failed to access

Package Status Info Time ▼ 
ement                          failed               fatal: unable to access 'https://github.com/alphapapa/ement.el.git/': server certificate verification failed. CAfile: none CRLfile: none 16.170102
[–] nv-elisp@alien.top 1 points 1 year ago (1 children)

server certificate verification failed. CAfile: none CRLfile: none

So it looks like the SSL cert is not trusted for some reason. That is a networking issue. It can occur for a number of reasons. I would start by searching for the certificate error + "github". e.g.

https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed

[–] paarulakan@alien.top 1 points 1 year ago (1 children)

This is the issue. I was not even able to clone a repo via terminal. Followed the steps mentioned in the link and it now works without issue. thanks :)

Including the instruction here below for it might be useful to someone.

From stackoverflow

-------

Make sure first that you have certificates installed on your Debian in /etc/ssl/certs

If not, reinstall them:

sudo apt-get install --reinstall ca-certificates 

Since that package does not include root certificates, add:

sudo mkdir /usr/local/share/ca-certificates/cacert.org sudo wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt sudo update-ca-certificates 

Make sure your git does reference those CA:

git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
[–] nv-elisp@alien.top 1 points 1 year ago

You're welcome. Glad you got it sorted.