0

I'm on Debian 10, KDE.

I'm installing a package with apt and no errors are shown. However when I try to execute the program I get an error re missing executable. E.g.

>>> sudo apt install knights
# .... installs knights without error
>>> knights
Unknown command

When trying to execute knights via the KDE menu I get the following message:

Failed to execute: 'knights -qwindowtitle "Knights"'
Error: Failed to execute child process "knights" (No such file or directory)

My $PATH is like this

>>> echo $PATH
/bin /usr/bin     # no knights executable is found there

A while ago I accidentally removed myself from most groups. I'm member of the following:

>>> groups
cdrom floppy sudo audio dip video plugdev netdev bluetooth lpadmin scanner mysql vboxusers postgres

I tried this with 2 or 3 applications. I also did apt update / upgrade and restarted. Nothing helped... where is apt installing the applications into?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
pandita
  • 723
  • 2
  • 14
  • 28
  • 2
    can you please do `updatedb` and then `locate knights` ? – binarysta Jun 04 '20 at 12:43
  • I had to install 'locate' which funnily enough worked :) For some reason knights is installed in `/usr/games/knights`. Why is this? – pandita Jun 04 '20 at 12:49
  • 1
    because its a game :-) please have a look https://unix.stackexchange.com/questions/1687/games-directory – binarysta Jun 04 '20 at 13:03
  • Well I guess, yes :) never noticed these directories before.... just strange that it only came up now and that it wasn't on the $PATH.... could it have anything to do with me removing myself from all groups? – pandita Jun 04 '20 at 13:10
  • 1
    sometimes it is handy to list the files in a package to find out what exactly it did install: dpkg -L knights – ruud Jun 04 '20 at 13:41
  • @ruud that was one command I was trying to find before the other solution... thanks for the hint – pandita Jun 05 '20 at 11:19

0 Answers0