and then pops up a textfile.
But not on pureos. it says:
Sorry, command-not-found has crashed! Please file a bug report at: http://www.debian.org/Bugs/Reporting
Please include the following information with the report:
local variable ‘cnf’ referenced before assignment
Traceback (most recent call last):
File “/usr/share/command-not-found/CommandNotFound/util.py”, line 23, in crash_guard
callback()
File “/usr/lib/command-not-found”, line 93, in main
if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
UnboundLocalError: local variable ‘cnf’ referenced before assignment
The problem you see there is really a bug in the “command-not-found” package, nothing related to xed other than that xed is not installed.
It should give you a nice message saying that the command “xed” was not found, and possibly suggesting packages that could be installed to get it.
If you just type any bogus command that does not exist, probably you get the same kind of error message about command-not-found having crashed?
To avoid getting such “command-not-found has crashed” messages whenever you type a command that does not exist, you can simply remove the command-not-found package, like this:
sudo apt remove command-not-found
After that, it should just say “xed: command not found” when you try the xed command.
Of course, for the xed problem what you really need is to find some way to install xed, which I don’t know how to do.
@jeremiah are you aware of the command-not-found issue? I have it on my Librem 13 as well, unless I remove the command-not-found package which was installed by default in PureOS even though it does not seem to work.