• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

CUPS-Konfiguration löschen, Drucker druckt 1 Seite auf 2-4 Blätter

A

Anonymous

Gast
Hi,
ich konnte von einem exStudi einen (gebrauchten) Laserdrucker gleich mit Beistelltisch und Staubschutzhaube günstig erstehen, bekomme ihn aber unter meiner Arbeitsumgebung openSUSE 13.2 nicht zum "richtigen" Drucken.
Gemäß Bedienungsanleitung muss nur der Samsung uld Linux Treiber installiert werden.
http://www.samsung.com/de/support/model/SL-M2825DW/SEE
Dann einfach unter http://localhost:631/ -> Verwaltung -> Drucker hinzufügen, etc., und läuft. Aber nur in der Virtuellen Maschine (QEMU).
In der VM habe nur eine Grundinstallation openSUSE 13.2 mit KDE4 gemacht. Die läuft schon seit Nov. 2015 mit und dient mir immer als Testsystem.

Wenn ich im Host-System nach dem Einrichten unter CUPS die Testseite ausdrucken lasse, habe ich 2 Blatt Papier je zur Hälfte bedruckt.
In der YaST-Druckereinrichtung kommt gar keine Testseite. Und wenn ich ein pdf-DIN-A4-Blatt drucken will, bekomme ich vom Drucker 4 Blatt Papier jeweils mit einem Teil des pdfs.
27067385iz.jpg

Oben: CUPS-Testseite
Unten: Beispiel-pdf-Dokument
Links: openSUSE 13.2 "Host" - Rechts: openSUSE 13.2 in VM

