# Raspberry PI4. bash: apt-get: command not found

**URL:** <https://forums.balena.io/t/raspberry-pi4-bash-apt-get-command-not-found/310373>\
**Category:** balenaOS\
**Tags:** support, raspberrypi4\
**Created:** [May 7, 2021, 8:15am UTC](https://forums.balena.io/t/raspberry-pi4-bash-apt-get-command-not-found/310373 "2021-05-07T08:15:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jirka11111](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jirka11111](https://forums.balena.io/u/jirka11111)\
**Post date:** [May 7, 2021, 8:15am UTC](https://forums.balena.io/t/raspberry-pi4-bash-apt-get-command-not-found/310373/1 "2021-05-07T08:15:01Z")

</div>

Hi, I have a problem. After adding a new application and raspberry pi4 device, the commands do not go, a message appears

root @ 80a0498: ~ # apt-get update  
bash: apt-get: command not found

---

<div class="post-metadata">

**Author:** ![jirka11111](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jirka11111](https://forums.balena.io/u/jirka11111)\
**Post date:** [May 7, 2021, 8:43am UTC](https://forums.balena.io/t/raspberry-pi4-bash-apt-get-command-not-found/310373/3 "2021-05-07T08:43:18Z")

</div>

# Connecting to 80a0498d4602b5aa784aed277a4ddb59… Spawning shell…

```
Welcome to balenaOS

```

=============================================================  
root@80a0498:~# apt-get update  
bash: apt-get: command not found  
root@80a0498:~#sudo apt-get update  
bash: sudo: command not found  
root@80a0498:~#

---

<div class="post-metadata">

**Author:** ![gelbal](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/gelbal/32/1109_2.png) [@gelbal](https://forums.balena.io/u/gelbal)\
**Post date:** [May 10, 2021, 5:14pm UTC](https://forums.balena.io/t/raspberry-pi4-bash-apt-get-command-not-found/310373/4 "2021-05-10T17:14:27Z")

</div>

Hello @jirka11111, first all of welcome to the balena community 🙂

Can you please explain the sort of application you want to develop and deploy?

In general, we advise the new users to go through out getting started docs like this one:

> **[Get started with Raspberry Pi 4 and Python - Balena Documentation](https://www.balena.io/docs/learn/getting-started/raspberrypi4-64/python/)**

We believe our docs do a good job introducing the balena concepts and how a newcomer like yourself could quickly get started. We appreciate hearing your feedback on how we could improve.

To talk specifically about the error you see: `apt-get` command doesn’t seem like available. What’s the base image you are using? Can you share your dockerfile?

Depending on the base image (as specified in the dockerfile), you will use a different command to install packages. We have additional documentation that explain Docker:

> **[Docker Masterclass - Balena Documentation](https://www.balena.io/docs/learn/more/masterclasses/docker-masterclass/)**

Finally, if you are using balena base images, you could use the convenient method `install_packages` for installations as explained here:

> **[Balena base images - Balena Documentation](https://www.balena.io/docs/reference/base-images/base-images/#installing-packages)**

Let us know how it goes and if we can help with anything specific.
