nix icon indicating copy to clipboard operation
nix copied to clipboard

Installation of Nix fails on Fedora 33

Open brenthuisman opened this issue 4 years ago • 5 comments

Describe the bug

I tried to install Nix onto my Fedora 33 system. The installer failed starting a service. I don't know if that was the last thing it needed to do. The installer seemed to succesfully get sudo privileges earlier during the installation.

Steps To Reproduce

Only caught the tail end of the installer output, here it is:

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 3 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30003 --password ! nixbld3

Creating the Nix build user, nixbld3

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 3 nixbld3

in order to give nixbld3 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 3
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld4

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 4 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30004 --password ! nixbld4

Creating the Nix build user, nixbld4

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 4 nixbld4

in order to give nixbld4 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 4
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld5

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 5 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30005 --password ! nixbld5

Creating the Nix build user, nixbld5

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 5 nixbld5

in order to give nixbld5 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 5
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld6

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 6 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30006 --password ! nixbld6

Creating the Nix build user, nixbld6

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 6 nixbld6

in order to give nixbld6 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 6
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld7

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 7 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30007 --password ! nixbld7

Creating the Nix build user, nixbld7

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 7 nixbld7

in order to give nixbld7 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 7
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld8

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 8 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30008 --password ! nixbld8

Creating the Nix build user, nixbld8

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 8 nixbld8

in order to give nixbld8 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 8
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld9

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 9 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30009 --password ! nixbld9

Creating the Nix build user, nixbld9

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 9 nixbld9

in order to give nixbld9 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 9
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld10

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 10 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30010 --password ! nixbld10

Creating the Nix build user, nixbld10

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 10 nixbld10

in order to give nixbld10 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 10
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld11

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 11 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30011 --password ! nixbld11

Creating the Nix build user, nixbld11

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 11 nixbld11

in order to give nixbld11 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 11
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld12

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 12 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30012 --password ! nixbld12

Creating the Nix build user, nixbld12

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 12 nixbld12

in order to give nixbld12 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 12
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld13

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 13 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30013 --password ! nixbld13

Creating the Nix build user, nixbld13

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 13 nixbld13

in order to give nixbld13 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 13
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld14

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 14 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30014 --password ! nixbld14

Creating the Nix build user, nixbld14

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 14 nixbld14

in order to give nixbld14 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 14
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld15

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 15 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30015 --password ! nixbld15

Creating the Nix build user, nixbld15

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 15 nixbld15

in order to give nixbld15 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 15
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld16

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 16 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30016 --password ! nixbld16

Creating the Nix build user, nixbld16

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 16 nixbld16

in order to give nixbld16 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 16
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld17

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 17 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30017 --password ! nixbld17

Creating the Nix build user, nixbld17

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 17 nixbld17

in order to give nixbld17 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 17
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld18

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 18 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30018 --password ! nixbld18

Creating the Nix build user, nixbld18

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 18 nixbld18

in order to give nixbld18 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 18
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld19

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 19 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30019 --password ! nixbld19

Creating the Nix build user, nixbld19

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 19 nixbld19

in order to give nixbld19 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 19
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld20

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 20 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30020 --password ! nixbld20

Creating the Nix build user, nixbld20

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 20 nixbld20

in order to give nixbld20 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 20
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld21

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 21 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30021 --password ! nixbld21

Creating the Nix build user, nixbld21

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 21 nixbld21

in order to give nixbld21 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 21
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld22

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 22 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30022 --password ! nixbld22

Creating the Nix build user, nixbld22

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 22 nixbld22

in order to give nixbld22 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 22
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld23

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 23 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30023 --password ! nixbld23

Creating the Nix build user, nixbld23

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 23 nixbld23

in order to give nixbld23 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 23
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld24

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 24 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30024 --password ! nixbld24

Creating the Nix build user, nixbld24

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 24 nixbld24

in order to give nixbld24 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 24
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld25

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 25 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30025 --password ! nixbld25

Creating the Nix build user, nixbld25

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 25 nixbld25

in order to give nixbld25 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 25
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld26

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 26 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30026 --password ! nixbld26

Creating the Nix build user, nixbld26

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 26 nixbld26

in order to give nixbld26 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 26
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld27

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 27 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30027 --password ! nixbld27

Creating the Nix build user, nixbld27

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 27 nixbld27

in order to give nixbld27 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 27
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld28

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 28 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30028 --password ! nixbld28

Creating the Nix build user, nixbld28

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 28 nixbld28

in order to give nixbld28 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 28
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld29

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 29 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30029 --password ! nixbld29

Creating the Nix build user, nixbld29

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 29 nixbld29

in order to give nixbld29 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 29
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld30

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 30 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30030 --password ! nixbld30

