Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Package ‘undo-tree-’ is unavailable #1225

Open
samratroy opened this issue Feb 10, 2019 · 22 comments
Open

error: Package ‘undo-tree-’ is unavailable #1225

samratroy opened this issue Feb 10, 2019 · 22 comments

Comments

@samratroy
Copy link

@samratroy samratroy commented Feb 10, 2019

Cannot complete setup in my Ubuntu 16.04 machine using Emacs 26.1. I get the error as given in the title.
"error: Package ‘undo-tree-’ is unavailable"

@samratroy

This comment has been minimized.

Copy link
Author

@samratroy samratroy commented Feb 10, 2019

Cannot complete setup in my Ubuntu 16.04 machine using Emacs 26.1. I get the error as given in the title.
"error: Package ‘undo-tree-’ is unavailable"

@adityaathalye

This comment has been minimized.

Copy link

@adityaathalye adityaathalye commented Feb 18, 2019

As far as I can tell, this particular failure can happen due to unsigned packages, or incorrectly signed packages. I see that undo-tree-0.6.5 available from the gnu package repo, is unsigned.

Workarounds are available.

See if this helps:

  • review the advice at https://www.gnu.org/software/emacs/manual/html_node/emacs/Package-Installation.html
  • try to identify the offending package (start emacs with --debug-init)
  • add the package to the package-unsigned-archives list and restart emacs (ideally, after auditing the source code of your target package)
  • you may need to do this at the top of prelude's init.el (set the list, before prelude tries to install packages)
  • it's possible that more than one package is causing this problem

There's some advice out there to turn off signature checking entirely with (setq package-check-signature nil) --- see: https://stackoverflow.com/a/26110978 --- but I don't like this idea of very much (signatures exist for a good reason).

Please report back here with your findings. I'd be interested to learn if I'm wrong, and more interested to learn what worked for you.

Also if this is a fundamental issue, prelude maintainers might be able to work out a proper fix.

@ceod

This comment has been minimized.

Copy link

@ceod ceod commented Mar 12, 2019

Same report as OP, with similar config (ubuntu16.04 + emacs26.1 from the kellyk ppa.)

Additionally, I get a

failed to download 'gnu' archive

message before emacs prelude terminates with

error: Package ‘undo-tree-’ is unavailable

Possibly related are:

https://www.reddit.com/r/emacs/comments/apr9b2/bad_signature_from_gnu_elpa_signing_agent/

https://stackoverflow.com/questions/26108655/error-updating-emacs-packages-failed-to-download-gnu-archive

Haven't been able to resolve this yet.

Any news?

@stale

This comment has been minimized.

Copy link

@stale stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

@stale stale bot added the stale label May 8, 2019
@aeweiwi

This comment has been minimized.

Copy link

@aeweiwi aeweiwi commented May 28, 2019

Same here I get the same message

Warning (initialization): An error occurred while loading ‘c:/Users/username/.emacs.d/init.el’:

error: Package ‘undo-tree-’ is unavailable

@stale stale bot removed the stale label May 28, 2019
@spaceotter

This comment has been minimized.

Copy link

@spaceotter spaceotter commented Jul 14, 2019

I'm running into this too, with current master. I'm using windows and emacs is installed with msys2, which has version 26.1. If I try to package-list I get an additional error, which you can see in this pastebin I found (idk who posted this) https://pastebin.com/ttnqUcMm

error in process sentinel: Error retrieving: https://elpa.gnu.org/packages/archive-contents "incomprehensible buffer" [2 times]

However, the same "error in process sentinel" occurs with an empty .emacs.d - so it may not be an issue with prelude.

@spaceotter

This comment has been minimized.

Copy link

@spaceotter spaceotter commented Jul 15, 2019

This looks like a consequence of this emacs bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
If you are seeing this issue, adding this temporary fix at the beginning of init.el may help:
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
Credit to npostavs in #emacs for helping me out.

@jcguu95

This comment has been minimized.

Copy link

@jcguu95 jcguu95 commented Aug 13, 2019

@spaceotter 's result and @retiform 's reference solved the problem for me. I could not believe it happened almost half of year ago and hasn't been taken care of officially.. :(

