abu_bua Asked: 2022-03-27 12:04:41 +0800 CST2022-03-27 12:04:41 +0800 CST 2022-03-27 12:04:41 +0800 CST Cannot become root inside aptitude 772 Cannot become root within aptitude If you install the aptitude and invoke with aptitude you cannot become root and will get this error message: aptitude 1 Answers Voted Best Answer abu_bua 2022-03-27T12:09:45+08:002022-03-27T12:09:45+08:00 To get root access after e.g. you press u (update the package list) you have to add aptitude::Get-Root-Command "sudo:/usr/bin/sudo"; to your ~/.aptitude/config file. Type these commands in your shell mkdir -v ~/.aptitude echo 'aptitude::Get-Root-Command "sudo:/usr/bin/sudo";' >> ~/.aptitude/config The default configuration is the su command. More settings and configuration options can be found in the aptitude manual.
To get root access after e.g. you press u (update the package list) you have to add
aptitude::Get-Root-Command "sudo:/usr/bin/sudo";
to your~/.aptitude/config
file.Type these commands in your shell
The default configuration is the
su
command.More settings and configuration options can be found in the aptitude manual.