Skip to content
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

"warning: user does not exist - using root" when installing RPM using DNF #295

Closed
allanlewis opened this issue Feb 3, 2020 · 5 comments
Closed
Labels
bug Something isn't working needs-user-input p3 Affects a small number of users or is largely cosmetic packaging

Comments

@allanlewis
Copy link

Describe the bug

When I install the 0.5.2 RPM on Fedora 31, I get the following messages in my terminal:

warning: user  does not exist - using root
warning: group  does not exist - using root

It seems like the RPM is expecting some particular user to exist?
These are the specific versions I'm using:

➜  ~ gh --version
gh version 0.5.2 (2020-01-29)
https://github.com/cli/cli/releases/latest
➜  ~ rpm -q gh
gh-0.5.2-1.x86_64

Steps to reproduce the behavior

  1. sudo dnf install https://github.com/cli/cli/releases/download/v0.5.2/gh_0.5.2_linux_amd64.rpm
  2. The package installs correctly but the messages mentioned above are printed.

Expected vs actual behavior

I don't expect to see any warnings when installing the RPM.

Logs

See above.

@vilmibm
Copy link
Contributor

vilmibm commented Feb 3, 2020

Thanks for letting us know! the RPM file was only tested with yum so we didn't see these warnings.

I'm not sure where the blank user/group is coming from but using root is the desired behavior. I'm guessing we might need more explicit configuration of npfms (

nfpms:
).

@vilmibm vilmibm added packaging p3 Affects a small number of users or is largely cosmetic bug Something isn't working linux labels Feb 3, 2020
@tierninho tierninho added this to Backlog 🗒 in The GitHub CLI via automation Feb 8, 2020
@tierninho tierninho moved this from Backlog 🗒 to To do 📝 in The GitHub CLI Feb 8, 2020
@billygriffin billygriffin moved this from To do 📝 to Backlog 🗒 in The GitHub CLI Feb 14, 2020
@oschwald
Copy link

I believe this has already been fixed in GoReleaser. See goreleaser/nfpm#117.

@mislav
Copy link
Contributor

mislav commented Feb 20, 2020

Thanks @oschwald! @allanlewis can you try with a newer RPM?

@allanlewis
Copy link
Author

Thanks, @mislav, @oschwald, @vilmibm - I've installed the latest version and I didn't get any warnings 👍

The GitHub CLI automation moved this from Backlog 🗒 to Done 💤 Feb 21, 2020
@RokeJulianLockhart
Copy link

For future reference, @vilmibm, yum is deprecated in favour of dnf, although in recent versions of Fedora's OSes, yum should merely be a stub that redirects commands to dnf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-user-input p3 Affects a small number of users or is largely cosmetic packaging
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

No branches or pull requests

5 participants