Trying to install coreutils breaks container
Created by: carylewis
Running a archlinux container:
docker run -i -t archlinux /bin/bash
Then running:
pacman -Sy
Then running:
pacman -S coreutils
warning: coreutils-8.31-3 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) coreutils-8.31-3
Total Download Size: 2.37 MiB
Total Installed Size: 15.39 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
coreutils-8.31-3... 2.4 MiB 4.06 MiB/s 00:01 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
:: Processing package changes...
error: could not remove database entry coreutils-8.31-3
error: could not create directory /var/lib/pacman/local/coreutils-8.31-3/: File exists
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
Results in the basic file commands not working?
[root@11baedf72d8d /]# ls bash: ls: command not found [root@11baedf72d8d /]#
How do you install utilities such as diff, etc. in an archlinux container?