mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Docker build arch failure: "exfatprogs and exfat-utils are in conflict" #352
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @3rock618 on GitHub (Apr 21, 2022).
I'm trying to run the dockerfile from /vnc-version
I've been able to reduce my Dockerfile to narrow down the problem:
This gives me an error when I run
docker build -t osx .This should be a really simple arch pacman update. I'm new to arch. Any ideas?
@sickcodes commented on GitHub (Apr 21, 2022):
Fixed with
yes | pacman ...@3rock618 commented on GitHub (Apr 21, 2022):
yes | sudo pacman -Syyuugot me past the initial error (removed the--noconfirm)Would that be because
--noconfirmsends an N, but without it, withyes |sends a y?:: exfatprogs and exfat-utils are in conflict. Remove exfat-utils? [y/N]However now I'm getting more errors:
my dockerfile is still only:
logs:
@3rock618 commented on GitHub (Apr 22, 2022):
I was able to get things up and running with the following Dockerfile: (Bold italics for modified code from orig)
ARG BASE_IMAGE=sickcodes/docker-osx:auto FROM ${BASE_IMAGE} # note this is for "auto" image running on Digital Ocean on Debian MAINTAINER 'https://twitter.com/sickcodes' USER root # OPTIONAL: Arch Linux server mirrors for super fast builds # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true ARG RANKMIRRORS=true ARG MIRROR_COUNTRY=US ARG MIRROR_COUNT=10 RUN yes | sudo pacman-key --init RUN yes | sudo pacman-key --populate archlinux RUN yes | sudo pacman -Sy glibc lib32-glibc # the first two lines helped me fix PGP signature errors # the third line was to fix "version `GLIBC_2.34' not found" error RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \ | sed -e 's/^#Server/Server/' -e '/^#/d' \ | head -n "$((${MIRROR_COUNT:-10}+1))" \ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \ && cat /etc/pacman.d/mirrorlist ; fi USER arch # changed -Syyuu to -Syy, it works but I don't really know/understand the implications RUN yes | sudo pacman -Syy \ && yes | sudo pacman -S tigervnc xterm xorg-xhost xdotool ufw --noconfirm \ && mkdir -p ${HOME}/.vnc \ && touch ~/.vnc/config \ && tee -a ~/.vnc/config <<< 'geometry=1920x1080' \ && tee -a ~/.vnc/config <<< 'localhost' \ && tee -a ~/.vnc/config <<< 'alwaysshared' # ... the rest@sickcodes commented on GitHub (May 14, 2022):
You can also pull latest arch image to get past any lingering "replace x with y?"