You are not logged in.

#1 2022-12-26 10:16:29

gameslayer
Member
Registered: 2021-12-14
Posts: 81

archinstall is broken on latest iso

root@archiso ~ # archinstall
Testing connectivity to the Arch Linux mirrors ...
Updating archlinux32-keyring ...
Traceback (most recent call last):
  File "/usr/bin/archinstall", line 8, in <module>
    sys.exit(run_as_a_module())
  File "/usr/lib/python3.10/site-packages/archinstall/__init__.py", line 311, in run_as_a_module
    script.execute()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/profiles.py", line 195, in execute
    self.spec.loader.exec_module(sys.modules[self.namespace])
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/archinstall/examples/guided.py", line 292, in <module>
    if not archinstall.update_keyring32():
  File "/usr/lib/python3.10/site-packages/archinstall/lib/networking.py", line 60, in update_keyring32
    if run_pacman("-Sy --noconfirm archlinux32-keyring").exit_code == 0:
  File "/usr/lib/python3.10/site-packages/archinstall/lib/pacman.py", line 28, in run_pacman
    return SysCommand(f'{default_cmd} {args}')
  File "/usr/lib/python3.10/site-packages/archinstall/lib/general.py", line 435, in __init__
    self.create_session()
  File "/usr/lib/python3.10/site-packages/archinstall/lib/general.py", line 486, in create_session
    with SysCommandWorker(
  File "/usr/lib/python3.10/site-packages/archinstall/lib/general.py", line 275, in __exit__
    raise SysCallError(f"{self.cmd} exited with abnormal exit code [{self.exit_code}]: {self._trace_log[-500:]}", self.exit_code, worker=self)
archinstall.lib.exceptions.SysCallError: ['/usr/bin/pacman', '-Sy', '--noconfirm', 'archlinux32-keyring'] exited with abnormal exit code [256]: b"iB\r\n\r\n:: Proceed with installation? [Y/n] \r\n(0/1) checking keys in keyring                     [----------------------]   0%\r(1/1) checking keys in keyring                     [######################] 100%\r\r\nwarning: Public keyring not found; have you run 'pacman-key --init'?\r\ndownloading required keys...\r\nerror: keyring is not writable\r\nerror: required key missing from keyring\r\nerror: failed to commit transaction (could not find or read file)\r\nErrors occurred, no packages were upgraded.\r\n\x1b[?25h"

Offline

#2 2022-12-26 10:21:06

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: archinstall is broken on latest iso

This looks more like not-up-todate keys, try a `pacman-key --refresh` before calling `archinstall`..

Offline

#3 2022-12-26 14:54:04

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: archinstall is broken on latest iso

Mmh. Actually it seems that them pacman-init.service is not starting up because the keyring is missing. After a `pacman-key --init` it should start. The pacman-init.service has to have finished before you start archinstall. pacman-init can take a LONG (TM) time to update the keys.

Offline

#4 2022-12-26 15:15:30

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: archinstall is broken on latest iso

removing /etc/pacman.d/gnupg, pacman-key --init, pacman-key --populate archlinux32 should be enough..

Offline

#5 2022-12-26 16:00:50

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: archinstall is broken on latest iso

abaumann wrote:

removing /etc/pacman.d/gnupg, pacman-key --init, pacman-key --populate archlinux32 should be enough..

For some annoying reason it wont let me

sudo rm -rf /etc/pacman.d/gnupg
rm: cannot remove '/etc/pacman.d/gnupg': Device or resource busy

Offline

#6 2022-12-26 16:02:02

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: archinstall is broken on latest iso

abaumann wrote:

Mmh. Actually it seems that them pacman-init.service is not starting up because the keyring is missing. After a `pacman-key --init` it should start. The pacman-init.service has to have finished before you start archinstall. pacman-init can take a LONG (TM) time to update the keys.

Seems to run into this issue

1 root@archiso ~ # pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: agent_genkey failed: No such file or directory
gpg: key generation failed: No such file or directory
gpg: Done
==> Updating trust database...
gpg: no need for a trustdb check

Offline

#7 2022-12-27 14:07:59

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: archinstall is broken on latest iso

Make sure you kill all dirmgr and gpg-agent process before remove and recreating the keys..

Offline

#8 2023-01-01 03:48:19

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: archinstall is broken on latest iso

Alright, I will try again and try that. Would be great if the Arch32 iso wasn't so broken haha

Offline

#9 2023-01-01 06:17:58

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: archinstall is broken on latest iso

I tried archinstalll on the live cd and it worked properly this time and install it but the second time I went to try the live CD it's all broken again.. I did manage it get it working going through the stuff you guys talked about but it would be nice if these stuff were done properly and I didn't have to fight with it to work tongue

The images really need to be fixed as they are unusable and broken, I can even install packages at times.

Last edited by gameslayer (2023-01-01 06:27:48)

Offline

#10 2023-01-01 10:56:00

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: archinstall is broken on latest iso

Yeah, we have a constant schedule of building ISOs monthly, sometimes keys expire before..
..speaking of which, the 2023.01 ISOs are due. :-)

Offline

#11 2023-10-26 01:34:56

gameslayer
Member
Registered: 2021-12-14
Posts: 81

Re: archinstall is broken on latest iso

abaumann wrote:

Yeah, we have a constant schedule of building ISOs monthly, sometimes keys expire before..
..speaking of which, the 2023.01 ISOs are due. :-)

Hmm I See, it sadly still seems to be an issue, updating archinstall on the live cd instant seems to be the only way to fix it tho it is annoying that you have to do that every time

Offline

Board footer

Powered by FluxBB