potterzot added a commit to potterzot/prelude that referenced this issue Aug 16, 2019
Reference [Issue 1225](bbatsov#1225) in the upstream repo.
@trago

This comment has been minimized.

Copy link

@trago trago commented Aug 24, 2019

@spaceotter 's result and @retiform 's reference solved the problem for me. I could not believe it happened almost half of year ago and hasn't been taken care of officially.. :(

Solved for me doing that hack

@rafiks

This comment has been minimized.

Copy link

@rafiks rafiks commented Sep 21, 2019

yup @spaceotter workaround works.

@highkone

This comment has been minimized.

Copy link

@highkone highkone commented Oct 3, 2019

For me installing newest emacs on debian sid fixed a problem. I also did the above mentioned addition to the init.el. That alone did not work for me on emacs versio I had. Also I have had problem lately with the certificate emacs uses to access the (m)elpa package sites, thus the reinstalling probably/possibly fixed the keyring issue too. And I am using development branch of the spacemacs (should it be relevant info)

@bbatsov

This comment has been minimized.

Copy link
Owner

@bbatsov bbatsov commented Oct 3, 2019

Installing Emacs 26.3 is the simplest way to solve this.

@wapcrazut

This comment has been minimized.

Copy link

@wapcrazut wapcrazut commented Oct 4, 2019

Installing Emacs 26.3 is the simplest way to solve this.

Recommended solution:

sudo add-apt-repository ppa:kelleyk/emacs
sudo apt update
sudo apt install emacs26

Then run emacs26 on the terminal

@rafiks

This comment has been minimized.

Copy link

@rafiks rafiks commented Oct 7, 2019

I can confirm that this works with emacs 26.3 on my Mac.
https://emacsformacosx.com/

@semperos

This comment has been minimized.

Copy link

@semperos semperos commented Oct 16, 2019

Confirm Emacs 26.3 fixes this for me as well. Installed on Pop!_OS via the PPA wapcrazut mentioned.

noorul added a commit to noorul/kubernetes-el that referenced this issue Oct 31, 2019
This is because the undo-tree available from the gnu package repo, is
unsigned. Most people have been upgrading to Emacs 26.3 to work around this:

See bbatsov/prelude#1225
noorul added a commit to noorul/kubernetes-el that referenced this issue Oct 31, 2019
This is because the undo-tree available from the gnu package repo, is
unsigned. Most people have been upgrading to Emacs 26.3 to work around this:

See bbatsov/prelude#1225
noorul added a commit to noorul/kubernetes-el that referenced this issue Oct 31, 2019
This is because the undo-tree available from the gnu package repo, is
unsigned. Most people have been upgrading to Emacs 26.3 to work around this:

See bbatsov/prelude#1225
noorul added a commit to noorul/kubernetes-el that referenced this issue Oct 31, 2019
This is because the undo-tree available from the gnu package repo, is
unsigned. Most people have been upgrading to Emacs 26.3 to work around this:

See bbatsov/prelude#1225

Also moved to EVM emacs https://github.com/rejeep/evm
@samratroy

This comment has been minimized.

Copy link
Author

@samratroy samratroy commented Nov 27, 2019

Okay, revisiting this after quite sometime: two non-related approaches solved the issue for me:

  1. As has been so widely prescribed: updating emacs itself to the newest release.
    or
  2. Setting package-check-signature to nil.
    Thanks.
@bootladder

This comment has been minimized.

Copy link

@bootladder bootladder commented Dec 8, 2019

For Ubuntu 16.04, ppa:kelleyk/emacs does not have 26.3, so I built 26.3 from source and that solved the issue.

@bbatsov

This comment has been minimized.

Copy link
Owner

@bbatsov bbatsov commented Dec 9, 2019

Btw, I wrote an entire article on the subject - https://metaredux.com/posts/2019/12/09/dealing-with-expired-elpa-gpg-keys.html

@serafss2

This comment has been minimized.

Copy link

@serafss2 serafss2 commented Dec 15, 2019

Upgrading to 26.3 solved my problem.

I suggest just compiling emacs from source, the steps are fairly simple:

./configure
make

You then can just update the symlink in /bin:

rm /bin/emacs
ln -s /opt/emacs-26.3/src/emacs /bin/emacs

I do these steps since 2014 and they didn't change since, this will remove your ppa dependence and always have the latest software, applies to any application - not like you need any other software than emacs eh

@26-55-87-BuddhiLW

This comment has been minimized.

Copy link

@26-55-87-BuddhiLW 26-55-87-BuddhiLW commented Jan 14, 2020

Why not make it explicit in the homepage of the prelude repository? It's a common problem, over all.

lpenz added a commit to lpenz/dotemacs that referenced this issue Jan 20, 2020
Hack from
bbatsov/prelude#1225

Solves "Package ‘undo-tree-0.6.3’ is unavailable" problem, that makes
evil uninstallable.
@bbatsov

This comment has been minimized.

Copy link
Owner

@bbatsov bbatsov commented Jan 28, 2020

Yeah, that's a good idea.

@smeierzubiesen

This comment has been minimized.

Copy link

@smeierzubiesen smeierzubiesen commented Jan 30, 2020

Btw, I wrote an entire article on the subject - https://metaredux.com/posts/2019/12/09/dealing-with-expired-elpa-gpg-keys.html

This is by far the most useful resource in all this chatter.
I would recommend, straight after cloning of prelude (et al.) to start emacs once, then after failed startup C-x-c to close, import the gpg key as per above, and bob's your auntie (or gender challenged uncle lol) the next start of emacs includes all tools that come with prelude redux etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.