-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow sudo fixed #3367
Comments
I have a custom hostname, and also have this in my hosts file
It's not necessary to add the hostname to the file because systemd-resolved will automatically resolve it if it is not defined. The 3-5 second delay is what you get when a hostname was defined that doesn't match the actual hostname on the system. So this can be avoided by not specifying it in the hosts file. |
Oh, that's odd. For me, for some reason, if I just have this, it's 3-5 seconds slow for me:
|
I hope every distro does this, I have a script called fsudo which I run on every install of Linux. |
Distribution (run
cat /etc/os-release
):NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
Related Application and/or Package Version (run
apt policy $PACKAGE NAME
):Issue/Bug Description:
Sorry, not sure if this has been posted before or resolved yet
I just got a completely new System76 laptop recently. I've updated everything and restarted multiple times.
Anyway, I was noticing that any
sudo
command was running very slowly, like 3-5 seconds to run this:I had changed my hostname by going to Settings (gui) => About. This is how I've always done it on Fedora, etc.
Anyway, after searching online, I found the solution was by updating
/etc/hosts
:Original:
Updated with "example" as hostname:
Now
sudo echo 'hi'
runs in a few milliseconds.It probably requires an upstream fix, but it seems pretty important to me.
The text was updated successfully, but these errors were encountered: