arcolinux 安装
arcolinux 是archlinux的一个发行版
下载镜像
推荐国内镜像
https://bike.seedhost.eu/arcolinux/iso/
制作U盘启动
这里我推荐使用ventoy,ventoy是一个国产软件,和其他u盘制作工具不一样的是,ventoy会在u盘里单独分出一个30M做左右的分区存放一个小的pe(个人理解哈),选择U盘启动后会进入ventoy的界面,这里就不继续介绍了,可以进入官网学习注意事项。
https://www.ventoy.net/cn/index.html
进入live系统进行安装
1.如过没分好区的话先选择GPART进行分区
2.选择GRUN开始安装
重启,进入系统
先配置下载源,换成国内镜像,打开终端,编辑/etc/pacman.d/mirrorlist 文件,将China下的镜像选一个复制到文件最上方就行
1. 安装后
1.1 更改源
修改 /etc/pacman.d/mirrorlist
在最头上增加清华源
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
修改后的/etc/pacman.d/mirrorlist
1.2 修改/etc/pacman.conf
我选择注释掉最后面以arcolinux
开头的四个仓库,并增加中科大archlinuxcn
仓库
这是我修改后的/etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
VerbosePkgLists
ParallelDownloads = 5
ILoveCandy
DisableDownloadTimeout
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
# SigLevel = Required DatabaseOptional
SigLevel = Optional TrustAll
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
# [arcolinux_repo_testing]
# SigLevel = Optional TrustAll
# Include = /etc/pacman.d/arcolinux-mirrorlist
# [arcolinux_repo]
# SigLevel = Optional TrustAll
# Include = /etc/pacman.d/arcolinux-mirrorlist
# [arcolinux_repo_3party]
# SigLevel = Optional TrustAll
# Include = /etc/pacman.d/arcolinux-mirrorlist
# [arcolinux_repo_xlarge]
# SigLevel = Optional TrustAll
# Include = /etc/pacman.d/arcolinux-mirrorlist
#[testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
#[community-testing]
#Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[archlinuxcn]
SigLevel = Optional TrustAll
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
然后安装archlinuxcn-keyring
这一步非常非常非常重要,必须在安装后续软件之前执行
执行以下命令
sudo pacman -Syu
sudo pacman -S archlinuxcn-keyring
安装i3管理器
sudo pacman -S i3
解决问题
密钥安装失败
# Refresh Keys
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys
# 解决方案
sudo pacman -S archlinux-keyring && sudo pacman -Syu