Sziasztok.
Van egy HP_LaserJet_M1536dnf_MFP nyomtatóm, és mostanában képtelenség egy Linux mintre felrakni a HP által javasolt nyomtatókezelést.
Ami két hete még flottul működött, egy friss linuxtelepítés után, a HP oldaláról letöltött hplip-pel nem megy.
Szerintetek mi lehet a baj?
# hp-setup
HP Linux Imaging and Printing System (ver. 3.17.10)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Searching... (bus=usb, search=(None), desc=0)
error: No PPD found for model laserjet_m1530_mfp using old algorithm.
error: No appropriate print PPD file found for model hp_laserjet_m1536dnf_mfp
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1316, in NextButton_clicked
self.addPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1010, in addPrinter
print_sts = self.setupPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1049, in setupPrinter
if not os.path.exists(self.print_ppd[0]): # assume foomatic: or some such
TypeError: 'NoneType' object is not subscriptable
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] Nincs ilyen fájl vagy könyvtár: '/var/crash/_usr_share_hplip_setup.py.0.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1316, in NextButton_clicked
self.addPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1010, in addPrinter
print_sts = self.setupPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1049, in setupPrinter
if not os.path.exists(self.print_ppd[0]): # assume foomatic: or some such
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1316, in NextButton_clicked
self.addPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1010, in addPrinter
print_sts = self.setupPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1049, in setupPrinter
if not os.path.exists(self.print_ppd[0]): # assume foomatic: or some such
TypeError: 'NoneType' object is not subscriptable
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] Nincs ilyen fájl vagy könyvtár: '/var/crash/_usr_share_hplip_setup.py.0.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/share/hplip/ui5/setupdialog.py", line 1316, in NextButton_clicked
self.addPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1010, in addPrinter
print_sts = self.setupPrinter()
File "/usr/share/hplip/ui5/setupdialog.py", line 1049, in setupPrinter
if not os.path.exists(self.print_ppd[0]): # assume foomatic: or some such
TypeError: 'NoneType' object is not subscriptable
Done.
%%%%%%%%%%%%%%%%%%%%%%% hatásszünet
Megoldás itt: https://hup.hu/comment/2764834#comment-2764834
- 205 megtekintés
Hozzászólások
A nyomtatómhoz való ppd fájlt mintha a legújabb driverből kiszedte volna a HP.
hp-laserjet_M15x* között a listában nem szerepel az enyém. Megszüntették a nyomtató "támogatását"?
10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.
- A hozzászóláshoz be kell jelentkezni
Itt, irjak a nyomtatod tipusat, elvileg 3.11.1 utani verzioval mukodik, ugyonakkor azt is irjak, hogy full tamogatassal bir, de end of support. Ami nekem van nyomtato, ahhoz minimum 0.9.5-os hplip kell es ugyonugy end of support, mint a tied, viszont mukodik az aktualisan legujabb verzioval (most szedtem le a hp oldalarol a 3.22.2-t). Ez tartalmazza nalam a 'hp-laserjet_m1530_mfp_series-ps.ppd.gz' -t.
Szoval, mit telepitessz es honnan? Mert A 3.17.10-es verzio es a "legujabb" igen messze vannak egymastol, kiveve persze, ha nem 2022-t, hanem 2017-et irunk.
- A hozzászóláshoz be kell jelentkezni
10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.
- A hozzászóláshoz be kell jelentkezni
És közben a libcups a legújabb:
# apt-get install --assume-yes libcups2
Csomaglisták olvasása... Kész
Függőségi fa építése
Állapotinformációk olvasása... Kész
libcups2 már a legújabb verzió (2.2.7-1ubuntu2.8).
:-(
10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.
- A hozzászóláshoz be kell jelentkezni
nstalling from the LM repository
Execute each of these commands in turn, understanding that each will require some configuration information.
Code: Select all
$ sudo apt install hplip hplip-gui xsane
$ hp-setup
$ hp-plugin
These commands perform the following:
- Installs the hplip (and supporting) packages
- Starts the printer configuration process. The user will be required to help the software "discover" the printer and enter other configuration information.
- This command is necessary only if your device has a scanner
Once the above commands have been successfully performed, your printer (and scanner, if applicable) should be fully functioning.
- A hozzászóláshoz be kell jelentkezni
A nyomtatószerver nem tud kapcsolódni ehhez:
/run/cups/cups.sock
ez egy olyan jelenség, amit 25 év alatt linuxoknál egyszer sem tapasztaltam.
service cups start
... és ígysenem van cups.
# service cups status
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Thu 2022-03-24 17:40:23 CET; 1min 36s ago
Docs: man:cupsd(8)
Process: 11622 ExecStart=/usr/sbin/cupsd -l (code=killed, signal=TERM)
Main PID: 11622 (code=killed, signal=TERM)
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: cups.service: Service hold-off time over, scheduling restart.
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: cups.service: Scheduled restart job, restart counter is at 5.
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: Stopped CUPS Scheduler.
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: cups.service: Start request repeated too quickly.
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: cups.service: Failed with result 'start-limit-hit'.
márc 24 17:40:23 a-ThinkPad-R400 systemd[1]: Failed to start CUPS Scheduler.
---------------------------
Legyilkoltam a cups-ot:
apt remove bluez-cups cups hplip hplip-gui printer-driver-gutenprint printer-driver-hpcups printer-driver-postscript-hp printer-driver-splix
majd
apt install bluez-cups cups hplip hplip-gui printer-driver-gutenprint printer-driver-hpcups printer-driver-postscript-hp printer-driver-splix
...és a hibaüzenet ugyanaz, mint fentebb.
10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.
- A hozzászóláshoz be kell jelentkezni
Jambarambarammmmm.
Megoldás:
sudo cp /usr/share/cups/cupsd.conf.default /etc/cups/cupsd.conf
sudo service cups restart
Szerintem nem érteni, miért nem lett meg a file az etc-ben...
Linux-Mint sajátosság? Néha eltűnik a fájl? (gyorsan mentem...)
Egyből ott figyelt a nyomtatóm, ahol kell!
# systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-03-24 20:58:42 CET; 6s ago
Docs: man:cupsd(8)
Main PID: 986 (cupsd)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/cups.service
└─986 /usr/sbin/cupsd -l
márc 24 20:58:42 a-ThinkPad-R400 systemd[1]: Started CUPS Scheduler.
---
Köszönöm mindenkinek a segítséget, tanultam abból is, amit írtatok.
10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.
- A hozzászóláshoz be kell jelentkezni