Im "Host" habe ich schon mal alle alten Drucker per YaST gelöscht und die Originaldateien in /etc/cups/ wiederhergestellt.
Samsung-Drucker neu eingerichtet -> druckt immer noch auf 4 Blatt Papier, und es kommt keine Testdruckseite in YaST-Drucker.
YaST-Fehlermeldung:
/var/log/cups/error_log schrieb:
Code:
W [08/Oct/2016:17:17:41 +0200] [Job 34] Nothing to print
/var/log/cups/page_log schrieb:
Code:
Samsung_M262x_282x_Series root 33 [08/Oct/2016:16:32:49 +0200] 1 1 - localhost Test Page - -
Samsung_M262x_282x_Series root 33 [08/Oct/2016:16:32:49 +0200] 2 1 - localhost Test Page - -
/var/log/cups/access_log schrieb:
Code:
localhost - - [08/Oct/2016:16:29:39 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [08/Oct/2016:16:29:39 +0200] "POST / HTTP/1.1" 401 88 CUPS-Get-Devices successful-ok
localhost - - [08/Oct/2016:16:29:39 +0200] "POST /admin/ HTTP/1.1" 401 60 - -
localhost - - [08/Oct/2016:16:29:39 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - root [08/Oct/2016:16:29:46 +0200] "POST /admin/ HTTP/1.1" 200 60 - -
localhost - - [08/Oct/2016:16:29:46 +0200] "POST / HTTP/1.1" 401 88 CUPS-Get-Devices successful-ok
localhost - root [08/Oct/2016:16:29:46 +0200] "POST / HTTP/1.1" 200 2020 CUPS-Get-Devices -
localhost - root [08/Oct/2016:16:29:46 +0200] "POST /admin/ HTTP/1.1" 200 3517 - -
localhost - - [08/Oct/2016:16:29:54 +0200] "POST /admin HTTP/1.1" 200 128 - -
localhost - - [08/Oct/2016:16:29:54 +0200] "POST /admin HTTP/1.1" 200 3500 - -
localhost - - [08/Oct/2016:16:30:57 +0200] "POST /admin HTTP/1.1" 200 298 - -
localhost - - [08/Oct/2016:16:30:57 +0200] "POST / HTTP/1.1" 200 240849 CUPS-Get-PPDs -
localhost - - [08/Oct/2016:16:30:57 +0200] "POST /admin HTTP/1.1" 200 60068 - -
localhost - - [08/Oct/2016:16:31:03 +0200] "POST /admin HTTP/1.1" 200 2023 - -
localhost - - [08/Oct/2016:16:31:03 +0200] "POST /admin/ HTTP/1.1" 401 371 CUPS-Add-Modify-Printer successful-ok
localhost - - [08/Oct/2016:16:31:03 +0200] "POST /admin HTTP/1.1" 401 2023 - -
localhost - - [08/Oct/2016:16:31:03 +0200] "POST /admin HTTP/1.1" 200 2023 - -
localhost - root [08/Oct/2016:16:31:03 +0200] "POST /admin HTTP/1.1" 200 2023 - -
localhost - - [08/Oct/2016:16:31:03 +0200] "POST /admin/ HTTP/1.1" 401 371 CUPS-Add-Modify-Printer successful-ok
localhost - root [08/Oct/2016:16:31:03 +0200] "POST /admin/ HTTP/1.1" 200 371 CUPS-Add-Modify-Printer successful-ok
localhost - root [08/Oct/2016:16:31:03 +0200] "POST /admin HTTP/1.1" 200 11084 - -
localhost - root [08/Oct/2016:16:31:11 +0200] "POST /admin HTTP/1.1" 200 366 - -
localhost - - [08/Oct/2016:16:31:11 +0200] "POST /admin/ HTTP/1.1" 401 50705 CUPS-Add-Modify-Printer successful-ok
localhost - root [08/Oct/2016:16:31:11 +0200] "POST /admin/ HTTP/1.1" 200 50705 CUPS-Add-Modify-Printer successful-ok
localhost - root [08/Oct/2016:16:31:11 +0200] "POST /admin HTTP/1.1" 200 2496 - -
localhost - - [08/Oct/2016:16:32:49 +0200] "POST /printers/Samsung_M262x_282x_Series HTTP/1.1" 200 466 Print-Job successful-ok
localhost - - [08/Oct/2016:17:16:34 +0200] "POST / HTTP/1.1" 401 72 CUPS-Get-Devices successful-ok
localhost - root [08/Oct/2016:17:16:34 +0200] "POST / HTTP/1.1" 200 2005 CUPS-Get-Devices -
localhost - - [08/Oct/2016:17:16:38 +0200] "POST / HTTP/1.1" 200 6343250 CUPS-Get-PPDs -
localhost - - [08/Oct/2016:17:17:04 +0200] "POST /admin/ HTTP/1.1" 401 167 CUPS-Set-Default successful-ok
localhost - root [08/Oct/2016:17:17:04 +0200] "POST /admin/ HTTP/1.1" 200 167 CUPS-Set-Default successful-ok
localhost - - [08/Oct/2016:17:17:41 +0200] "POST /printers/Samsung_M262x_282x_Series HTTP/1.1" 200 425 Create-Job successful-ok
localhost - - [08/Oct/2016:17:17:41 +0200] "POST /printers/Samsung_M262x_282x_Series HTTP/1.1" 200 17670 Send-Document successful-ok
Die CUPS-Installation ist auf aktuellem Stand und auf dem selben Stand wie die in der VM.
Code:
$ zypper search --detail --installed-only cups ghost
Reading installed packages...

S | Name                         | Type    | Version       | Arch   | Repository
--+------------------------------+---------+---------------+--------+--------------------------------
i | OpenPrintingPPDs-ghostscript | package | 4.0.0.2-2.1.3 | noarch | Haupt-Repository (OSS)
i | cups                         | package | 1.5.4-21.9.1  | x86_64 | Hauptaktualisierungs-Repository
i | cups-client                  | package | 1.5.4-21.9.1  | x86_64 | Hauptaktualisierungs-Repository
i | cups-filters-foomatic-rip    | package | 1.0.58-2.11.1 | x86_64 | Hauptaktualisierungs-Repository
i | cups-filters-ghostscript     | package | 1.0.58-2.11.1 | x86_64 | Hauptaktualisierungs-Repository
i | cups-libs                    | package | 1.5.4-21.9.1  | x86_64 | Hauptaktualisierungs-Repository
i | cups-libs-32bit              | package | 1.5.4-21.9.1  | x86_64 | Hauptaktualisierungs-Repository
i | cups-pk-helper               | package | 0.2.5-4.1.4   | x86_64 | Haupt-Repository (OSS)
i | ghostscript                  | package | 9.15-3.1      | x86_64 | Hauptaktualisierungs-Repository
i | ghostscript-fonts-other      | package | 9.06-6.1.5    | noarch | Haupt-Repository (OSS)
i | ghostscript-fonts-std        | package | 9.06-6.1.5    | noarch | Haupt-Repository (OSS)
i | ghostscript-x11              | package | 9.15-3.1      | x86_64 | Hauptaktualisierungs-Repository
i | python-cups                  | package | 1.9.66-2.1.3  | x86_64 | Haupt-Repository (OSS)
i | python-cupshelpers           | package | 1.4.5-2.5.1   | noarch | Hauptaktualisierungs-Repository

Wie kann ich sämtliche gemachten CUPS-Einstellungen entfernen, damit ich wieder eine saubere Ausgangskonfiguration bekomme?
 
Viel fällt mir zu diesem seltsamen Problem nicht ein:

1. Vergleich der Dateiinhalte unter /etc/cups von beiden Installationen (als root).
2. Prüfung der installierten CUPS-Pakete in beiden Installationen (als root):
Code:
rpm -qa *cups* | while read paketname ; do rpm -V $paketname || echo $paketname ; done
3. Wie ist der Drucker angeschlossen?
 
OP
A

Anonymous

Gast
Hi,
danke schon mal für die Tipps.
1)
Code:
# rpm -qa '*cups*' | while read paketname ; do rpm -V $paketname || echo $paketname ; done
.....U...    /var/cache/cups
cups-libs-1.5.4-21.9.1.x86_64
Die selbe Ausgabe erhalte ich in der VM.

2) VM-Imagedatei (openSUSE13.2) ist nach /mnt/floppy eingehängt:
Code:
diff -r /etc/cups/classes.conf /mnt/floppy/etc/cups/classes.conf
2c2
< # Written by cupsd on 2016-10-08 17:17
---
> # Written by cupsd on 2016-10-08 17:03
Code:
diff -r /etc/cups/printers.conf /mnt/floppy/etc/cups/printers.conf
2c2
< # Written by cupsd on 2016-10-08 17:18
---
> # Written by cupsd on 2016-10-08 17:12
5c5
< UUID urn:uuid:687bbb73-2702-3988-5a71-b42c361f4b41
---
> UUID urn:uuid:d5cb86e8-ac5e-3db6-5ac0-37da90c1eff3
11c11
< StateTime 1475939861
---
> StateTime 1475939520
25c25
< Attribute marker-change-time 1475939861
---
> Attribute marker-change-time 1475939520
Code:
diff -r /etc/cups/printers.conf.O /mnt/floppy/etc/cups/printers.conf.O
2c2
< # Written by cupsd on 2016-10-08 17:17
---
> # Written by cupsd on 2016-10-08 17:06
5c5
< UUID urn:uuid:687bbb73-2702-3988-5a71-b42c361f4b41
---
> UUID urn:uuid:d5cb86e8-ac5e-3db6-5ac0-37da90c1eff3
11c11
< StateTime 1475937170
---
> StateTime 1475939179
25c25
< Attribute marker-change-time 1475937170
---
> Attribute marker-change-time 1475939179
Alle anderen Dateien unterhalb /etc/cups/ sind identisch.

