10.10: shell script

Asked by peter


I have a shell script with the following lines:

echo 'Apt-get'
echo '---------'
sudo apt-get update
sudo apt-get upgrade
read i

I created a launcher, but the script doesn't run. I'll get the following error message:

There was an error creating the child process for this terminal
Failed to execute child process "/home/peter/OwnData/Sys_Admin/Shell_Scripts/Apt-get/apt-get" (Permission denied)

I can run the script in a terminal, but not in a launcher.

What can I do to run it with a launcher? Thanks in advance.

Question information

English Edit question
Ubuntu bash Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Helder Mendes (heldermendes) said :

Hi there,

Did you launch this script with sudo?

Revision history for this message
peter (peter-neuweiler) said :

Thanks, Helder, this solved the problem. But now I have another problem:

The script opens and closes immediately. Do you have an idea? Thanks.

Revision history for this message
actionparsnip (andrew-woodhead666) said :

echo uses "s and not 's

You should also add a line at the top, reading:


You also need to run:

chmod +x yoirfile

To mark it as executable as currently it sounds like you havent done this, otherwise it looks fine

If you use:

sudo apt-get -y upgrade

You will not be asked to confirm the download, it will just be done

Revision history for this message
peter (peter-neuweiler) said :

Thanks. The problem has solved.