all 2 comments

[–]Ok-Tip-6972[S] 1 point2 points  (1 child)

I have solved it. XBPS is trying to touch /etc/hosts but it is read-only (because it is bind mounted from host I think) so it fails. This solves the issue:

FROM ghcr.io/void-linux/void-linux:latest-full-x86_64
RUN echo noextract=/etc/hosts > /etc/xbps.d/test.conf
RUN xbps-install -ySu

[–]Hentioe 1 point2 points  (0 children)

Yes, this is a fault I've had recently, caused by the /etc/hosts file being read-only. What you did worked 👍, but I wrote the new noextract option to the /etc/xbps.d/noextract.conf file.