Creating the Nix build user, nixbld30

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 30 nixbld30

in order to give nixbld30 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 30
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld31

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 31 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30031 --password ! nixbld31

Creating the Nix build user, nixbld31

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 31 nixbld31

in order to give nixbld31 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 31
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

~~> Setting up the build user nixbld32

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo useradd --home-dir /var/empty --comment Nix build user 32 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30032 --password ! nixbld32

Creating the Nix build user, nixbld32

           Created:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo usermod --comment Nix build user 32 nixbld32

in order to give nixbld32 a useful comment

usermod: geen aanpassingen
              Note:     Nix build user 32
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     30000

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo mkdir -pv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)

mkdir: map '/nix' is aangemaakt
mkdir: map '/nix/var' is aangemaakt
mkdir: map '/nix/var/log' is aangemaakt
mkdir: map '/nix/var/log/nix' is aangemaakt
mkdir: map '/nix/var/log/nix/drvs' is aangemaakt
mkdir: map '/nix/var/nix' is aangemaakt
mkdir: map '/nix/var/nix/db' is aangemaakt
mkdir: map '/nix/var/nix/gcroots' is aangemaakt
mkdir: map '/nix/var/nix/profiles' is aangemaakt
mkdir: map '/nix/var/nix/temproots' is aangemaakt
mkdir: map '/nix/var/nix/userpool' is aangemaakt
mkdir: map '/nix/var/nix/gcroots/per-user' is aangemaakt
mkdir: map '/nix/var/nix/profiles/per-user' is aangemaakt

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo mkdir -pv -m 1775 /nix/store

to make the basic directory structure of Nix (part 2)

mkdir: map '/nix/store' is aangemaakt

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo chgrp nixbld /nix/store

to make the basic directory structure of Nix (part 3)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo mkdir -pv -m 0555 /etc/nix

to place the default nix daemon configuration (part 1)

mkdir: map '/etc/nix' is aangemaakt

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -m 0664 /tmp/tmp.uSjBXDhLgl/.nix-channels /root/.nix-channels

to set up the default system channel (part 1)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo rsync -rlpt --chmod=-w ./store/12a4nijrjlc6kcrdjckf7737nxqwsrip-libkrb5-1.18 ./store/21n6phj2p3czypkfb31bsskn3bmv60wm-aws-c-event-stream-0.2.7 ./store/46l3x9nlvv7218ppv8h6pl4vjpj34xqc-aws-c-cal-0.4.5 ./store/5bfasnn4mb9s4phaxngf151bhkmfcd18-acl-2.3.0 ./store/5d821pjgzb90lw4zbg6xwxs7llm335wr-libunistring-0.9.10 ./store/5fzyj1yc7vki7kxi9xp1jvdmj6ijmkqi-sqlite-3.35.5 ./store/7wg5gs4hw7wli2qh1r32zrw72b055clr-bzip2-1.0.6.0.2-bin ./store/9qz83k48c3yl3pbhq0yw1gj5rrdibag5-aws-sdk-cpp-1.8.121 ./store/bf4dpzvb2ias5qkx59g75f4378kydfc5-boehm-gc-8.0.4 ./store/bha70wspr23njwalgrgi1sj90488zgfw-brotli-1.0.9-lib ./store/c7pdw22fs0n44hfrf8bm4mxax7snm4x5-gnutar-1.34 ./store/ckb0qa2yrxrpp0piffgjq9id38gc5z9v-libidn2-2.3.1 ./store/cn9kb0dynsbzidm5njcvwwlq9x6cs673-libseccomp-2.5.1-lib ./store/dh92bxa1jv7ca9p4b9lh8jwfqyg86g6r-libssh2-1.9.0 ./store/dzaadhn5y56da24635icafv1nrawxm4n-gcc-10.3.0-lib ./store/gk42f59363p82rg2wv2mfy71jn5w4q4c-glibc-2.32-48 ./store/h1l2s3md3ymvy5b1x1hri9bznrqj3mxi-xz-5.2.5 ./store/hahkzr18y0x8vdxn4g2s2igxzga2qlar-openssl-1.1.1k-dev ./store/hg6hxrbn5xjh6d2k1k0xj5q9bxxliabx-editline-1.17.0 ./store/hssw95b3i9qbjg9fpnq52f22nl96nz1l-busybox-static-x86_64-unknown-linux-musl-1.32.1 ./store/i54a457a3p1yjic3mimg6l933gm3nzla-libsodium-1.0.18 ./store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15 ./store/lixv2hzj72yv6pfqnsmrx7k5y05qvifq-aws-c-io-0.9.1 ./store/ln6mp01fyp2dlxfihrnj64js699yzvvn-boehm-gc-8.0.4-dev ./store/lnmgrnzn8sysw88rwycjlrfbrwnn6l75-aws-c-common-0.5.5 ./store/m3gdqvg4m7m0llr1f0izkh3kgiipd88p-openssl-1.1.1k ./store/n7hbdyp3bsmdxy2lcxivaxnq4nv8ndv3-perl-5.32.1 ./store/pi4krx6i033a0pb46hhlj3yggy0125m7-xz-5.2.5-bin ./store/r528c1yhxmwj977lfgwbrzgw0zcyyswh-nghttp2-1.43.0-lib ./store/s0gj65ygrsy3av0ybwv544fcim1fnpwf-attr-2.4.48 ./store/smx24id7sp4y05j2pavhx2hgzbqkp7cw-zlib-1.2.11 ./store/vfi6l6d87s4p6pyjwakaqs0y9ha19s3m-aws-checksums-0.1.11 ./store/vliljz8k7v1zm19ydq4z6ypg6hvg0nm0-s2n-tls-1.0.0 ./store/vsg3fcwpn9rylh5w0hm2801xsbfsy24g-openssl-1.1.1k-bin ./store/vyrklqwszxpfi1h1jkavcfmhx8yd1y69-nss-cacert-3.66 ./store/xs38mci2dj4isxayifazwdma1dk9w9bl-coreutils-8.32 ./store/xvvgw9sb8wk6d2c0j3ybn7sll67s3s4z-bash-4.4-p23 ./store/y8x4jszdp9z6air7v3lw53y06vqivhbj-bzip2-1.0.6.0.2 ./store/yjs1bznvb7vk89cc57yjs6npds4hyfbp-gzip-1.10 ./store/z4qslcfqbsqs24xd4j9zhym24i8lwsi8-curl-7.76.1 ./store/zika6g0f1185jr2l20cwjizm101k4w0g-keyutils-1.6.3-lib /nix/store/

to copy the basic Nix files to the new store at /nix/store

      Alright! We have our first nix at /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15/bin/nix-store --load-db

to load data for the first time in to the Nix Database

      Just finished getting the nix database ready.

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo touch /etc/profile.d/nix.sh

create a stub /etc/profile.d/nix.sh which will be updated


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix

to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo tee -a /etc/bashrc

extend your /etc/bashrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp /etc/profile.d/nix.sh /etc/profile.d/nix.sh.backup-before-nix

to back up your current /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo tee -a /etc/profile.d/nix.sh

extend your /etc/profile.d/nix.sh with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/root /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15/bin/nix-env -i /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15

to installing a bootstrapping Nix in to the default Profile

installing 'nix-2.3.15'
building '/nix/store/3q7qhk9nm3kccch3ryrbj2xba7v8q598-user-environment.drv'...
created 6 symlinks in user environment

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/root /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15/bin/nix-env -i /nix/store/vyrklqwszxpfi1h1jkavcfmhx8yd1y69-nss-cacert-3.66

to installing a bootstrapping SSL certificate just for Nix in to the default Profile

installing 'nss-cacert-3.66'
building '/nix/store/5qd3y5z44w3a6rn08ih11kflra1a533a-user-environment.drv'...
created 9 symlinks in user environment

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/jhbxh1jwjc3hjhzs9y2hifdn0rmnfwaj-nix-2.3.15/bin/nix-channel --update nixpkgs

to update the default channel in the default profile

unpacking channels...
created 1 symlinks in user environment

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -m 0664 /tmp/tmp.uSjBXDhLgl/nix.conf /etc/nix/nix.conf

to place the default nix daemon configuration (part 2)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo systemctl link /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service

to set up the nix-daemon service

Failed to link unit: Access denied

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

If you can, open an issue at https://github.com/nixos/nix/issues

Or feel free to contact the team,
 - on Matrix #nix:nixos.org
 - on IRC #nixos on irc.libera.chat
 - on twitter @nixos_org
 - on our forum https://discourse.nixos.org/

Expected behavior

A succesful installation :)

nix-env --version output

N/A

brenthuisman avatar Jul 30 '21 10:07 brenthuisman

probably a dupe with https://github.com/NixOS/nix/issues/2374

SuperSandro2000 avatar Jul 30 '21 12:07 SuperSandro2000

Maybe #2514 and #4497 as well

abathur avatar Jul 30 '21 17:07 abathur

Any news on this? I am having this same issue with Fedora 35. Thanks

kiteloopdesign avatar Mar 13 '22 16:03 kiteloopdesign

Actually saw the following on the installation guide. I guess it should be more visible and mention Fedora explicitly ? (SELinux, for which I have no idea what it is, by the way, seems to be enabled by default in Fedora)

image

kiteloopdesign avatar Mar 13 '22 17:03 kiteloopdesign

It does seem to work in single-user though

kiteloopdesign avatar Mar 13 '22 17:03 kiteloopdesign