From unknown Sun Jun 22 11:35:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60242 <60242@debbugs.gnu.org> To: bug#60242 <60242@debbugs.gnu.org> Subject: Status: Cannot install a Samba printer Reply-To: bug#60242 <60242@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:35:19 +0000 retitle 60242 Cannot install a Samba printer=20 reassign 60242 guix submitter 60242 Richard Lawrence severity 60242 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 12:39:26 2022 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 17:39:26 +0000 Received: from localhost ([127.0.0.1]:53066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p833t-0000NS-DE for submit@debbugs.gnu.org; Wed, 21 Dec 2022 12:39:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:34838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p81mM-0007s7-By for submit@debbugs.gnu.org; Wed, 21 Dec 2022 11:17:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p81mM-00086w-12 for bug-guix@gnu.org; Wed, 21 Dec 2022 11:17:14 -0500 Received: from grace.univie.ac.at ([2001:62a:4:25::25:115]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p81mJ-0000Ub-M6 for bug-guix@gnu.org; Wed, 21 Dec 2022 11:17:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev3; h=Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=GBaiFx/N2PA5W2kCDRJm+D+ZDmDPLoMqLgXMgozEbx0=; b=dBpH0PI2wuu/FXLw0SJx5O63Xo ChjSgg8vZHyaa54TJDxwD8/sAf9my1mSSyjlD6bEbX0eTLju0zIxIEHjRYGMoRBS2CXz8jWeZJ/P6 74YAeMCIQk+JkIRmv/X4CV/zB90Cgl1AYseJhhbOV6yrTrJkIOy7tmBh1OCb5KlD9UvNfhc4U02rl XliZm1lcMksaRfarnXOSPvrhWnQaz5olR48lrB8/8iJ8fjPZ829D50LFSNDK8XPBIdOqNqffpETOm GZi0kE8bZypLp0LlxhS1+HCmR8guuuthjwCRwYDpkXI7uMAmVPYtWnDS2Czj7h3qkXs6CVfUIxcuQ O2ROwjsw==; Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p81mB-006vrP-0c for bug-guix@gnu.org; Wed, 21 Dec 2022 17:17:03 +0100 Received: from [2001:62a:4:2701:3d6f:2c11:ff09:2391] (helo=gottlob) by jarvis.univie.ac.at with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p81mA-00Grrt-2Z for bug-guix@gnu.org; Wed, 21 Dec 2022 17:17:03 +0100 From: Richard Lawrence To: bug-guix@gnu.org Subject: Cannot install a Samba printer Date: Wed, 21 Dec 2022 17:17:02 +0100 Message-ID: <87y1r0ag01.fsf@gottlob.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain X-Univie-Virus-Scan: scanned by ClamAV on jarvis.univie.ac.at Received-SPF: none client-ip=2001:62a:4:25::25:115; envelope-from=richard.lawrence@univie.ac.at; helo=grace.univie.ac.at X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 Dec 2022 12:39:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dear Guix maintainers, I have been trying to set up a Guix system install at work and have hit a wall related to installing a Samba printer. I believe this is a bug in the way that either CUPS or Samba are packaged in Guix (but I'm very new to Guix, so please bear with me). Specifically, installing Samba needs to provide a link somewhere to the smbspool program in order to make CUPS aware of it as a backend. Here are the steps that led me to this issue: 0) I setup CUPS to run in my OS config like: (service cups-service-type (cups-configuration (default-paper-size "A4") (web-interface? #t))) (I have also added my user to the groups "lp" and "lpadmin", though I'm not sure if that's important.) 1) I tried to add a Samba printer using the system-config-printer program, following the instructions from my employer (https://zid.univie.ac.at/uprint/anleitungen/unter-linux-installieren/). This goes smoothly until the last step; after entering the printer name, description, and location, and clicking "Apply", a dialog appears asking me to authenticate. No matter what credentials I enter here (my own user account, root's, or my samba domain credentials), this step fails with a "client-error-not-possible" CUPS server error. No other information is provided. Adding the printer through the CUPS web interface doesn't work either; there is no option there to install a Samba printer. Here is what I've been able to learn through my own troubleshooting: Elsewhere on the web, people who have the same issue generally report that it's fixed by installing the "smbclient" package. Guix has no such package; so I installed the "samba" package (although I do not want to run a samba server) to get access to the client utilities. I made some progress by directly copying a working config for this printer from another machine into /etc/cups/printers.conf and restarting CUPS. This at least added the printer to CUPS, so that I can see it in the system-config-printer GUI and in the CUPS web interface. In the latter, I now see a more informative error in the printer's status field: "Backend /gnu/store/xl7mglavpkc4gjh7m53d0wf55mifnqy3-cups-server-bin/lib/cups/backend/smb does not exist!" The other machine where I have this printer configured is running Debian. On Debian, installing the smbclient package creates a symlink at /usr/lib/cups/backend/smb to /usr/bin/smbspool. This is what appears to be missing in Guix. The smbspool program is installed in Guix via the samba package at /gnu/store/4fpyn089b3873ci591935nqd8d5g8zdw-samba-4.16.4/bin/smbspool. (I can send jobs to the Samba printer on Guix if I manually call smbspool.) But no corresponding symlink to this program is created in the lib/cups/backend directory when the samba package is installed, which appears to the source of the error above. (It *could* be that the absence of this symlink is also the source of the client-error-not-possible in the system-configure-printer GUI; I'm not sure.) I'm not sure what the right way to create such a symlink on Guix would be, but it seems like its absence makes it impossible to install and use a Samba printer. As I said, I *believe* this is a bug in how Samba and/or CUPS is packaged; but if there's some additional configuration I could do to get this working, please let me know! Many thanks for your help, Richard