Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding drivers on alpine not that easy #26

Open
theyo-tester opened this issue Dec 31, 2023 · 0 comments
Open

Adding drivers on alpine not that easy #26

theyo-tester opened this issue Dec 31, 2023 · 0 comments

Comments

@theyo-tester
Copy link

Hi @chuckcharlie !

great job with your repo. The auto discovery (mDNS, avahi) of printers finally works with your image. Thanks! However, because this is based on alpine, it is very hard, (or it takes too much time), to add vendor specific drivers for printers. Most of the vendors offer drivers for debian or rhel based linuxes, but not for alpine.

My printer, for instance, has its driver available as .rpm or .deb and an helper install.sh script (which chooses automatically what fits best the os, and makes sure, that the dependencies are met), but neither installing over the script nor the deb package worked. When trying to install the deb package (after installing the dpkg) I got following error:

dpkg -i *.deb
dpkg: error processing archive cnrdrvcups-ufr2-uk_5.70-1.18_amd64.deb (--install):
 package architecture (amd64) does not match system (musl-linux-amd64)
Errors were encountered while processing:
 cnrdrvcups-ufr2-uk_5.70-1.18_amd64.deb

I tried to circumvent this by changing the architecture with "dpkg --add-architecture amd64" and had only a small success. Because then a whole list dependency issues appeared:

ERROR: unable to select packages:
  libcups2 (no such package):
    required by: world[libcups2]
/extras/linux-UFRII-drv-v570-m17n/x64/Debian # apk add libcupsys2
ERROR: unable to select packages:
  libcupsys2 (no such package):
    required by: world[libcupsys2]
/extras/linux-UFRII-drv-v570-m17n/x64/Debian # apk add cups-bsd.
ERROR: unable to select packages:
  cups-bsd. (no such package):
    required by: world[cups-bsd.]
/extras/linux-UFRII-drv-v570-m17n/x64/Debian # apk add cups-bsd*
ERROR: unable to select packages:
  cups-bsd* (no such package):
    required by: world[cups-bsd*]

and it makes sense, because the package was build for debian, and on alpine, even if the deps, are met, they have other names.

Do you have an alternative solution to that? Or should I look for another image in the www?

BR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant