Greetings. After the last 2-3 updates I get command not found for each terminal command. How to solve this?
Thank you in advance.
I get messages like this:
If 'su' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf su
Please show what you do and get. Only so we can see what you did and got.
Copy/paste fom the terminal window between CODE tags in your post. Complete, that is including the prompt, the command, the output and the next prompt.
I see that while I was making my post, you are at least partly showed something.
Please show one or two more, so we get an idea about what seems to be missing. And tell more about those updates.
Here it is:
su -
If 'su' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf su
cnf su
If 'cnf' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf cnf
whereis su
If 'whereis' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf whereis
P.S. The last updates, packages like kernel, grub, etc. were updated.
Does it work if you specify the full path?
E.g.:
/usr/bin/ls
Maybe your path is set incorrectly set in ~/.profile or similar?
I don’t think it’s a deeper problem, otherwise your system would not be able to boot at all, if it cannot find all those commands.
It does work with full path! Where can I set the path? And why was it changed?
My ~/.profile:
# Sample .profile for SuSE Linux
# rewritten by Christian Steinruecken <cstein@suse.de>
#
# This file is read each time a login shell is started.
# All other interactive shells will only read .bashrc; this is particularly
# important for language settings, see below.
test -z "$PROFILEREAD" && . /etc/profile || true
# Most applications support several languages for their output.
# To make use of this feature, simply uncomment one of the lines below or
# add your own one (see /usr/share/locale/locale.alias for more codes)
# This overwrites the system default set in /etc/sysconfig/language
# in the variable RC_LANG.
#
#export LANG=de_DE.UTF-8 # uncomment this line for German output
#export LANG=fr_FR.UTF-8 # uncomment this line for French output
#export LANG=es_ES.UTF-8 # uncomment this line for Spanish output
# Some people don't like fortune. If you uncomment the following lines,
# you will have a fortune each time you log in ;-)
#if -x /usr/bin/fortune ] ; then
# echo
# /usr/bin/fortune
# echo
#fi
~/.profile
no idea why changed maybe the file was deleted???
$PATH to see current path
Path:
$PATH
bash: /usr/lib/restricted/bin: Is a directory
With this he means that the environment variable PATH contans the value of the pathes used in searching for comands with only the file name given. And you get that contents with
echo $PATH
this in terminal will bring it back. don’t know how to make it permanent though
test -z “$PROFILEREAD” && . /etc/profile || true
Possibly a bug has crept into “/etc/bash.bashrc” or one of the files that it calls from “/etc/profile.d”, and this bug is causing it to abort prematurely.
I haven’t noticed a problem. However, I use “csh” rather than “bash”, so a different set of startup scripts is run.
Thanks! Can’t wait the update.