How to install packages on Kicksecure 17 template?

I tried to install qubes-core-agent-network-manager on the Kicksecure 17 template, but it returned that I don’t have sudo privileges.

How can I install packages on Kicksecure?

Please follow this post (and replies to it):

I forcibly installed it using qvm-run -u root kicksecure-17 xterm. Would it have been better to use sysmaint?"

In the latter case, I believe you should then use sudo apt install something. In xterm terminal. I do not see if it should have advantages. But I might be wrong. Kicksecure lead monitors the forum and will advise if it would have any advantage.

I didn’t understand what sysmaint is, so I ended up using root, but anyway, the problem is resolved. Thank you as always!

SOLUTION

In dom0 terminal you should opening your Whonix-17 TemplateVM terminal, or Whonix-17 AppVM Terminal as root using this syntax:

qvm-run -u root Whonix-17-TemplateVM-Name xfce4-terminal

or

qvm-run -u root Whonix-17-AppVM-Name xfce4-terminal

Try that and you should be logged in as root in Whonix 17, and be able to run commands (without having to use sudo).

For more security, you can log in as “sysmaint” user with this syntax:

qvm-run -u sysmaint Whonix-17-TemplateVM-Name xfce4-terminal

or

qvm-run -u sysmaint Whonix-17-AppVM-Name xfce4-terminal

This is a bit more secure, and will log you in as sysmaint user, allowing you to run commands (also), but you need to use sudo for commands that require root privileges.