Unable to uninstall hugo on (MX) Linux

$ sudo snap remove hugo
error: cannot communicate with server: Post "http://localhost/v2/snaps/hugo": dial unix /run/snapd.socket: connect: no such file or directory
$ hugo version
hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.19.6"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"

When you install Hugo as a snap package, the hugo version command tells you that it’s a snap package:

hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended linux/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=snap:0.126.1

See the last bit? VendorInfo=snap?

When you ran hugo version it doesn’t include that bit, so the active instance (first in your PATH) is not a snap package.

You’ve asked about this before, but try where hugo to see all instances, and which hugo to determine the active intance (first in PATH).

sudo apt-get remove hugo
sudo apt-get purge hugo

Is there a way to get a more recent hugo version with Debian? I am just testing a linux distro today and I am not aware which binary to use or how to add the hugo path.

sudo apt install hugo is stuck on v0.111.3

Edit

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

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