# Upgrading Guix on a Debian?

**URL:** <https://forum.systemcrafters.net/t/upgrading-guix-on-a-debian/1069>\
**Category:** General\
**Created:** [October 23, 2024, 3:19pm UTC](https://forum.systemcrafters.net/t/upgrading-guix-on-a-debian/1069 "2024-10-23T15:19:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cow\_2001](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/cow_2001/32/598_2.png) [@cow\_2001](https://forum.systemcrafters.net/u/cow_2001)\
**Post date:** [October 23, 2024, 3:19pm UTC](https://forum.systemcrafters.net/t/upgrading-guix-on-a-debian/1069/1 "2024-10-23T15:19:54Z")

</div>

In order to upgrade Guix on a Debian, the [Guix manual](https://guix.gnu.org/manual/en/html_node/Upgrading-Guix.html) and [latest blog post](https://guix.gnu.org/en/blog/2024/build-user-takeover-vulnerability/) say I should:

```auto
sudo -i guix pull
systemctl restart guix-daemon.service

```

I did that but `/usr/bin/guix-daemon --version` still says the version is `1.2.0`. What should I do?

---

<div class="post-metadata">

**Author:** ![mirkoh](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@mirkoh](https://forum.systemcrafters.net/u/mirkoh)\
**Post date:** [October 24, 2024, 1:13am UTC](https://forum.systemcrafters.net/t/upgrading-guix-on-a-debian/1069/2 "2024-10-24T01:13:29Z")

</div>

I’m also using guix on debian but my guix-daemon is in other location:

```auto
/gnu/store/iygxiv409gqdfz6jj7i9jzhmijwqi5dz-guix-d95588242/bin/guix-daemon --version
guile: warning: failed to install locale
guix-daemon (GNU Guix) 1.4.0-25.e85f52e

```

I did use the binary installation [Binary Installation (GNU Guix Reference Manual)](https://guix.gnu.org/manual/en/html_node/Binary-Installation.html), maybe your installation was done using apt?

---

<div class="post-metadata">

**Author:** ![unruffled\_lumiere](https://avatars.discourse-cdn.com/v4/letter/u/82dd89/32.png) [@unruffled\_lumiere](https://forum.systemcrafters.net/u/unruffled_lumiere)\
**Post date:** [October 25, 2024, 3:56pm UTC](https://forum.systemcrafters.net/t/upgrading-guix-on-a-debian/1069/3 "2024-10-25T15:56:16Z")

</div>

I find the advice from the docs and the mailing list to not quite align with what I have seen when maintaining a binary install (on Debian variannts) and so I include a snippet from my system update script below for your review:

```auto
if command -v guix 2>&1 > /dev/null; then
	(set -x;
	 sudo su -l -c 'guix pull --timeout=0 && \
	     guix install guix glibc-locales nss-certs && \
	     guix upgrade --timeout=0 && \
	     guix gc --delete-generations=1m')
...
fi

```

Something like that is the only way I’ve ever gotten a binary install to reliably update.
