Cannot update Template Archlinux

Hello,

I am trying to install archlinux templateVM. Install through Qubes Templates Manager gui went well. First update was a bit of a trouble, seems the initial build was a bit too old, so pacman -Syu didn’t work on the spot, I had to do the following:

pacman -Sy
pacman -S archlinux-keyring
pacman-key --populate 
pacman -Su

Then first update was successful, even though I had some warnings/errors:

...
upgrading pacman-mirrorlist
warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
upgrading pacman
warning: /etc/makepkg.conf.d/rust.conf installed as /etc/makepkg.conf.d/rust.conf.pacnew
warning: /etc/pacman.conf installed as  /etc/pacman.conf.pacnew
...
upgrading qubes-vm-core
/tmp/alpm_58EsI2/.INSTALL: line 129: hostname: command not found
/tmp/alpm_58EsI2/.INSTALL: line 130: hostname: command not found
/tmp/alpm_58EsI2/.INSTALL: line 129: hostname: command not found
/tmp/alpm_58EsI2/.INSTALL: line 130: hostname: command not found
SELINUX not enabled on archlinux. skipped.
Created symlink '/etc/systemd/system/getty.target.wants/getty@tty1.service' -> '/usr/lib/systemd/system/getty@.service'.
...   

But after that, I can no longer update my system:

pacman -Sy
:: Synchronizing package databases...
 qubes-r4.2-current.db failed to download
error: failed retrieving file 'qubes-r4.2-current.db' from archlinux.qubes-os.org : Could not resolve host: archlinux.qubes-os.org
warning: fatal error from archlinux.qubes-os.org, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)

I thought the update messed with the updates proxy, however if I try to update from Qubes Update gui, it seems to work:

Updating archlinux
Refreshing package info
:: Synchronizing package databases...
 qubes-r4.2-current downloading...
 core downloading...
 extra downloading...
 multilib downloading...
:: Starting full system upgrade...
 there is nothing to do
Installed packages:
None
Updated packages:
None
Removed packages:
None

I tried to look into updates proxy status and .conf files, but I don’t know much about it, so I don’t really know where to look…

1 Like

You can apply the fix from this issue:

2 Likes

Thanks for the quick reply.
Didn’t find this issue when searching, apparently didn’t search properly.
Modified line 51 of /etc/sudoers to:

Defaults secure_path="/run/qubes/bin:/usr/local/sbin:/usr/local/bin:/usr/bin"

and it is working well, thanks very much!

1 Like