[Pkg-phototools-devel] Bug#610207: gphoto2: Error (-60: 'Could not lock the device')

Apis Mellifera bug.apismellifera at gmail.com
Sun Jan 16 06:20:09 UTC 2011


Package: gphoto2
Version: 2.4.5-3
Severity: normal

In squeeze (testing)

plug in camera to USB port
Nautilus file manager window appears with contents of camera
$ gphoto2 --list-files

*** Error ***
An error occurred in the io-library ('Could not lock the device'): Camera is
already in use.
*** Error (-60: 'Could not lock the device') ***

A workaround is to use Nautilus to umount the camera file system before running
gphoto2, as follows.

plug camera in to USB port
Nautilus window appears: in left hand side window, unmount the camera volume
gphoto2 --list-files
(both gphoto2 and gtkam both seem to work OK)

Is there a better way, or is this workaround safe for a permanent solution?

For reference,

$ gphoto2 --version
gphoto2 2.4.5

Copyright (c) 2000-2008 Lutz Mueller and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.4.5          gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2      2.4.6          gcc, ltdl, EXIF
libgphoto2_port 0.8.0          gcc, ltdl, USB, serial without locking



-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gphoto2 depends on:
ii  libaa1                    1.4p5-38       ascii art library
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libcdk5                   5.0.20060507-2 C-based curses widget library
ii  libexif12                 0.6.19-1       library to parse EXIF files
ii  libgphoto2-2              2.4.6-3        gphoto2 digital camera library
ii  libgphoto2-port0          2.4.6-3        gphoto2 digital camera port librar
ii  libjpeg62                 6b1-1          The Independent JPEG Group's JPEG 
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libpopt0                  1.16-1         lib for parsing cmdline parameters
ii  libreadline5              5.2-7          GNU readline and history libraries

gphoto2 recommends no packages.

Versions of packages gphoto2 suggests:
pn  gthumb                        <none>     (no description available)
ii  gtkam                         0.1.17-1   application for retrieving media f

-- no debconf information





More information about the Pkg-phototools-devel mailing list