Skip to content

sudo-rs not supported #1499

@alessio-perugini

Description

@alessio-perugini

Describe the bug

I don't think it's a bug of pyinfra, but I wanted to report here in case other users have the same issue.
Ubuntu 25.10 changed default implementation of sudo to sudo-rs. However it seems that there are some issues when pyinfra require sudo to prompt user password interactevely failing with:

--> Preparing operation files...
    Loading: deploy.py
    [@local] sudo-rs: interactive authentication is required
    [@local] Error: could not load fact: server.TmpDir

I've tested then to switch to old sudo implementation and everything work smooth.

To Reproduce

Use sudo-rs, and run a pyinfra command with __Sudo

Expected behavior

Same as sudo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugLabel for all kind of bugs.dependency issueIssues in dependencies that affect pyinfra.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions