
niquelnausea
(usa Arch Linux)
Enviado em 17/03/2019 - 23:02h
como criou seu usuário? provavelmente não tem acesso ao root com o sudo, por isso não instala. logado no teu usuário, rode o comando
$ groups nomedoseuusuario
se não tiver o
wheel, tem duas opções, faça a instalação dos pacotes como como root, ou adicione o teu usuário ao grupo
wheel (necessário estar logado como root)
# gpasswd -a nomediteuusuario wheel
e edite o arquivo
/etc/sudoers corretamente com o comando (necessário estar logado como root)
# EDITOR=nano visudo
retirando o comentário (#) a linha na linha
%wheel ALL=(ALL) ALL, ficando assim
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
e após isso tera acesso ao
sudo
maiores duvidas leia
https://wiki.archlinux.org/index.php/users_and_groups