Getting a Canon Printer to Work on CachyOS
Run these commands in the terminal:
sudo pacman -S cups cups-filters gutenprint foomatic-db-gutenprint-ppds ghostscript --noconfirm
sudo systemctl enable --now cups
sudo usermod -aG sys $USER
lpinfo -m | grep -i "E400\|E410\|E414"
You will get an output line that looks something like this: gutenprint.5.3://canon-pixma_e400/expert Canon PIXMA E400 Series - CUPS+Gutenprint v5.3.x
Once you have that exact string, copy it and replace it in your command:
sudo lpadmin -p "Canon_E414" -m "EXACT_STRING_FROM_PREV_STEP" -v "$(lpinfo -v | grep usb | head -n 1 | awk '{print $2}')" -E
In my case it was:
sudo lpadmin -p "Canon_E414" -m "gutenprint.5.3://bjc-PIXMA-E414/expert" -v "$(lpinfo -v | grep usb | head -n 1 | awk '{print $2}')" -E
To verify it registered correctly and check its status, you can run:
lpstat -p Canon_E414 -d
Now you should see your printer in print tab in your browser etc.