Linux shell problem

I counld not run script properly.

If I run

-sharp!/bin/sh
echo "Hello.World"

It"s good.

But

-sharp!/bin/sh
sudo su
apt-get update
apt-get upgrade


It failed.

What do I need extra ?

Thank you.


update:

Apr.01,2021

 

because you are not familiar with linux,
, you edit files under windows and send them to ssh

.

the editor I use here is not simply "0A" but "0A0D" mixed with "0D" to cause the linux script recognition error.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb2612-69b40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb2612-69b40.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?