title: sudo: command not found | gitlab-ci
body: <p>I'm using gitlab-ci for my simple project.</p>
  <p>And everything is ok my runner is working on my local machine(ubuntu18-04) and I tested it with simple .gitlab-ci.yml.</p>
  <p>Now I try to use the following yml:</p>
  <pre><code>image: ubuntu:18.04 
  
  build-job:
    stage: build
    script:
      - echo &quot;Hello, $GITLAB_USER_LOGIN!&quot;
      - sudo apt-get update
  </code></pre>
  <p>but I get the following error:</p>
  <pre><code>/bin/bash: line 110: sudo: command not found
  </code></pre>
  <p>How can I use sudo?</p>