Monday, April 29, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1218  / 2 Years ago, sat, september 3, 2022, 9:20:56

I've been using Ubuntu for about a week now. I logged in today and launched the terminal I got presented a whole list of errors. I've tried to chsh but it won't recognise the command. Nor all other common ones.



Any ideas?



http://oi48.tinypic.com/2zxt93d.jpg



Extra info:
$PATH:



/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/jorden/android-sdk-linux/tools:/home/jorden/android-sdk-l

More From » gnome-terminal

 Answers
4

Try with:



export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"


and then type the command you want to execute, for example:



sudo apt-get update && sudo apt-get upgrade


If this works, you can add the line to your .bashrc inside your home directory to restore the correct PATH.


[#35166] Monday, September 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
darpose

Total Points: 424
Total Questions: 99
Total Answers: 121

Location: Jersey
Member since Fri, Oct 1, 2021
3 Years ago
darpose questions
Sun, Jan 23, 22, 04:32, 2 Years ago
Tue, Apr 25, 23, 23:44, 1 Year ago
Wed, Dec 15, 21, 14:42, 2 Years ago
Wed, Jun 2, 21, 23:41, 3 Years ago
;