通过 nix-installers 安装 nix 会破坏 Fedora 37 上的系统

通过 nix-installers 安装 nix 会破坏 Fedora 37 上的系统

我尝试在 Fedora 37 机器上安装 Nix 包管理器。在阅读了有关使用 Selinux 在 Fedora 和其他操作系统上使用安装脚本安装 Nix 的一些问题后,我选择通过“nix-installers”rpm 包进行安装。

当我启动一个新的 shell 并尝试 nix 时,一切正常。然而,当我重新启动计算机时,我并没有登陆 Gnome Shell,而是看到了闪烁的黑屏,并且不再起作用。尝试切换虚拟 shell 时Alt + F2显示我登录了 1 秒,然后再次切换到黑色闪烁的屏幕。

有谁能够在 Fedora 37 上安装 nix 或者可以给我一些可能导致问题的建议吗?

我认为这与问题无关,但在安装过程中,我收到有关在整个安装过程中创建的 uid 不在范围内的警告SYS_UID_MAX 999(请参阅下面的日志)。尽管如此,用户还是在安装后创建并存在于我的操作系统上。

我看到,警告本身似乎是已知问题(https://github.com/nix-community/nix-installers/issues/16)。

安装过程中记录:

sudo dnf localinstall ./nix-multi-user-2.9.1.rpm 
[sudo] Passwort für firestarter: 
Letzte Prüfung auf abgelaufene Metadaten: vor 0:43:30 am Mo 06 Feb 2023 19:33:24 CET.
Abhängigkeiten sind aufgelöst.
=====================================================================================================================================
 Paket                              Architektur                Version                        Paketquelle                      Größe
=====================================================================================================================================
Installieren:
 nix-multi-user                     x86_64                     2.9.1-1                        @commandline                      40 M

Transaktionszusammenfassung
=====================================================================================================================================
Installieren  1 Paket

Gesamtgröße: 40 M
Installationsgröße: 40 M
Ist dies in Ordnung? [j/N]: j
Pakete werden heruntergeladen:
Transaktionsüberprüfung wird ausgeführt
Transaktionsüberprüfung war erfolgreich.
Transaktion wird getestet
Transaktionstest war erfolgreich.
Transaktion wird ausgeführt
  Vorbereitung läuft    :                                                                                                        1/1 
  Installieren          : nix-multi-user-2.9.1-1.x86_64                                                                          1/1 
  Ausgeführtes Scriptlet: nix-multi-user-2.9.1-1.x86_64                                                                          1/1 
useradd warning: nixbld1's uid 30001 is greater than SYS_UID_MAX 999
useradd warning: nixbld2's uid 30002 is greater than SYS_UID_MAX 999
useradd warning: nixbld3's uid 30003 is greater than SYS_UID_MAX 999
useradd warning: nixbld4's uid 30004 is greater than SYS_UID_MAX 999
useradd warning: nixbld5's uid 30005 is greater than SYS_UID_MAX 999
useradd warning: nixbld6's uid 30006 is greater than SYS_UID_MAX 999
useradd warning: nixbld7's uid 30007 is greater than SYS_UID_MAX 999
useradd warning: nixbld8's uid 30008 is greater than SYS_UID_MAX 999
useradd warning: nixbld9's uid 30009 is greater than SYS_UID_MAX 999
useradd warning: nixbld10's uid 30010 is greater than SYS_UID_MAX 999
useradd warning: nixbld11's uid 30011 is greater than SYS_UID_MAX 999
useradd warning: nixbld12's uid 30012 is greater than SYS_UID_MAX 999
useradd warning: nixbld13's uid 30013 is greater than SYS_UID_MAX 999
useradd warning: nixbld14's uid 30014 is greater than SYS_UID_MAX 999
useradd warning: nixbld15's uid 30015 is greater than SYS_UID_MAX 999
useradd warning: nixbld16's uid 30016 is greater than SYS_UID_MAX 999
useradd warning: nixbld17's uid 30017 is greater than SYS_UID_MAX 999
useradd warning: nixbld18's uid 30018 is greater than SYS_UID_MAX 999
useradd warning: nixbld19's uid 30019 is greater than SYS_UID_MAX 999
useradd warning: nixbld20's uid 30020 is greater than SYS_UID_MAX 999
useradd warning: nixbld21's uid 30021 is greater than SYS_UID_MAX 999
useradd warning: nixbld22's uid 30022 is greater than SYS_UID_MAX 999
useradd warning: nixbld23's uid 30023 is greater than SYS_UID_MAX 999
useradd warning: nixbld24's uid 30024 is greater than SYS_UID_MAX 999
useradd warning: nixbld25's uid 30025 is greater than SYS_UID_MAX 999
useradd warning: nixbld26's uid 30026 is greater than SYS_UID_MAX 999
useradd warning: nixbld27's uid 30027 is greater than SYS_UID_MAX 999
useradd warning: nixbld28's uid 30028 is greater than SYS_UID_MAX 999
useradd warning: nixbld29's uid 30029 is greater than SYS_UID_MAX 999
useradd warning: nixbld30's uid 30030 is greater than SYS_UID_MAX 999
useradd warning: nixbld31's uid 30031 is greater than SYS_UID_MAX 999
useradd warning: nixbld32's uid 30032 is greater than SYS_UID_MAX 999
Created symlink /etc/systemd/system/multi-user.target.wants/nix-daemon.service → /usr/lib/systemd/system/nix-daemon.service.

  Überprüfung läuft     : nix-multi-user-2.9.1-1.x86_64                                                                          1/1 

Installiert:
  nix-multi-user-2.9.1-1.x86_64                                                                                                      

Fertig!

相关内容