can not update Hugo installed with apt
Hugo installed in my local environment (Ubuntu 20.04.4 LTS) could not be updated. I thought I’ve installed Hugo with apt
, but can not update it through apt
command.
$ hugo version
Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: 2020-03-25T06:15:45Z
The official document recommends using Homebrew
to install Hugo to Linux (see Reference 1). Also, I found a stackoverflow answer (see Reference 2). It says that apt
does not provide the latest version of Hugo.
So the solution was;
- removing the Hugo installed with
apt
- re-installing it with
Homebrew
(According to my command history, I usedapt-get
, notapt
🤔)
$ apt-get remove hugo
$ brew install hugo
$ hugo version
hugo v0.101.0+extended linux/amd64 BuildDate=unknown
🎉
Reference
- Install Hugo | Hugo, retrieved from https://gohugo.io/getting-started/installing/ (last access: 2022/07/01)
- linux - Hugo version not updating to latest - Stack Overflow, retrieved from https://stackoverflow.com/questions/61677467/hugo-version-not-updating-to-latest (last access: 2022/07/01)
書いている人 😎

茨城県つくば市在住のソフトウェアエンジニア。柏の葉キャンパスと新潟にオフィスのある某社にて、Androidアプリ開発のテックリードをしています。モバイルアプリのアーキテクチャ、自動テスト、技術書の執筆に興味があります。
Jetpack ComposeによるAndroid MVVMアーキテクチャ入門の著者です。
👉 もっと詳しく
Android MVVMアーキテクチャ入門 📝
Androidアプリ開発の初学者に向けた、MVVM(Model-View-ViewModel)アーキテクチャの入門書を書きました。初学者の方を確実にネクストレベルに引き上げる技術書です。