Arch Linux

Fixing “/usr/bin/pacman: unrecognized option ‘–color never'” on Arch | Manjaro

Have you encountered the error “/usr/bin/pacman: unrecognized option ‘–color never’” while trying to install or update packages in your Arch Linux system?. This has been an error experienced by many users, especially those using pacaur AUR wrapper to manage system packages.

Original content from computingforgeeks.com - post 2801

I got /usr/bin/pacman: unrecognized option ‘–color never’ error while trying to install minikube-bin on Arch:

---
==> Making package: minikube-bin 0.28.0-1 (Thu 05 Jul 2018 10:39:08 AM EAT)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found minikube_0.28.0
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
==> Sources are ready.
:: Building minikube-bin package(s)...
==> Making package: minikube-bin 0.28.0-1 (Thu 05 Jul 2018 10:39:08 AM EAT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
/usr/bin/pacman: unrecognized option '--color never'
==> ERROR: 'pacman' failed to install missing dependencies.
:: failed to build minikube-bin package(
----

The fix for this is to enable colors when pacman’s output is on a tty. To do this, open pacman.conf file

sudo /etc/pacman.conf

Then uncomment the line # Color like below:

pacma enable color

This will allow pacaur to pass the option. Now try installing the package again with pacaur or package manager of your choice.

pacaur -S minikube-bin

It should be working now.

Keep reading

Install KVM and Virt-Manager on Arch Linux Virtualization Install KVM and Virt-Manager on Arch Linux Things to Do After Installing CachyOS Arch Linux Things to Do After Installing CachyOS How to Install CachyOS: Step-by-Step Guide Arch Linux How to Install CachyOS: Step-by-Step Guide CachyOS Kernel Guide: Kernel Manager, Schedulers and Tuning Arch Linux CachyOS Kernel Guide: Kernel Manager, Schedulers and Tuning KDE Plasma 6.8 Drops X11: Switch to Wayland and Keep X11 Apps Arch Linux KDE Plasma 6.8 Drops X11: Switch to Wayland and Keep X11 Apps How to run Linux on Windows Server 2019 with WSL Tips & Tricks How to run Linux on Windows Server 2019 with WSL

Leave a Comment

Press ESC to close