Skip to content

sudo not included in Debian dependencies #152

Open
@GreenReaper

Description

@GreenReaper

Bug Overview

When I tried to install the Debian package provided by nginx, I encountered several failures because it was assumed that sudo was installed, which was not the case on my cloud server - it provided root access without a regular user.

In particular the sudo tee step is easy to miss the first time, and if you do not look closely the error appears to be related more to gpg, since the download completes.

Expected Behavior

I expected the installation instructions to work, accounting for the possibility that sudo was not installed, perhaps with a preface indicating that it was a dependency which must be installed separately if not already done.

Steps to Reproduce the Bug

# sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring

-bash: sudo: command not found

[if sudo ignored and dependencies installed]

# curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
-bash: sudo: command not found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11809  100 11809    0     0  26590      0 --:--:-- --:--:-- --:--:-- 26656
gpg: [stdout]: write error: Broken pipe
gpg: [stdout]: write error: Broken pipe
gpg: filter_flush failed on close: Broken pipe

Environment Details

  • Target deployment platform: Leaseweb Virtual Machine
  • Target OS: Linux VM 6.1.0-34-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.135-1 (2025-04-25) x86_64 GNU/Linux
  • Version of this project or specific commit: Live site as of 2025-05-04

Additional Context

The VM was running a default install of Debian 12 provided by Leaseweb US, except that I had done a dist-upgrade and installed the cloud kernel instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions