unable connect to Windows 7 shared printer: lpadmin Bad device-uri scheme

Hello,

I’m having a problem printing to a printer shared on a Windows 7 computer.

That printer is directly connected to the Windows 7 computer via USB. I am able to connect and print to the Windows 7 shared printer from another Windows 7 computer and a Linux computer running Ubuntu 14.04.1 LTS.

But, I am unable to connect to the Windows 7 shared printer from openSUSE.

On my Linux computer I am running,

lsb_release -a
LSB Version:    n/a
Distributor ID:    openSUSE project
Description:    openSUSE 13.1 (Bottle) (x86_64)
Release:    13.1
Codename:    Bottle

Using YaST2 I tried to add the printer. The screenshots below are edited to hide personal information. All the steps are shown in the four screenshots below:
1.

http://brianzad.freeshell.org/questions/osS1.2014.png

http://brianzad.freeshell.org/questions/osS2.2014.png

http://brianzad.freeshell.org/questions/osS3.2014.png

http://brianzad.freeshell.org/questions/osS4.2014.png

If anyone can offer advice I will appreciate it.

If I didn’t include information in this post please tell me and I will update this post.

Thank you for your time and any help you can offer.

Have you setup smb in yast???

Thank you.

I don’t understand what you mean by setting up smb. I don’t know what steps I should do to set it up. When I followed the “add printer” module I don’t recall if it requested to install Samba; but if it did I performed no extra configuration.

I can browse other computers which have Samba/SMB/CIFS such as my Windows 7 and Linux computers. But, they can’t browse my openSUSE computer.

But, I believe Samba is installed,

/usr/sbin/smbd -V
Version 4.1.9-3.22.1-3256-SUSE-oS13.1-x86_64

Installed yes the question is did you set it up. By default samba does not get started you have to set it to start and configure it.

Check that you’re not affected by the following

https://bugzilla.novell.com/show_bug.cgi?id=850656

In particular, is this a fresh install, and are you fully updated? (This doesn’t afftect those who simply upgraded, because required symlink already exists)

ls -l /usr/lib/cups/backend/smb

Mine for reference

lrwxrwxrwx 1 root root 17 Mar 21 06:44 /usr/lib/cups/backend/smb -> /usr/bin/smbspool

Yes, this is a fresh install.

ls -l /usr/lib/cups/backend/smb
ls: cannot access /usr/lib/cups/backend/smb: No such file or directory

Have you updated via YaST or

zypper ref
zypper up

When I first installed, which was about 7 days ago, I may have used the command line but I don’t recall. I usually use Online Update in YaST.

Below are output of some zypper commands that may help,

zypper lr -u
#  | Alias                        | Name                               | Enabled | Refresh | URI                                                            
---+------------------------------+------------------------------------+---------+---------+----------------------------------------------------------------
 1 | download.nvidia.com-opensuse | nVidia Graphics Drivers            | Yes     | Yes     | http://download.nvidia.com/opensuse/13.1/                      
 2 | ftp.gwdg.de-suse             | Packman Repository                 | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/       
 3 | opensuse-guide.org-repo      | libdvdcss repository               | No      | Yes     | http://opensuse-guide.org/repo/13.1/                           
 4 | repo-debug                   | openSUSE-13.1-Debug                | No      | Yes     | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ 
 5 | repo-debug-update            | openSUSE-13.1-Update-Debug         | No      | Yes     | http://download.opensuse.org/debug/update/13.1/                
 6 | repo-debug-update-non-oss    | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     | http://download.opensuse.org/debug/update/13.1-non-oss/        
 7 | repo-non-oss                 | openSUSE-13.1-Non-Oss              | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/non-oss/   
 8 | repo-oss                     | openSUSE-13.1-Oss                  | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/oss/       
 9 | repo-source                  | openSUSE-13.1-Source               | No      | Yes     | http://download.opensuse.org/source/distribution/13.1/repo/oss/
10 | repo-update                  | openSUSE-13.1-Update               | Yes     | Yes     | http://download.opensuse.org/update/13.1/                      
11 | repo-update-non-oss          | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     | http://download.opensuse.org/update/13.1-non-oss/              

zypper lr -u
#  | Alias                        | Name                               | Enabled | Refresh | URI                                                            
---+------------------------------+------------------------------------+---------+---------+----------------------------------------------------------------
 1 | download.nvidia.com-opensuse | nVidia Graphics Drivers            | Yes     | Yes     | http://download.nvidia.com/opensuse/13.1/                      
 2 | ftp.gwdg.de-suse             | Packman Repository                 | Yes     | Yes     | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/       
 3 | opensuse-guide.org-repo      | libdvdcss repository               | No      | Yes     | http://opensuse-guide.org/repo/13.1/                           
 4 | repo-debug                   | openSUSE-13.1-Debug                | No      | Yes     | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ 
 5 | repo-debug-update            | openSUSE-13.1-Update-Debug         | No      | Yes     | http://download.opensuse.org/debug/update/13.1/                
 6 | repo-debug-update-non-oss    | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     | http://download.opensuse.org/debug/update/13.1-non-oss/        
 7 | repo-non-oss                 | openSUSE-13.1-Non-Oss              | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/non-oss/   
 8 | repo-oss                     | openSUSE-13.1-Oss                  | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/oss/       
 9 | repo-source                  | openSUSE-13.1-Source               | No      | Yes     | http://download.opensuse.org/source/distribution/13.1/repo/oss/
10 | repo-update                  | openSUSE-13.1-Update               | Yes     | Yes     | http://download.opensuse.org/update/13.1/                      
11 | repo-update-non-oss          | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     | http://download.opensuse.org/update/13.1-non-oss/              

Okay, update as I instructed, then check the following again

ls -l /usr/lib/cups/backend/smb

or you could just make the symlink manually (as root of course)

ln -s /usr/lib/cups/backend/smb /usr/bin/smbspool

Sorry, I got that command wrong. It should have been

 ln -s /usr/bin/smbspool /usr/lib/cups/backend/smb

I updated per instructions.

sudo zypper ref
root's password:
Repository 'nVidia Graphics Drivers' is up to date.
Retrieving repository 'Packman Repository' metadata .................................................................................................................[done]
Building repository 'Packman Repository' cache ......................................................................................................................[done]
Repository 'openSUSE-13.1-Non-Oss' is up to date.
Repository 'openSUSE-13.1-Oss' is up to date.
Repository 'openSUSE-13.1-Update' is up to date.
Repository 'openSUSE-13.1-Update-Non-Oss' is up to date.
All repositories have been refreshed.
brian@linux-4gj0:~> sudo zypper up
Loading repository data...
Reading installed packages...

The following 3 package updates will NOT be installed:
  k3b kde3-kaffeine kde3-kaffeine-lang 

The following package is going to be upgraded:
  at 

1 package to upgrade.
Overall download size: 55.1 KiB. After the operation, additional 66.0 B will be used.
Continue? [y/n/? shows all options] (y): 
Retrieving package at-3.1.13-5.8.1.x86_64                                                                                             (1/1),  55.1 KiB (112.4 KiB unpacked)
Retrieving delta: ./x86_64/at-3.1.13-5.4.1_5.8.1.x86_64.drpm, 18.9 KiB
Retrieving: at-3.1.13-5.4.1_5.8.1.x86_64.drpm .......................................................................................................................[done]
Applying delta: ./at-3.1.13-5.4.1_5.8.1.x86_64.drpm .................................................................................................................[done]
(1/1) Installing: at-3.1.13-5.8.1 ...................................................................................................................................[done]
Additional rpm output:
setting /usr/bin/at to root:trusted 4755. (wrong permissions 4750)


There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.


But, I got the same result with, with the list command,

ls -l /usr/lib/cups/backend/smb
ls: cannot access /usr/lib/cups/backend/smb: No such file or directory


Did I do something wrong?

Should I do the symlink manually?

Should I do the symlink manually?

Yes, try that.

ln -s /usr/bin/smbspool /usr/lib/cups/backend/smb

Then see if you can configure your remote printer.

Typo: Doh!

Hi deano_ferrari,

Thank you! I did the link manually and I can print.

ls -l /usr/lib/cups/backend/smb
lrwxrwxrwx 1 root root 17 Aug  5 21:20 /usr/lib/cups/backend/smb -> /usr/bin/smbspool

Thanks for your help!

Fantastic! :slight_smile: