Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm trying to set-up (multi-user) following these instructions:
- https://nixos.org/nix/manual/#sect-multi-user-installation
- ```
- sh <(curl https://nixos.org/nix/install) --daemon
- Welcome to the Multi-User Nix Installation
- This installation tool will set up your computer with the Nix package
- manager. This will happen in a few stages:
- 1. Make sure your computer doesn't already have Nix. If it does, I
- will show you instructions on how to clean up your old one.
- 2. Show you what we are going to install and where. Then we will ask
- if you are ready to continue.
- 3. Create the system users and groups that the Nix daemon uses to run
- builds.
- 4. Perform the basic installation of the Nix files daemon.
- 5. Configure your shell to import special Nix Profile files, so you
- can use Nix.
- 6. Start the Nix daemon.
- Would you like to see a more detailed list of what we will do?
- [y/n] y
- We will:
- - make sure your computer doesn't already have Nix files
- (if it does, I will tell you how to clean them up.)
- - create local users (see the list above for the users we'll make)
- - create a local group (nixbld)
- - install Nix in to /nix
- - create a configuration file in /etc/nix
- - set up the "default profile" by creating some Nix-related files in
- /root
- - back up /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix
- - update /etc/profile.d/nix.sh to include some Nix configuration
- - load and start a service (at /etc/systemd/system/nix-daemon.service
- and /etc/systemd/system/nix-daemon.socket) for nix-daemon
- Ready to continue?
- [y/n] y
- ---- let's talk about sudo -----------------------------------------------------
- This script is going to call sudo a lot. Every time we do, it'll
- output exactly what it'll do, and why.
- Just like this:
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo echo
- to demonstrate how our sudo prompts look
- This might look scary, but everything can be undone by running just a
- few commands. We used to ask you to confirm each time sudo ran, but it
- was too many times. Instead, I'll just ask you this one time:
- Can we use sudo?
- [y/n] y
- Yay! Thanks! Let's get going!
- grep: /etc/profile.d/nix.sh: Permission denied
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo test -e /root/.nix-defexpr
- making sure that /root/.nix-defexpr doesn't exist
- [sudo] password for user:
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo test -e /root/.nix-channels
- making sure that /root/.nix-channels doesn't exist
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo test -e /root/.nix-profile
- making sure that /root/.nix-profile doesn't exist
- ---- Nix config report ---------------------------------------------------------
- Temp Dir: /tmp/tmp.I1SJL2Eia3
- Nix Root: /nix
- Build Users: 32
- Build Group ID: 30000
- Build Group Name: nixbld
- build users:
- Username: UID
- nixbld1: 30001
- nixbld2: 30002
- nixbld3: 30003
- nixbld4: 30004
- nixbld5: 30005
- nixbld6: 30006
- nixbld7: 30007
- nixbld8: 30008
- nixbld9: 30009
- nixbld10: 30010
- nixbld11: 30011
- nixbld12: 30012
- nixbld13: 30013
- nixbld14: 30014
- nixbld15: 30015
- nixbld16: 30016
- nixbld17: 30017
- nixbld18: 30018
- nixbld19: 30019
- nixbld20: 30020
- nixbld21: 30021
- nixbld22: 30022
- nixbld23: 30023
- nixbld24: 30024
- nixbld25: 30025
- nixbld26: 30026
- nixbld27: 30027
- nixbld28: 30028
- nixbld29: 30029
- nixbld30: 30030
- nixbld31: 30031
- nixbld32: 30032
- Ready to continue?
- [y/n] y
- ~~> Setting up the build group nixbld
- Exists: Yes
- ~~> Setting up the build user nixbld1
- Exists: Yes
- Hidden: Yes
- Home Directory: /var/empty
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo usermod --comment Nix build user 1 nixbld1
- in order to give nixbld1 a useful comment
- usermod: no changes
- Note: Nix build user 1
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld2
- Exists: Yes
- Hidden: Yes
- Home Directory: /var/empty
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo usermod --comment Nix build user 2 nixbld2
- in order to give nixbld2 a useful comment
- usermod: no changes
- Note: Nix build user 2
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld3
- Exists: 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: no changes
- Note: Nix build user 3
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld4
- Exists: 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: no changes
- Note: Nix build user 4
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld5
- Exists: 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: no changes
- Note: Nix build user 5
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld6
- Exists: 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: no changes
- Note: Nix build user 6
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld7
- Exists: 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: no changes
- Note: Nix build user 7
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld8
- Exists: 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: no changes
- Note: Nix build user 8
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld9
- Exists: 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: no changes
- Note: Nix build user 9
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld10
- Exists: 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: no changes
- Note: Nix build user 10
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld11
- Exists: 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: no changes
- Note: Nix build user 11
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld12
- Exists: 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: no changes
- Note: Nix build user 12
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld13
- Exists: 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: no changes
- Note: Nix build user 13
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld14
- Exists: 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: no changes
- Note: Nix build user 14
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld15
- Exists: 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: no changes
- Note: Nix build user 15
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld16
- Exists: 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: no changes
- Note: Nix build user 16
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld17
- Exists: 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: no changes
- Note: Nix build user 17
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld18
- Exists: 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: no changes
- Note: Nix build user 18
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld19
- Exists: 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: no changes
- Note: Nix build user 19
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld20
- Exists: 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: no changes
- Note: Nix build user 20
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld21
- Exists: 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: no changes
- Note: Nix build user 21
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld22
- Exists: 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: no changes
- Note: Nix build user 22
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld23
- Exists: 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: no changes
- Note: Nix build user 23
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld24
- Exists: 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: no changes
- Note: Nix build user 24
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld25
- Exists: 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: no changes
- Note: Nix build user 25
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld26
- Exists: 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: no changes
- Note: Nix build user 26
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld27
- Exists: 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: no changes
- Note: Nix build user 27
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld28
- Exists: 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: no changes
- Note: Nix build user 28
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld29
- Exists: 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: no changes
- Note: Nix build user 29
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld30
- Exists: 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: no changes
- Note: Nix build user 30
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld31
- Exists: 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: no changes
- Note: Nix build user 31
- Logins Disabled: Yes
- Member of nixbld: Yes
- PrimaryGroupID: 30000
- ~~> Setting up the build user nixbld32
- Exists: 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: no changes
- 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
- to make the basic directory structure of Nix (part 1)
- mkdir: created directory '/nix'
- mkdir: created directory '/nix/var'
- mkdir: created directory '/nix/var/log'
- mkdir: created directory '/nix/var/log/nix'
- mkdir: created directory '/nix/var/log/nix/drvs'
- mkdir: created directory '/nix/var/nix'
- mkdir: created directory '/nix/var/nix/db'
- mkdir: created directory '/nix/var/nix/gcroots'
- mkdir: created directory '/nix/var/nix/profiles'
- mkdir: created directory '/nix/var/nix/temproots'
- mkdir: created directory '/nix/var/nix/userpool'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo mkdir -pv -m 1777 /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user
- to make the basic directory structure of Nix (part 2)
- mkdir: created directory '/nix/var/nix/gcroots/per-user'
- mkdir: created directory '/nix/var/nix/profiles/per-user'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo mkdir -pv -m 1775 /nix/store
- to make the basic directory structure of Nix (part 3)
- mkdir: created directory '/nix/store'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo chgrp nixbld /nix/store
- to make the basic directory structure of Nix (part 4)
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo mkdir -pv -m 0755 /nix/var/nix/profiles/per-user/root
- to set up the root user's profile (part 1)
- mkdir: created directory '/nix/var/nix/profiles/per-user/root'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo mkdir -pv -m 0700 /root/.nix-defexpr
- to set up the root user's profile (part 2)
- mkdir: created directory '/root/.nix-defexpr'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo mkdir -pv -m 0555 /etc/nix
- to place the default nix daemon configuration (part 1)
- mkdir: created directory '/etc/nix'
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo install -m 0664 /tmp/tmp.I1SJL2Eia3/.nix-channels /root/.nix-channels
- to set up the default system channel (part 1)
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo rsync -rlpt ./store/1n9vf0s7ba7ijn33d197mxm6mq7bgagf-sqlite-3.26.0 ./store/1slay2nphxq5mxj71jsra91rhvfd2zns-acl-2.2.52 ./store/3jh2d752bf78b9j9f72qcq952azj2ffb-busybox-1.29.3 ./store/3s920c43pgzi6vdabjs90in308jnbckv-zlib-1.2.11 ./store/496zwrkpwn0x1kcayyg23i5j6cd52byj-boehm-gc-7.6.6 ./store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1 ./store/5icsaq8hr9r2kas4d6004najnad8v9ja-libatomic_ops-7.6.4 ./store/5rd9qb6jkzkgd18dm1b379m8439cszac-bzip2-1.0.6.0.1-bin ./store/6nca8qrnkwjigwzcrivhi2zc67afx7x4-curl-7.62.0 ./store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27 ./store/7lxsfdhf8wngask6kpjmgjlpp27ifrqa-libseccomp-2.3.3-lib ./store/8yzzlmfwcxj21scpmj479ihfryg7rnl2-editline-1.15.3 ./store/95i38z61425xrci8h178blwff88p0a4h-gcc-7.3.0-lib ./store/a9i0a06gcs8w9fj9nghsl0b6vvqpzpi4-bash-4.4-p23 ./store/bgv7sypfxl64bdy76l055nghmds8ndgl-xz-5.2.4-bin ./store/c05hsri06skf875m5ajqjfr0sxd3wqmy-keyutils-1.5.10-lib ./store/dm20hrdk6s4jzfmk1197p2nya0p8fy3a-coreutils-8.29 ./store/fna8lggi520pgvdwi8p1xyzcj9706j04-nss-cacert-3.40.1 ./store/i8gaw7zz64q8acpw4yj08nbv6mkgxqkw-nghttp2-1.32.0-lib ./store/ilw7xkfpkc8ans09rqcr2sdglzpk22nv-libkrb5-1.15.2 ./store/jrzx61apa5js1pll43q7q5gxacz8whjj-xz-5.2.4 ./store/k4bbyj27b3ly74w276zxn939vvbhn8jw-libsodium-1.0.16 ./store/nkqllhj5871sqgvmhw3zbm7nf4a9mwd9-aws-sdk-cpp-1.5.17 ./store/qyqrqdhh65pppdpblh3m1k36pa03rbpc-openssl-1.0.2p ./store/svlam1p9832s0v2jcrz3a10vhb7yi896-brotli-1.0.5-lib ./store/xgk63lh5nlc76cpm2ak1rx2l7lxqlk9n-bzip2-1.0.6.0.1 ./store/y2574qr6gs3s0qqdjg6lhsgn76bablz5-attr-2.4.47 ./store/yaqbs91c3p88lhwjgnaf6xk5fcr0mpiq-libssh2-1.8.0 ./store/z5r5s8ccp7hlxkmaijhdikppcawa6d0p-gnutar-1.30 ./store/zrzqgdm6jxihsban195vrlcskmx9m4zc-gzip-1.9 /nix/store/
- to copy the basic Nix files to the new store at /nix/store
- Alright! We have our first nix at /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-store --init
- to initialize the Nix Database
- ---- sudo execution ------------------------------------------------------------
- I am executing:
- $ sudo /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/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/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/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-env -i /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1
- to installing a bootstrapping Nix in to the default Profile
- installing 'nix-2.2.1'
- building '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv'...
- error: opening directory '/nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1': Permission denied
- builder for '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv' failed with exit code 1
- error: build of '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv' failed
- ---- 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 IRC #nixos on irc.freenode.net
- - on twitter @nixos_org
- ```
- I try to run manually, but get same error.
- ```
- # HOME=/root /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-e
- nv -i /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1
- installing 'nix-2.2.1'
- building '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv'...
- error: opening directory '/nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1': Permi
- ssion denied
- builder for '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv' failed w
- ith exit code 1
- error: build of '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv' fail
- ed
- ```
- Check Permissions
- ```
- # ll /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-env
- lrwxrwxrwx 1 root root 3 Dec 31 1969 /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-env -> nix*
- # ll /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix
- -rwxr-x--- 1 root root 1703040 Dec 31 1969 /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix*
- ```
- Seem fine, Let's see what `nix-env` is failing on using `strace`
- ```
- # 2> err strace /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1/bin/nix-env -i /nix/store/5hdmx9yk7gr71b98j4vh9271k0zg5jis-nix-2.2.1
- # sp; tail -n 20 err
- close(8) = 0
- unlink("/nix/var/nix/temproots/27094") = 0
- stat("/nix/var/nix/db/db.sqlite", {st_mode=S_IFREG|0644, st_size=53248, ...}) = 0
- fcntl(4, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=1}) = 0
- fcntl(4, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826, l_len=510}) = 0
- unlink("/nix/var/nix/db/db.sqlite-shm") = 0
- munmap(0x7f8aa289e000, 32768) = 0
- close(6) = 0
- close(5) = 0
- unlink("/nix/var/nix/db/db.sqlite-wal") = 0
- fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824, l_len=2}) = 0
- fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
- fstat(4, {st_mode=S_IFREG|0644, st_size=53248, ...}) = 0
- stat("/nix/var/nix/db/db.sqlite", {st_mode=S_IFREG|0644, st_size=53248, ...}) = 0
- close(4) = 0
- close(3) = 0
- write(2, "error: build of '/nix/store/jkcb"..., 90error: build of '/nix/store/jkcbkr60gzcmz6bk9y4j4bhlx8qcqcyz-user-environment.drv' failed
- ) = 90
- exit_group(100) = ?
- +++ exited with 100 +++
- ```
- What could exit 100 mean?
- ```
- # errno --list | grep 100
- ENETDOWN 100 Network is down
- ```
- https://sqlite.org/c3ref/c_abort.html
- ```
- #define SQLITE_ROW 100 /* sqlite3_step() has another row ready */
- ```
- Single user works fine.. something borked..
- ```
- # sp; uname -s
- Linux
- # uname -m
- x86_64
- # lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 16.04.1 LTS
- Release: 16.04
- Codename: xenial
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement