installing driver hangs indefinitely

Bug #1307917 reported by Frank
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Invalid
Undecided
Unassigned
system-config-printer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While installing a printer driver, I get the usual progress bar modal window (title: 'Installing driver epson-inkjet-printer-escpr', content: 'Installing ...'). It just stops and hangs indefinitely at about 50% progress though.

I've inspected pstree, and the offending command line seems to be:

/usr/bin/python /usr/share/system-config-printer/install-printerdriver.py epson-inkjet-printer-escpr deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56

Running it from the command line outputs the following two lines:

    Signature key supplied
    pk.install_signature

.. and then it hangs as well.

I've attached an strace -f of the above command. The trace doesn't actually end (the process hangs as before), but does stop outputting new system calls.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: system-config-printer-gnome 1.4.3+20140219-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-20.42-generic 3.13.7
Uname: Linux 3.13.0-20-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.1-0ubuntu2
Architecture: amd64
CupsErrorLog:

CurrentDesktop: Unity
Date: Tue Apr 15 10:35:39 2014
InstallationDate: Installed on 2014-04-02 (13 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: Dell Inc. Vostro 3500
PackageArchitecture: all
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-20-generic root=UUID=02c716f6-1efa-4717-acc6-62fab88d7a37 ro quiet splash vt.handoff=7
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/25/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A10
dmi.board.name: 0G2R51
dmi.board.vendor: Dell Inc.
dmi.board.version: A10
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A10
dmi.modalias: dmi:bvnDellInc.:bvrA10:bd10/25/2010:svnDellInc.:pnVostro3500:pvrA10:rvnDellInc.:rn0G2R51:rvrA10:cvnDellInc.:ct8:cvrA10:
dmi.product.name: Vostro 3500
dmi.product.version: A10
dmi.sys.vendor: Dell Inc.

Revision history for this message
Frank (k-lamnchpad-n) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Are you logged in as the first/privileged user? Are you on the native desktop of the computer (not logged in via SSH from another computer)?

Changed in system-config-printer (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This looks like a bug in the install_signature() method of the PackageKitGlib.Client class, that if authorization for writing into the files where keys for package repositories are stored fails that the method does not exit and hangs infinitely. It seems to have nothing to do with Epson's servers or that the key is from Epson, as the only parameter to the method is the key fingerprint as a string of hexadecimal digits.

Adding packagekit ...

Changed in packagekit (Ubuntu):
status: New → Incomplete
Revision history for this message
Frank (k-lamnchpad-n) wrote :

Yes to both questions: primary user and native desktop.

The install-printerdriver.py command hangs in exactly the same way if I run it as root.

Revision history for this message
jim parris (t-jim-7) wrote :

I also have this problem with Epson printer drivers.

There is something wrong with the repo id that it is passing to the python script. It is passing six (6) arguments when the script only takes three.

The third argument is the url, which is apparently wrong. The last three are irrelevant.

Run the script with only two arguments, and it will work fine - there is logic for it.

Commented version of the python script:
https://fossies.org/dox/system-config-printer-1.4.4/install-printerdriver_8py_source.html

Argument in question (remove this):

http://download.ebz.epson.net/dsc/op/stable/debian/

19 try:
20 repo_gpg_id = sys.argv[3]
21 except:
22 repo_gpg_id = None

------------------------------------------

As root, run:

/usr/bin/python /usr/share/system-config-printer/install-printerdriver.py epson-inkjet-printer-escpr deb

And then you can go back and add your printer like normal.

Revision history for this message
Bruno Nova (brunonova) wrote :

I found this problem as well in Trusty with all updates installed (Epson printer too).
I also had problems installing my priinter in Saucy.

The problem really seems to be in the install-printerdriver.py script (and, thus, system-config-printer source package).
The installation hangs at 50%.
Then I tried several more times. It hanged now at 0%.
Then I looked in the System Monitor and there were several "install-printerdriver.py" processes (due to the several attempts).
I killed all those processes.

However, I then removed the Epson driver, then the Epson repository and key (using Software & Updates) and refreshed the cache.
Then I tried to install the printer again, this time by executing the system-config-printer command from the terminal (to check the output). And it worked (!?).
I also tried running the install-printerdriver.py script before this, and it wasn't hanging (the driver was still installed, though).

Was this a temporary problem?
Still, it shouldn't have hanged!

This should be "Confirmed" for system-config-printer, as the bug reporter already answered the questions asked.

Changed in system-config-printer (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Jim Parris, note that install-printerdriver is actually called with three arguments, it only looks like that it is called with more arguments in the log, because the second argument, the package repository, contains spaces.

Revision history for this message
Manos Nikiforakis (nikiforakis-m) wrote :
Revision history for this message
Manos Nikiforakis (nikiforakis-m) wrote :
Revision history for this message
vince (vincentfmvenema) wrote :

I also have the same problem when adding a epson px720wd networkprinter. When i use controlpanel>add printer, the installation keeps hanging arond 50%.

I tried the suggestion made by Bruno Nova (brunonova) wrote on 2014-06-18: "However, I then removed the Epson driver, then the Epson repository and key (using Software & Updates) and refreshed the cache.
Then I tried to install the printer again, this time by executing the system-config-printer command from the terminal" -- The installation succeeded. The scanner is also working.

I also tried to install the printer on netrunner 14.04, via system-settings>add printer. the printer installed correctly.

Changed in packagekit (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
ippsatsi (laz133) wrote :

 also have the same problem when adding a epson M200 networkprinter (201215w), the installation hang. By terminal the two last lines :

pk.install_packages
Signature key supplied

I have Trusty.

I will try installing by command line:

sudo apt-get install epson-inkjet-printer-201515w

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.