# Update Julia in Ubuntu 22

**URL:** <https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376>\
**Category:** New to Julia\
**Created:** [August 30, 2023, 4:40pm UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376 "2023-08-30T16:40:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [August 30, 2023, 4:40pm UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376/1 "2023-08-30T16:40:43Z")

</div>

Hello,  
I am running a julia file from console in Ubuntu 22 but I got this error:

```julia
$ julia natParmsInput.jl 
The latest version of Julia in the `release` channel is 1.9.3+0.x64.linux.gnu. You currently have `1.9.0+0.x64.linux.gnu` installed. Run:

  juliaup update

to install Julia 1.9.3+0.x64.linux.gnu and update the `release` channel to that version.

$ sudo juliaup update
sudo: juliaup: command not found

```

How can I solve this error?  
Thank you

---

<div class="post-metadata">

**Author:** ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Post date:** [August 30, 2023, 4:43pm UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376/2 "2023-08-30T16:43:14Z")

</div>

Juliaup can be installed on Linux or Mac by executing

```julia
curl -fsSL https://install.julialang.org | sh

```

> **[GitHub - JuliaLang/juliaup: Julia installer and version multiplexer](https://github.com/JuliaLang/juliaup)**
>
> Julia installer and version multiplexer. Contribute to JuliaLang/juliaup development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 30, 2023, 4:48pm UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376/3 "2023-08-30T16:48:01Z")

</div>

Normally (if you have a private computer) there is no need to use sudo to install Julia.

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [August 30, 2023, 7:21pm UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376/4 "2023-08-30T19:21:52Z")

</div>

It’s very weird that you get this message _without having juliaup installed_. Did you maybe install and then remove it?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 31, 2023, 1:54am UTC](https://discourse.julialang.org/t/update-julia-in-ubuntu-22/103376/5 "2023-08-31T01:54:08Z")

</div>

Well, if you install it as normal user and then try to run it with sudo this might happen. The search paths for the root user and the normal user are different.
