emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Lawrence Bottorff <borgauf@gmail.com>,
	emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Can't install org-plus-contrib from org elpa
Date: Wed, 25 Jan 2017 20:36:07 +0000	[thread overview]
Message-ID: <CAFyQvY0-EdibnPA49jbxAUghqqDEnjieEsGhSkmnJukQK7NcFQ@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSVg6s1eJ4ykqtYDB6Grf00C59U0fNJtp2KL1awPJgV6BA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

On Wed, Jan 25, 2017 at 3:25 PM Lawrence Bottorff <borgauf@gmail.com> wrote:

> I'm trying a clean install with this in my init.el
>
> (require 'package)
> (add-to-list 'package-archives
>   '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/"))
>

Not related to your question, but this link has been updated. See
https://stable.melpa.org/#/getting-started

(add-to-list 'package-archives
>     '("org" . "http://orgmode.org/elpa/"))
>
> ;; Initialize all the ELPA packages (what is installed using the packages
> commands)
> (package-initialize)
>
> (when (not package-archive-contents)
>   (package-refresh-contents))
>

(package-refresh-contents) should be called every time if you tend to
install package non-interactively i.e. not using M-x list-packages. You
could have non-nil package-archive-contents but that value could be stale.
This could be the problem.


> (defvar my-packages
>   '(;; org mode
>     org
>     ;; org mode plus contrib
>     org-plus-contrib))
>

Also not related to the problem, you do not need both org and
org-plus-contrib. Just org-plus-contrib will suffice. See
http://orgmode.org/elpa.html


> (dolist (p my-packages)
>   (when (not (package-installed-p p))
>     (package-install p)))
>
>
> eval-buffer-ing this gives
>
> package-compute-transaction: Package ‘org-plus-contrib-’ is unavailable
>
> It's as if it's looking for a specific org-plus-contrib-xxxx.tar ? Never
> had this problem before.
>

Call package-refresh-contents unconditionally. That should fix the problem.


> LB
>
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 4277 bytes --]

      reply	other threads:[~2017-01-25 20:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 20:24 Can't install org-plus-contrib from org elpa Lawrence Bottorff
2017-01-25 20:36 ` Kaushal Modi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY0-EdibnPA49jbxAUghqqDEnjieEsGhSkmnJukQK7NcFQ@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).