省略了安装 CUPS 的过程。
sudo pacman -S hplip
pakku -S gutenprint # 也可以是 yay
hp-setup -i # 此时出现 cupsext not found 错误,解决方案见“cupsext 解决”
hp-setup # 失败
sudo pacman -S cups
sudo systemctl start cups
sudo systemctl enable cups
sudo systemctl status cups
hp-check
sudo pacman -S hplip
python -V
ls /usr/lib/python3.12/site-packages | grep cups
sh hplip-3.12.9.run # 失败
hplip # 失败
sh hplip-3.24.4.run # 失败
hp-setup # 失败
ls /usr/lib/python3.12/site-packages | grep cups
ls /usr/lib/python3.12/site-packages
ls /usr/lib/python3.12/site-packages/cups*
ls /usr/lib/python3.12/site-packages/pycups*
sudo pacman -S hplip-gui hplip hplip-cups hplip-data hpijs hpijs-ppds # 失败
sudo pacman -Sy foomatic-db foomatic-db-ppds
hp-setup -i # 失败
python3 # cupsext not found
sudo pacman -S python-cups # 失败
sudo pacman -S python3-cups # 失败
sudo pacman -S python-pycups # 失败
ls /usr/lib/python3.12/site-packages/cups*
ls /usr/lib/python3.12/site-packages | grep cups
ls /usr/lib/python3.12/site-packages | grep cups
sudo pacman -Syu # 此步 cupsext 解决,此时 python 3.13
ls /usr/lib/python3.12/site-packages | grep cups
ls /usr/lib/python3.13/site-packages/ | grep cups
hp-setup -i # 安装成功
# 此时打印出现 filter failed,先下载 HP-LaserJet_Pro_P1566.ppd,使用该 PPD,以下进一步解决
pakku -S foo2zjs-nightly # 失败
vim /var/log/cups/error_log
foo2zjs-wrapper # not found,证明需完整装 foo2zjs
git clone https://github.com/koenkooi/foo2zjs.git # 失败
git clone https://gitclone.com/github.com/koenkooi/foo2zjs.git
cd foo2zjs/
make
pakku -S foo2zjs # 失败
yay -S foo2zjs # 失败
sudo pacman -S ghostscript
lsusb
makepkg # 失败
make install # 编译失败,xswab
vim icc2ps/cmsio1.c # 把第 40 行的 define 复制一遍放在 endif 下面
make
sudo make install
标签:P1106,cupsext,LaserJet,pacman,sudo,ls,packages,cups,usr
From: https://www.cnblogs.com/Zaunese/p/18653507