学习了,感谢分享
login按钮下面一个session看到没,点他选hyprland
0号脚本里,在执行:
pacstrap /mnt base base-devel linux linux-firmware btrfs-progs neovim networkmanager pacman-contrib
命令之前,最好加上一个命令:
pacman-key --init
否则第一次运行0号脚本时,在最后会出现以下错误:
(190/190) checking keys in keyring [##################################################] 100%
warning: Public keyring not found; have you run ‘pacman-key --init’?
downloading required keys…
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
哦,好吧.不过我没有遇到过这种情况. 刚上周还用脚本重装了一下系统
真奇怪,我下载了最新的安装iso,安装时还是遇到这个keyring的问题。就是无法正常安装。我哪里做错了什么?
keyring的问题解决了。大概记录一下解决步骤,其实我也不知道怎么解决的。
-
首先,我原来安装Arch,用的是2024.12.01的ISO,换成了2025.01.01的iso,但事实上换了iso后,启动进去,用你的脚本0仍然会出keyring的错误,所以我觉得iso不是关键。
-
其次,在iso启动进去后,先不要运行你的脚本,而是先执行下面几个命令:
rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
- 第三,然后再开始执行你的脚本0,就没有keyring的错误了。后面的安装过程也就正常了。
不需要运行3号脚本了吗?我看3号脚本也是用来安装kde的桌面,跟这个hyprdots脚本有冲突?
自动化安装