1

I'm on Arch Linux (4.11.9-1) trying to install a package from AUR using packer.

During installation, after compressing the package, I'm asked for my sudo password which I enter.

Then, installation fails with this error message:

sorry, you are not allowed to preserve the environment

What's the reason for this error and how can I get around it?

1 Answer 1

1

The reason for the error is this line in my sudoers file (check yours with visudo):

# I can use pacman with sudo and don't have to enter a password
me ALL=NOPASSWD:/usr/bin/pacman

This line didn't seem to agree with packer; removing it made the installation work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .