Terminal opens, but when I attempt to type for examle Sudo...... Nothing happens. I can't type anything. Using 20.10.
Any thoughts?
Terminal opens, but when I attempt to type for examle Sudo...... Nothing happens. I can't type anything. Using 20.10.
Any thoughts?
Thread moved to New to Ubuntu for a more appropriate fit.
When you open the terminal, do you see a prompt? It should normally look like user@host:dir$, with a username, hostname and current working directory. Something like john@orion:~$.
BTW, I never type Sudo (except just now). Occasionally I type sudo, one of my less used commands. The command line (like almost everything in Linux) is case-sensitive. And when sudo asks for your password, you won't see anything typed. That's normal, just type the password and hit enter.
is what a userid in the sudo group should see. Let's see what a user not in the sudo group sees:Code:$ sudo usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
Same thing. Interesting. For some reason I would have thought that sudo wouldn't work for non-sudo group members.Code:foo@regulus:~$ id uid=1001(foo) gid=1001(foo) groups=1001(foo) $ sudo usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
I would have expected:Code:$ ll /usr/bin/sudo -rwsr-xr-x 1 root root 166056 Jul 14 20:17 /usr/bin/sudo*
Code:$ ll /usr/bin/sudo -rwsr-x--- 1 root sudo 166056 Jul 14 20:17 /usr/bin/sudo*
No prompt, All I get is James@james XPS 13 9360 -
The dash is barely visible and is a light blue.
Delete your ~/.bashrc and ~/.profile files. .... or move them somewhere else.
Something is screwed in the new shell process. Those 2 files are part of the defaults.
Or you could change the shell for your userid to some other valid shell, but that's really not for a beginner.
To me that sounds like a prompt. The dash would actually be a tilde. But it could be that your .bashrc or .profile or some file sourced from these was messed up. The shell may be in a deadlock, preventing it from accepting input, or echoing of input may be turned off, so you can still type, but don't see anything happen (like when typing a password).
The defaults for .bashrc and .profile can be found in /etc/skel/.
Er ... what is your hostname? hostnames should be lowercase, no funny characters, no spaces. There are many reasons.
I reinstalled 20.10 and the terminal worked. But later on it failed again. I still get the same response as shown above.
I've been with Ubuntu since 2006 and this has me stumped.
Now what?
During the installation process, there is a warning about the computer name:-
Computer name must not start or end with a hyphen
How did you circumnavigate this when re-installing?
Here is a suggestion:-
Settings > About > Device name > Try and rename device without spaces and without a trailing hyphen
Reboot and/or log out/log in.
Any luck?
Bookmarks