unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pablo Wolter <pwolter@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Package installation broken in all repos with package unavailable
Date: Thu, 10 Jun 2021 09:50:51 -0700	[thread overview]
Message-ID: <CACut1v5Bi7sV3GyZgu5jEtya_dOsfqhZzvg0bg5eCavEed7uBw@mail.gmail.com> (raw)
In-Reply-To: <jwvzgvx6d3x.fsf-monnier+emacs@gnu.org>

I am having the same results with  (add-to-list 'package-archives '("melpa"
. "https://melpa.org/packages/"))

So I don't know what is wrong ... if I remove it completely how I should do
it?

Thsi is the reevant part of my .emacs.d/init.el:

;; .emacs.d/init.el
;; Enables basic packaging support

(require 'package)

;; Adds the Melpa archive to the list of available repositories
(add-to-list 'package-archives '(
             ("melpa" . "http://melpa.milkbox.net/packages/")
             ("org" . "http://orgmode.org/elpa/")
             ("elpa" . "http://elpa.gnu.org/packages/")))

;; Initializes the package infrastructure
(package-initialize)

;; If there are no archived package contents, refresh them
(when (not package-archive-contents)
  (package-refresh-contents))

(package-refresh-contents)

;; Installs packages
;; myPackages contains a list of package names
(defvar myPackages
  '(
    tron-legacy-theme               ;; Tron legacy theme
    elpy                            ;; Emacs List Python Environment
    flycheck                        ;; On the fly sintax check
    blacken                         ;; Black formatting on save
    ein                             ;; Emacs IPython Notebook
    magit                           ;; Git integration
    markdown-mode                   ;; Markdown mode suport
    better-defaults                 ;; Set up some better Emacs defaults
    counsel                         ;; Ivy, swiper and counsel
    doom-modeline                   ;; Doom modeline-mode
    which-key                       ;; Options for keys
   ;; The following packages are now failing to install, the ones above
this line installed ok some days ago
    rainbow-delimiters              ;; Rainbow delimiters
    ivy-rich                        ;; Ivy rich
    helpful                         ;; Helpful (?)
    projectile                      ;; project managment
    )
)

;; Scans the list in myPackages
;; If the package listed is not already installed, install it
(mapc #'(lambda (package)
          (unless (package-installed-p package)
            (package-install package)))
      myPackages)


*Saludos,*



*Pablo Wolterpwolter@gmail.com <pwolter@gmail.com>*


On Thu, Jun 10, 2021 at 6:58 AM Stefan Monnier via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> >> (setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
> >>                           ("gnu" . "http://elpa.gnu.org/packages/")
> >>                           ("melpa" . "
> http://melpa.milkbox.net/packages/"))
> >> t)
> >
> > MELPA's address is "https://melpa.org/packages/" now and, if i'm not
> > mistaken,
>
> And Tom Tromey's archive is not in use any more.
>
> > GNU ELPA requires https to be used (at least that's the
> > default with an empty init file).
>
> No, the `http` address is fine (and shouldn't suffer from the TLS
> version problems alluded to by someone else).
>
> OTOH, the above setting overrides the default, so it hides the new
> NonGNU archive that is enabled by default in Emacs-28.
>
> IOW either don't change `package-archives` at all, or use something like:
>
>     (add-to-list 'package-archives '("melpa" . "
> https://melpa.org/packages/"))
>
> which will still give you the "gnu" archive, since it's enabled there by
> default.
>
>
> -- Stefan
>
>
>


  reply	other threads:[~2021-06-10 16:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  0:23 Package installation broken in all repos with package unavailable Pablo Wolter
2021-06-10  0:34 ` Jude DaShiell
2021-06-10  8:13 ` jakub-w
2021-06-10 13:57   ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-06-10 16:50     ` Pablo Wolter [this message]
2021-06-10 20:43       ` Pablo Wolter
2021-06-10 10:03 ` Tassilo Horn

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CACut1v5Bi7sV3GyZgu5jEtya_dOsfqhZzvg0bg5eCavEed7uBw@mail.gmail.com \
    --to=pwolter@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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).