Update 2.3.7>2.4.1: Welcome: Command Not Found

v2.4.1
update
16.04

#1

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


#2

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


#3

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


#4

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

#5

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

#6

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

#7

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