# Guix on foreign distro: Seems to have messed up my guix install

**URL:** <https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531>\
**Category:** Guix\
**Created:** [March 30, 2024, 4:16pm UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531 "2024-03-30T16:16:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trisk3lion](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Trisk3lion](https://forum.systemcrafters.net/u/Trisk3lion)\
**Post date:** [March 30, 2024, 4:16pm UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531/1 "2024-03-30T16:16:08Z")

</div>

So i’m running Guix on a foreign distro (debian container in Chrome OS) and after doing some tweaking with my Guix Home setup and running guix pull I seems to have managed to get myself into some strange state, or I have found a bug.

Now when I try to run any guix command it fails because of `make-custom-binary-output-port` doesn’t seems to be defined.

Do anyone have any idea of what I could do to fix this? I can’t rollback because that command also fails. The only thing that works is running guix with sudo.

Backtrace:

```auto
Backtrace:
          11 (primitive-load "/home/dev/.config/guix/current/bin/guix")
In guix/ui.scm:
   2324:7 10 (run-guix . _)
  2287:10 9 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1755:12 8 (with-exception-handler _ _ #:unwind? _ # _)
  1749:15 7 (with-exception-handler #<procedure 7f6f5a93ec00 at ic…> …)
In guix/store.scm:
   657:15 6 (call-with-store #<procedure 7f6f5a959f60 at guix/scrip…>)
    570:2 5 (open-connection _ #:port _ #:reserve-space? _ # _)
In ice-9/boot-9.scm:
  1755:12 4 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   577:19 3 (_)
   940:11 2 (buffering-output-port _ _)
In ice-9/boot-9.scm:
  1676:22 1 (raise-exception _ #:continuable? _)
  1674:22 0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1674:22: In procedure raise-exception:
error: make-custom-binary-output-port: unbound variable

```

---

<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:** [March 30, 2024, 8:09pm UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531/2 "2024-03-30T20:09:40Z")

</div>

How did you install guix? I always download the binares, I don’t use apt-get install for installing guix on debian.

---

<div class="post-metadata">

**Author:** ![Trisk3lion](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Trisk3lion](https://forum.systemcrafters.net/u/Trisk3lion)\
**Post date:** [March 30, 2024, 8:38pm UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531/3 "2024-03-30T20:38:42Z")

</div>

I installed it with the install script from the Guix documentation, so no using apt.

Should say that I have been running Guix for a few months and this happened just now.

---

<div class="post-metadata">

**Author:** ![shom](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/shom/32/291_2.png) [@shom](https://forum.systemcrafters.net/u/shom)\
**Post date:** [March 31, 2024, 2:41am UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531/4 "2024-03-31T02:41:31Z")

</div>

Did you try installing again and make sure to set/export E environment variables the installer mentions at the last step?

---

<div class="post-metadata">

**Author:** ![Trisk3lion](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Trisk3lion](https://forum.systemcrafters.net/u/Trisk3lion)\
**Post date:** [March 31, 2024, 2:41pm UTC](https://forum.systemcrafters.net/t/guix-on-foreign-distro-seems-to-have-messed-up-my-guix-install/531/5 "2024-03-31T14:41:54Z")

</div>

I managed to get it working again by uninstalling and reinstalling Guix.

Thanks for the help!