3) Der Drucker wird beide Male per WiFi (über EasyBox-Router) angesprochen. Für die VM mache ich mit der "Intel N 7260" Karte PCIe-Passthrough, sodass ich in beiden Systemen die gleiche Konstellation habe.

4) Tipp von Sauerland:
Code:
# zypper install --force cups-filters-ghostscript
The following package is going to be reinstalled:
  cups-filters-ghostscript

1 package to reinstall.
Overall download size: 86.4 KiB. Already cached: 0 B  No additional space will be used or freed after
the operation.
Continue? [y/n/? shows all options] (y): y
Retrieving package cups-filters-ghostscript-1.0.58-2.11.1.x86_64  (1/1),  86.4 KiB (142.1 KiB unpacked)
Retrieving: cups-filters-ghostscript-1.0.58-2.11.1.x86_64.rpm ...................................[done]
Checking for file conflicts: ....................................................................[done]
(1/1) Installing: cups-filters-ghostscript-1.0.58-2.11.1 ........................................[done]
Anschließend per YaST-Drucker -> Testseite drucken: Nichts passiert.
/var/log/cups/error_log schrieb:
W [09/Oct/2016:09:31:48 +0200] [Job 35] Nothing to print
Auf einen Probeausdruck habe ich verzichtet, um weitere 4 Blatt Papier für die Mülltonne zu vermeiden.
 
Oben