Hi J Wall
Ensure your user is listed in the /etc/sudoers file. You can check this by running visudo, Look for a line that gives your user sudo privileges. It should look something like this:
your_username ALL=(ALL:ALL) ALL
If the sudo
command continues to fail, you can try switching to the root account directly. However, this approach is generally not recommended for regular use. First, enable the root account if it’s not already enabled
sudo -i
sudo passwd root
Verify that Advance package Tool (APT) is configured to prevent the installation of patches, service packs, device drivers, or Ubuntu operating system components without verification they have been digitally signed using a certificate that is recognized and approved by the organization. Check that the "AllowUnauthenticated" variable is not set at all or set to "false" with the following command: # grep AllowUnauthenticated /etc/apt/apt.conf.d/* /etc/apt/apt.conf.d/01-vendor-Ubuntu:APT::Get::AllowUnauthenticated "false"; If any of the files returned from the command with "AllowUnauthenticated" set to "true", this is a finding.
Reference:
https://www.stigviewer.com/stig/canonical_ubuntu_18.04_lts/2023-11-21/finding/V-219155
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--