From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Can't install org-plus-contrib from org elpa Date: Wed, 25 Jan 2017 20:36:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0939ce53c7d10546f12f63 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWUIn-0004WA-3s for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 15:36:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWUIl-0005yc-NF for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 15:36:21 -0500 Received: from mail-ua0-x22b.google.com ([2607:f8b0:400c:c08::22b]:35925) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWUIl-0005yG-HZ for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 15:36:19 -0500 Received: by mail-ua0-x22b.google.com with SMTP id 96so167966363uaq.3 for ; Wed, 25 Jan 2017 12:36:19 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Lawrence Bottorff , emacs-orgmode Mailinglist --94eb2c0939ce53c7d10546f12f63 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jan 25, 2017 at 3:25 PM Lawrence Bottorff 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 =E2=80=98org-plus-contrib-=E2=80=99 = 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 > --=20 Kaushal Modi --94eb2c0939ce53c7d10546f12f63 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Wed, Ja= n 25, 2017 at 3:25 PM Lawrence Bottorff <borgauf@gmail.com> wrote:
I'm trying a clean install wit= h this in my init.el

=
(require 'package)
(add-to-list 'package-archives
=C2=A0 '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/"))

Not related to your question, but this l= ink has been updated. See=C2=A0https://stable.melpa.org/#/getting-started

(add-to-list 'package-arc= hives
= =C2=A0 =C2=A0 '("org" . "http://orgmode.org/elpa/&qu= ot;))

;; Initialize all the ELPA packages (what is installed usin= g the packages commands)
(package-initialize)=

(when (not package-archive-contents)
=C2=A0 (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 st= ale. This could be the problem.
=C2=A0
(defvar my-packages
=C2=A0 '(;; org mode
=C2=A0 =C2=A0 org
=C2=A0 =C2=A0 ;; org mode plus contrib
=C2=A0 =C2=A0 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<= /div>
=C2=A0
(dolist (p= my-packages)
=C2=A0 (when (not (package-= installed-p p))
=C2=A0 =C2=A0 (package-instal= l p)))


eval-buffer-ing this gives

package-compute-transaction: Package =E2=80=98org-plus-contr= ib-=E2=80=99 is unavailable

I= t's as if it's looking for a specific=C2=A0org-plus-contrib-xxxx.ta= r ? Never had this problem before.

<= div>Call package-refresh-contents unconditionally. That should fix the prob= lem.=C2=A0


LB
--

Kaushal Modi

--94eb2c0939ce53c7d10546f12f63--