我正在尝试在 Lenovo Ideapad 上安装 Fedora 25 Workstation。使用具有 20GB HDD 空间、2GB RAM、2 个处理器核心的 VMWare Player。安装进展顺利,直到第 2 阶段 Anaconda 尝试创建用户。然后,它会显示一个弹出窗口,表明发生了错误。以下是错误:
The following was filed automatically by anaconda:
anaconda 25.20.8-1 exception report
Traceback (most recent call first):
File "/usr/lib64/python3.5/site-packages/pyanaconda/users.py", line 379, in createUser
raise OSError("Unable to create user %s: status=%s" % (user_name, status))
File "/usr/lib64/python3.5/site-packages/pyanaconda/kickstart.py", line 1801, in execute
users.createUser(usr.name, **kwargs)
File "/usr/lib64/python3.5/site-packages/pyanaconda/install.py", line 95, in doConfiguration
ksdata.user.execute(storage, ksdata, instClass, u)
File "/usr/lib64/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.5/site-packages/pyanaconda/threads.py", line 251, in run
threading.Thread.run(self, *args, **kwargs)
OSError: Unable to create user 0111: status=3
Additional info:
addons: com_redhat_kdump
cmdline: /usr/bin/python3 /sbin/anaconda --liveinst -- method=livecd:///dev/mapper/live-base
cmdline_file: BOOT_IMAGE=vmlinuz initrd=initrd.img root=live:CDLABEL=Fedora-WS-Live-25-1-3 rd.live.image quiet
executable: /sbin/anaconda
hashmarkername: anaconda
kernel: 4.8.6-300.fc25.x86_64
other involved packages: system-python-libs-3.5.2-4.fc25.x86_64
product: Fedora
release: Fedora release 25 (Twenty Five)
type: anaconda
version: 25
另请注意,我已在 VMWare Player 中安装了 LinuxMint 和 Lubuntu,并在同一台计算机上使用相同的配置,并且它们运行时没有出现此类问题。希望尽快解决这个问题并转向 Fedora!
答案1
已知错误,Bugzilla:OSError:无法创建用户 1234:状态 = 3。由于尝试创建虚假用户名而引起。
修复方法是不请求虚假用户名。
当输入无效的用户名并按下完成时,Anaconda 界面应该显示一条错误消息。
注意:adduser 的手册页显示“用户名必须以小写字母或下划线开头,后跟小写字母、数字、下划线或破折号。它们可以以美元符号结尾。在正则表达式术语中:[a-z_][a-z0-9_-]*[$]?