aarnt / octoxbps

A Qt-based XBPS front end
GNU General Public License v2.0
73 stars 10 forks source link

Failed to exec 'sudo': No such file or directory #30

Closed haheute closed 1 year ago

haheute commented 2 years ago

When trying to sync the database manually (in the main window of OctoXBPS), I get this error message:

Synchronizing databases...

octoxbps-sudo: Failed to exec 'sudo': No such file or directory

Command finished with errors!

I don't have sudo installed, only doas (Void Linux). I thought it would work with doas, too, but I'm not sure.

The files /usr/bin/doas and /etc/doas.conf seem to exist:

ls -al /usr/bin/doas
-rwsr-xr-x 1 root root 43168 26. Jan 2022  /usr/bin/doas
ls -al /etc/doas.conf   
-rw-r--r-- 1 root root 23 13. Feb 2021  /etc/doas.conf
aarnt commented 2 years ago

@haheute Hmm, that's weird. Here I can use doas and/or sudo without any problem. Same path as yours.

haheute commented 2 years ago

Do you have sudo installed? I have uninstalled it and have only doas.

aarnt commented 2 years ago

Hmm,ok. I'll test this setup, then.

I was not able to remove the sudo pkg (because xbps did not allow me), but I renamed the binary so Void would not find it. On all my tests opendoas is always called.

haheute commented 2 years ago

Sorry I didn't see your edit ... I had followed this part of the documentation: https://docs.voidlinux.org/xbps/advanced-usage.html#ignoring-packages No problem.. I just reported it and thought maybe it is a bug or so .. thanks anyway

haheute commented 2 years ago

octo-bug_2022-10-20_20-41-17

this is what I see.. maybe something is wrong with my setup... not sure what...

aarnt commented 2 years ago

Sorry I didn't see your edit ... I had followed this part of the documentation: https://docs.voidlinux.org/xbps/advanced-usage.html#ignoring-packages No problem.. I just reported it and thought maybe it is a bug or so .. thanks anyway

Alright, I'll try that removal, then.

aarnt commented 1 year ago

Well, it seems sudo is now a required package due to base-system.

haheute commented 1 year ago

I believe it was required, all the time. That is the reason why this "ignore package" needed to be done, as in the one post above. Without that, it was not possible to uninstall sudo.

haheute commented 1 year ago

It works now. thanks :+1: