Hugo version for Ubuntu

I am new here so sorry for my silly questions.

On Quick Start, it stated that:

Verify that you have installed Hugo v0.128.0 or later.

hugo version

I have just installed Hugo on my Ubuntu machine by

sudo apt install hugo

The version installed is hugo v0.123.7+extended linux/amd64 BuildDate=2024-11-06T01:07:23Z VendorInfo=ubuntu:0.123.7-1ubuntu0.2

I would expect the version should have been v0.128.0 or later but it isn’t. Did I do something wrong? Any help would be greatly appreciated!

You are seeing the last version shipped with the last stable version of Ubuntu. To use the latest version, just download the latest binary from the releases page and install it. For example, I use Linux Mint, so I install the Linux AMD version.

In your terminal, run the following commands

wget https://github.com/gohugoio/hugo/releases/download/v0.146.3/hugo_0.146.3_linux-amd64.deb
sudo dpkg -i hugo_0.146.3_linux-amd64.deb

Just make sure you check the version that is correct for your architecture.

2 Likes

Thank you so much. I am so lucky that latest Hugo version is available from Ubuntu App Center as of today 12 Apr 2025

I have just got it installed from the App Center. Here is the output after installation.

hugo version
hugo v0.146.3-05ef8b713a3c091bfca7a3543ed016c64b3c6f88 linux/amd64 BuildDate=2025-04-12T17:21:50Z VendorInfo=gohugoio

The App Center installs the Hugo Snap package, identical to what is documented here:
https://gohugo.io/installation/linux/#snap

After installing, when you run hugo version it should show this:

hugo v0.146.3-05ef8b713a3c091bfca7a3543ed016c64b3c6f88+extended linux/amd64 BuildDate=2025-04-12T17:21:50Z VendorInfo=snap:0.146.3

Look at the end of the line above:

VendorInfo=snap:0.146.3

But when you ran the command, the result ends with VendorInfo=gohugoio.

So either you didn’t install the Snap package, or you have installed Hugo twice. You can check this with:

whereis hugo
1 Like

Thank you @jmooring
I am not sure what happened. All of this is over my head.

Basically, I followed @tyco instructions above, but then it didn’t work. hugo version resulted in something like “file not found” and whereis hugo returned a blank line. So I ran sudo apt remove hugo and then sudo apt purge sudo and about to repeating @tyco 's instructions.

By chance, I found out that the v0.146.3 is recently be available on App Center hence can be installed from there. After that, I ran hugo version and copied and pasted the output in my previous post.

I am not knowledgeable about the difference between VendorInfo=snap:0.146.3 and VendorInfo=gohugoio. So I followed your instruction and ran whereis hugo. The output is as followings:

hugo: /usr/local/bin/hugo /snap/bin/hugo

The result of the whereis command means that you have two installations of hugo. If I were you I would keep the snap package and uninstall the other:

sudo apt remove hugo --purge
sudo apt autoremove
1 Like

Thanks again @jmooring. The output is now much shorter. I guess only the snap package remains.

whereis hugo
hugo: /snap/bin/hugo

That’s correct. For a new or inexperienced user the snap package is a pretty good choice because it contains all of the optional dependencies. It automatically checks for updates 4 times each day, and installs the update in the background. You can disable/enable the auto update as needed:

https://snapcraft.io/docs/managing-updates

1 Like

Great to know. Thank you.

But I would have to leave it as is for now till I get more comfortable with Ubuntu and Hugo.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.