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

error: getting status of '/run/current-system/sw': No such file or directory #59

Open
Baruel opened this issue Nov 28, 2024 · 0 comments

Comments

@Baruel
Copy link

Baruel commented Nov 28, 2024

Likely due to

nix-env) packages="$(nix-store -q --requisites /run/current-system/sw | wc -l)" ;;

Also shows package manager as (bin) despite having apt-get and dpkg-query when nix-env is commented out, but bash nerdfetch shows brew as package manager. /usr/bin/sh is dash

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ MANAGER=$(command -v nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm opkg eopkg getprop 2>/dev/null)

$ echo $MANAGER
/home/redacted/.nix-profile/bin/nix-env /usr/bin/flatpak /usr/bin/dpkg-query /home/linuxbrew/.linuxbrew/bin/brew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant