Dealing with key not found error in pacstrap when installing Arch Linux

When I try to deploy Arch with an old ISO image, the keyring is too old and pacstrap doesn't work. Here, I leave a memo of the work I did.

If you google the workaround, you will find the following.

  1. How to update the keyring using pacman-key --refresh
  2. How to reinstall pacman-keyring itself.

In my case, there was a key that could not be found even if I specified the keyserver and updated it with method 1. So I try 2, but I can't use arch-chroot because bash doesn't work until I do pacstrap. It takes some effort to reinstall keyring using pacman without chrooting. (It's really just a hassle. I don't think I need to write it down, but I'll forget it again the next time ... just in case)

How to reinstall keyring before pacstrap


pacman -Sy ##Required to use pacman.I just need this
pacman -S pacman-keyring ##keyring update
pacstrap /mnt ##Then follow the installation guide to pacstrap

Recommended Posts

Dealing with key not found error in pacstrap when installing Arch Linux
Dealing with Tensorflow error "Import Error: DLL load failed: Specified module not found" in deep learning
How to not escape Japanese when dealing with json in python
Dictionary key error → Resolve with key in dicionary
[Arch linux] Solution when package-query error occurs
Error "Entry point not found" when starting Jupyter Notebook in virtual environment
When the Linux command $ yum -y install gives an error (yum: command not found)
Error when installing a module with Python pip
Precautions when dealing with control structures in Python 2.6
Character encoding when dealing with files in Python 3
Spider not found appears when crawling with Scrapy
Investigate the cause when an error is thrown when python3.8 is not found when using lambda-uploader with python3.8
Precautions when dealing with ROS MultiArray types in Python
Japanese output when dealing with python in visual studio
When "ERROR: HTTP is not supported." Is displayed in mpsyt
A memorandum regarding Wifi connection when installing Arch Linux
What I was addicted to when dealing with huge files in a Linux 32bit environment
Dealing with the error that HTTP fetch error occurs in gpg and the key cannot be obtained
Problem not knowing parameters when dealing with Blender from Python
Linux: How to recover if'grub_file_filters' not found in grub rescue
After installing CentOS8 with VirtualBox, an error occurs when restarting
Command not found with sudo rosdep init in ROS setup
Set public key authentication when connecting with SSH in Teraterm
Error: pg_config executable not found
Error when playing with python
[Error] Symbol not found: _PyUnicodeUCS2_Compare
polyfit error when installing matplotlib
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
[Linux] When the screen is cut off when installing CentOS in VirtualBox
When I get an error with Pylint in Atom on Windows
Dealing with Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR in Tensorflow v2.x