Skip to content

Errors on Arch Linux, when package lsb-release is missing. #16

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

Open
invidian opened this issue Jul 17, 2016 · 2 comments
Open

Errors on Arch Linux, when package lsb-release is missing. #16

invidian opened this issue Jul 17, 2016 · 2 comments
Assignees

Comments

@invidian
Copy link

I'm not sure if I should have package lsb-release installed or not, but when it's missing, I miss also /etc/lsb-release file and script depends on it. I think there should be some additional checking for this.

Log:

$ bash -x ./vmplayer-bumblebee 
+ gVers=2.0
+ ACADAPTER=/sys/class/power_supply/AC
+ BATTERY=/sys/class/power_supply/BAT0
+ FORCE3D=a
+ DO3D=n
++ basename ./vmplayer-bumblebee
+ scriptname=vmplayer-bumblebee
+ echo
+ egrep -q -w '(help|h|\?)'
+ '[' 1 -eq 0 ']'
++ which gksudo
+ '[' -x /usr/bin/gksudo ']'
++ which gksudo
+ SUDO='/usr/bin/gksudo -k'
+ determineos
++ uname -p
+ ARCH=unknown
+ '[' unknown = unknown ']'
++ uname -m
+ ARCH=x86_64
+ '[' x86_64 = unknown ']'
++ which dpkgx
which: no dpkgx in (~/.local/bin:~/.gem/ruby/2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/adobe-air-sdk/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' ']'
++ which rpm
which: no rpm in (~/.local/bin:~/.gem/ruby/2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/adobe-air-sdk/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
+ '[' ']'
++ which pacman
+ '[' /usr/bin/pacman ']'
+ OStype=arch
++ grep -c -i 'arch linux' /etc/lsb-release
grep: /etc/lsb-release: No such file or directory
+ '[' -gt 0 ']'
./vmplayer-bumblebee: line 119: [: -gt: unary operator expected
++ grep -c -i manjaro /etc/lsb-release
grep: /etc/lsb-release: No such file or directory
+ '[' -gt 0 ']'
./vmplayer-bumblebee: line 125: [: -gt: unary operator expected
+ NVIDIA_DEST32=
+ '[' -d /linux-gnu ']'
+ NVIDIA_DEST64=
+ '[' -d /linux-gnu ']'
+ '[' x86_64 = x86_64 -o x86_64 = amd64 ']'
+ ULIB=
+ LIB=
+ NVIDIA_DEST=
+ '[' -z ']'
+ echo 'ERROR: Couldn'\''t determine paths properly!'
ERROR: Couldn't determine paths properly!
+ exit 2
@docsmooth
Copy link
Owner

I don't have arch, so I'm 100% dependent on others here. Are there multiple platforms that use pacman as package manager? If so, that's probably why I'm also checking the lsb-release. do you have any other file in /etc (maybe /etc/release) that I can also check for to ensure it's Arch and not another pacman-using system?

@invidian
Copy link
Author

Perhaps /etc/os-release could be used instead of /etc/lsb-release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants