Skip to content

error: Unable to activate package 'company-auctex'. #27

@c02y

Description

@c02y

Every time I git clone my configuration of Emacs into a new machine and start Emacs, there will be error message in Emacs:

error: Unable to activate package 'company-auctex'.
Required package 'auctex-11.87' is unavailable

I know I can fix this problem by package-install auctex manually, but is there a way that I can check if activating company-auctex package failed and then install auctex automatically?

I've trying to use the following in my init.el:

(unless (package-installed-p 'auctex)
    (package-install 'auctex))

But it doesn't work at all and keeps saying the same error message everytime I start my emacs.

So how to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions