Update 2.3.7>2.4.1: Welcome: Command Not Found

After running the update commands im now met with the following upon sshing into my user and sudoing.
User:
Welcome: command not found
No command ‘disk1’ found, did you mean:
Command ‘diskd’ from package ‘fdutils’ (universe)
Command ‘dis51’ from package ‘dis51’ (universe)
disk1: command not found
No command ‘disk1’ found, did you mean:
Command ‘diskd’ from package ‘fdutils’ (universe)
Command ‘dis51’ from package ‘dis51’ (universe)
disk1: command not found
No command ‘disk1’ found, did you mean:
Command ‘dis51’ from package ‘dis51’ (universe)
Command ‘diskd’ from package ‘fdutils’ (universe)
disk1: command not found
No command ‘disk1’ found, did you mean:
Command ‘dis51’ from package ‘dis51’ (universe)
Command ‘diskd’ from package ‘fdutils’ (universe)
disk1: command not found

Sudo su -:
Welcome: command not found
No command ‘bin’ found, did you mean:
Command ‘din’ from package ‘din’ (universe)
Command ‘bing’ from package ‘bing’ (universe)
Command ‘tin’ from package ‘tin’ (universe)
Command ‘dbin’ from package ‘dbmix’ (universe)
Command ‘bino’ from package ‘bino’ (universe)
Command ‘win’ from package ‘wily’ (universe)
Command ‘bip’ from package ‘bip’ (universe)
Command ‘ben’ from package ‘ben’ (universe)
bin: command not found
No command ‘bin’ found, did you mean:
Command ‘dbin’ from package ‘dbmix’ (universe)
Command ‘bino’ from package ‘bino’ (universe)
Command ‘bip’ from package ‘bip’ (universe)
Command ‘ben’ from package ‘ben’ (universe)
Command ‘din’ from package ‘din’ (universe)
Command ‘win’ from package ‘wily’ (universe)
Command ‘tin’ from package ‘tin’ (universe)
Command ‘bing’ from package ‘bing’ (universe)
bin: command not found
No command ‘bin’ found, did you mean:
Command ‘din’ from package ‘din’ (universe)
Command ‘ben’ from package ‘ben’ (universe)
Command ‘win’ from package ‘wily’ (universe)
Command ‘bing’ from package ‘bing’ (universe)
Command ‘tin’ from package ‘tin’ (universe)
Command ‘bip’ from package ‘bip’ (universe)
Command ‘bino’ from package ‘bino’ (universe)
Command ‘dbin’ from package ‘dbmix’ (universe)
bin: command not found
No command ‘bin’ found, did you mean:
Command ‘dbin’ from package ‘dbmix’ (universe)
Command ‘win’ from package ‘wily’ (universe)
Command ‘din’ from package ‘din’ (universe)
Command ‘bing’ from package ‘bing’ (universe)
Command ‘bip’ from package ‘bip’ (universe)
Command ‘bino’ from package ‘bino’ (universe)
Command ‘ben’ from package ‘ben’ (universe)
Command ‘tin’ from package ‘tin’ (universe)
bin: command not found

What is the output of your /etc/profile file?

It’s definitely the cat into the /etc/profile that’s causing this. Just ran into this issue on an upgrade over here and was able to remove the error output with this. Think we need to go with echo

Yeah, it should be this as profile only accepts commands, so it thinks all of that is some sort of command. :sweat:

cat >>/etc/profile<<EOF
echo "Welcome Back ${A1} !"
echo "  * Dashboard:  ${CONSOLEIP}"
echo "  * Support:    https://plaza.quickbox.io"
echo "  * Roadmap:    https://quickbox.io/roadmap"
echo "  * Donate:     https://quickbox.io/donate"
EOF

Not sure what either of you just said but this is my output.

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
Welcome Back blahblah !
  * Dashboard:  ip
  * Support:    https://plaza.quickbox.io
  * Roadmap:    https://quickbox.io/roadmap
  * Donate:     https://quickbox.io/donate

In the bottom of that file… remove the following and then close and save.

Welcome Back blahblah !
  * Dashboard:  ip
  * Support:    https://plaza.quickbox.io
  * Roadmap:    https://quickbox.io/roadmap
  * Donate:     https://quickbox.io/donate
1 Like

Fixed, thanks for knowing your stuff you guys(girls).