[edgy-backports] Error in libgphoto2 udev rules
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | libgphoto2 (Ubuntu) |
High
|
Martin Pitt | ||
| | Edgy |
High
|
Martin Pitt | ||
Bug Description
Binary package hint: libgphoto2-2
The file /etc/udev/
BUS!="usb*", GOTO="libgphoto
while recenly updated udev doesn't produce BUS properties in corresponding event. Thus this line makes the whole file useless, because BUS!="usb*" is never true.
Something like
SUBSYSTEM!
instead would work.
Related branches
| Jesús García Sáez (blaxter) wrote : | #1 |
| Marcus Meissner (meissner) wrote : | #2 |
Use:
packaging/
for newer udev versions.
| Martin Pitt (pitti) wrote : | #3 |
Current Feisty uses:
SUBSYSTEM!="usb*", GOTO="libgphoto
and uses the udev 0.98 rules, so it should actually work. Can you confirm that you are using latest Feisty?
| Changed in libgphoto2: | |
| status: | Unconfirmed → Needs Info |
| Martin Pitt (pitti) wrote : | #4 |
Ah, do you happen to use Edgy and the Feisty backport?
| Evgeny Kuznetsov (nekr0z) wrote : | #5 |
I happen to use Edgy with backport repos enabled. I don't know whether the package with wrong rules came from backports or not, but in any case those rules have to be altered, at least for Edgy (because it is actually Edgy that gets broken about this).
| Peter Toft (petoft) wrote : | #6 |
I had exactly this problem with Edgy during the last approx 5 days, and the solution of editing line 3 of /etc/udev/
| Changed in libgphoto2: | |
| assignee: | nobody → pitti |
| importance: | Undecided → High |
| status: | Needs Info → In Progress |
Martin, is this also Bug #90978 ?
| Martin Pitt (pitti) wrote : | #8 |
Thomas: yes, most probably.
| Tobias (tobias-frech) wrote : | #9 |
Worked for me. Also using Edgy with backports. Thanks!
| 2gunsup (2gunsup) wrote : | #10 |
this didnt seem to do the trick for my canon sd600 =\
| chrisecob (chrisecob) wrote : | #11 |
Worked for me too
replaced
BUS!="usb*", GOTO="libgphoto
in
/etc/udev/
with
SUBSYSTEM!
Thankyou!
I confirm the comment by Chrisecob works.
I could detect the camera, but I could not access the photos except as root.
| Guillermo Gutiérrez (capitanterrex) wrote : Re: [Bug 91250] Can't transfert photos except as root | #13 |
El dom, 18-03-2007 a las 15:18 +0000, Alexandre Racine escribió:
> I confirm the comment by Chrisecob works.
>
> I could detect the camera, but I could not access the photos except as
> root.
Are you in the 'plugdev' group? Type «id» to see; if not, type:
sudo adduser `whoami` plugdev
I hope this will be helpful for you.
--
Guillermo Gutiérrez Herrera www.xiterrex.net
La madera de tu casa, en enero sea cortada.
Same problem here with a Canon Powershot A70 which used to work. Solved as suggested by Chrisecob. I have edgy, edgy-updates and edgy-backports.
I'm in edgy without backports and I have the same problem. After modifying the line as you said I can import the photos, but Ubuntu stills not auto-detect-import my camera photos as with Dapper. I don't know what could be but this issue is happening to me since I have installed Edgy.
Thanks ;)
| Blu (blutack) wrote : | #16 |
Works with a Nikon Coolpix L4 in conjunction with bug #64146.
Also, on my Dell Inspiron 2200, when I modified the line 3 and restarted udev the music playing from Banshee increased in volume quite substantially, despite all other settings remaining the same. I assume this is something to do with Banshee's dependency on libgphoto.
| Michael (michaeljt) wrote : | #17 |
Another can't transfer photos except as root problem. I am using Edgy with backports enabled. It worked until recently. Now, if I change the permissions of /proc/bus/
crw-rw-r-- 1 root root 189, 132 2007-03-22 20:49 /proc/bus/
(Just checked, when I change the 'BUS!="usb*"...' line to 'SUBSYSTEM!
| djayeff (jfvs45) wrote : | #18 |
Hi all,
Thanks for this bug report.
Just to say that:
The file /etc/udev/
BUS!="usb*", GOTO="libgphoto
while recenly updated udev doesn't produce BUS properties in corresponding event. Thus this line makes the whole file useless, because BUS!="usb*" is never true.
Something like
SUBSYSTEM!
is working fine with my Canon EOS 350D...
| leo antony (leo-antony) wrote : | #19 |
This worked for me also. The camera in question was a Canon Ixus 330.
Thank you!
I am not a developer, I am very new to Linux. I was told to look here to get an answer to this bug. I tried to follow the instructions above and this is what happened.
harmonicagoldfi
bash: /etc/udev/
harmonicagoldfi
Password:
sudo: /etc/udev/
harmonicagoldfi
I have a feeling that my inexperience has caused me to leave out a step...can someone point me in the right direction?
This is very much appreciated! I have a few hundred images that are waiting to be processed!
thanks,
HG
Canon powershot sd400
recent upgrade from 6.06 to 6.10
I have fixed my error and made the change. My camera is not automatically detected when it is plugged in, however. I need to import through gthumbs.
I thought that was great feature of 6.06!
| Martin Pitt (pitti) wrote : | #22 |
Does not affect Feisty, opening Edgy task.
| Changed in libgphoto2: | |
| assignee: | nobody → pitti |
| importance: | Undecided → High |
| status: | Unconfirmed → In Progress |
| status: | In Progress → Rejected |
| Evgeny Kuznetsov (nekr0z) wrote : | #23 |
| Evgeny Kuznetsov (nekr0z) wrote : | #24 |
Who said it affected Feisty? I was reporting this bug for CURRENT Ubuntu release, which is still Edgy, as far as I know!
Hi Evgeny,
Evgeny nekr0z Kuznetsov [2007-04-02 15:06 -0000]:
> Who said it affected Feisty? I was reporting this bug for CURRENT Ubuntu
> release, which is still Edgy, as far as I know!
Don't worry, this change was just for internal bookkeeping. Since
Feisty is not affected by this issue, I marked it as such.
| Martin Pitt (pitti) wrote : | #26 |
Fixed in Feisty, will backport once it's in the archive.
| Changed in libgphoto2: | |
| status: | In Progress → Fix Committed |
| Martin Pitt (pitti) wrote : | #27 |
* Trying to backport libgphoto2...
- <libgphoto2_
- <libgphoto2_
- <libgphoto2_
I: Extracting libgphoto2_
I: Building backport of libgphoto2-2.3.0 as 2.3.0-0ubuntu4~
| Changed in libgphoto2: | |
| status: | Fix Committed → Fix Released |
| Tobias (tobias-frech) wrote : | #28 |
I just received libgphoto2-2 Version 2.3.0-0ubuntu4~
This update reintroduced the "broken" line once again so that I had to fix this by hand once again.
Am I doing something wrong? Do I need to update anything else?
| Evgeny Kuznetsov (nekr0z) wrote : | #29 |
I confirm: the update has the same line, which doesn't work.
| Martin G Miller (mgmiller) wrote : | #30 |
I also confirm this problem with Edgy and backports enabled. I had fixed it a while back and after this mornings update, the same problem had reappeared. Edited the file again and it now works.
| Martin Pitt (pitti) wrote : | #31 |
Please give me the output of these commands:
udevinfo -V
sudo sh -ex /var/lib/
| Changed in libgphoto2: | |
| status: | Fix Released → Needs Info |
| Tobias (tobias-frech) wrote : | #32 |
Martin,
do you need that info with or without the "fix" applied?
Should the camera be attached or not?
| Frank Siegert (fsiegert) wrote : | #33 |
Martin, same problem here, the postinst configure of 2.3.0-0ubuntu4~
$ udevinfo -V
udevinfo, version 093
$ sudo sh -ex /var/lib/
Password:
+ set -e
+ [ configure = configure ]
+ ldconfig
+ PACKAGE=libgphoto2
+ mkdir -p /usr/share/
+ /usr/lib/
+ rm -f /usr/share/
+ rm -f /usr/share/
+ rm -f /usr/share/
+ [ -d /etc/udev/ ]
+ which udevinfo
+ udevinfo -V
+ awk {if ($3 >= 98) exit 1}
+ /usr/lib/
+ exit 0
| Tobias (tobias-frech) wrote : | #34 |
Ok, my questions seem to be irrelevant here ;-)
I have the same results like Frank does.
Using the parameter udev-rules-0.98 instead of just udev-rules would produce the proper output BTW.
| Evgeny Kuznetsov (nekr0z) wrote : | #35 |
Same here.
| Martin Pitt (pitti) wrote : | #36 |
Argh, I see the error. udev-rules-0.98 is supposed and documented to produce rules for udev >= 0.98, and udev-rules for udev < 0.98. But in fact it behaves exactly the other way round. Gah...
| Changed in libgphoto2: | |
| status: | Needs Info → In Progress |
| Martin Pitt (pitti) wrote : | #37 |
Needs the same fix in Feisty.
| Changed in libgphoto2: | |
| status: | Rejected → In Progress |
| Martin Pitt (pitti) wrote : | #38 |
Closing Feisty again; it is not swapped around.
| Changed in libgphoto2: | |
| status: | In Progress → Rejected |
| Martin Pitt (pitti) wrote : | #39 |
So, summary of Edgy situation:
- Original Edgy uses the old rules with BUS (but if BUS is broken, then the structure of the rules would ignore that).
- The original backport 2.3.0-0ubuntu3~
- The manual version 2.3.0-0ubuntu3~
- The latest backport 2.3.0-0ubuntu4~
So please do the following:
- Confirm that you use standard Edgy udev
- Do
/
and test whether it works with your camera
- Do
/usr/
and test whether it works with your camera
| Changed in libgphoto2: | |
| status: | In Progress → Needs Info |
| Lionel Besson (lionel-besson) wrote : | #40 |
The first solution didn't work for me, the second one did
(and the latest backport was no use)
I don"t know if I'm using standard Edgy udev, I've 093-0ubuntu18.
| Nathan (tomato7) wrote : | #41 |
I can confirm this problem on Edgy with a Canon PowerShot SD550. I have universe, multiverse, updates, and backports enabled. The fix suggested in the original bug report worked.
Thanks a lot, you made my day man! I can finally import my pics again, after a morning spent googling around for a solution!
| Pieterjan Lansbergen (pj) wrote : | #43 |
My Nikon coolpix 990 is being detected but I still get errors from libgphoto2.
Any other suggestion?
| Pieterjan Lansbergen (pj) wrote : | #44 |
The error message I am getting is:
"Si è verificato un errore nella libreria di I/O ("Errore durante l'aggiornamento delle impostazioni della porta"): Impossibile rilasciare l'interfaccia 0 (Argomento non valido)."
(translated from Italian) is "an I/O error has occurred during port update. Impossible to release interface 0 (unvalid argument)
Hope this helps
| larini (pflarini) wrote : | #45 |
I return to ubuntu Dapper and both my nikon 880 and canon sd800 works
greate.
Now I still using dapper until another ubuntu LTS.
----- Original Message -----
From: "Pieterjan Lansbergen" <email address hidden>
To: <email address hidden>
Sent: Monday, April 16, 2007 11:16 AM
Subject: [Bug 91250] Re: [edgy-backports] Error in libgphoto2 udev rules
My Nikon coolpix 990 is being detected but I still get errors from
libgphoto2.
Any other suggestion?
** Attachment added: "gphoto2 autodetect log"
http://
--
[edgy-backports] Error in libgphoto2 udev rules
https:/
You received this bug notification because you are a direct subscriber
of a duplicate bug.
| David Tangye (davidtangye) wrote : | #46 |
larini, and anyone with Edgy still not getting photos found in gthumb: Try running "sudo gthumb". If it imports photos (like it does for me), change ownership of the jpg files and copy them to your normal user file area.
| larini (pflarini) wrote : | #47 |
Hi, I just try this with ubuntu feisty final and I get the same error:
Invalid Argument.
----- Original Message -----
From: "David Tangye" <email address hidden>
To: <email address hidden>
Sent: Wednesday, April 18, 2007 10:47 PM
Subject: [Bug 91250] Re: [edgy-backports] Error in libgphoto2 udev rules
larini, and anyone with Edgy still not getting photos found in gthumb:
Try running "sudo gthumb". If it imports photos (like it does for me),
change ownership of the jpg files and copy them to your normal user file
area.
--
[edgy-backports] Error in libgphoto2 udev rules
https:/
You received this bug notification because you are a direct subscriber
of a duplicate bug.
| Dale (quail-linux) wrote : | #48 |
Hi Martin
<quote>
/usr/lib/
</quote>
The above command string fixed the problem with my Canon PowerShot A410
Regards
Dale
| jimmy (jubxie) wrote : | #49 |
the original fix worked for me on my two week old feisty install. The line was/is:
SUBSYSTEM!="usb*", GOTO="libgphoto
and I changed it to:
SUBSYSTEM!
thanks
| exactt (giesbert) wrote : | #50 |
changing:
BUS!="usb*", GOTO="libgphoto
to
SUBSYSTEM!
in
/etc/udev/
did it for the Canon PowerShot A95.
I found many different typings in this bug report. so check for typos.
Thx
Hi, I have upgraded to Feisty and now seems to be fixed. The only problem is that when I plug in the camera it doesn't pop-up the gthumb dialog for importing the photos.
Thx
All through Edgy I did not get the pop-up for importing the photos, and this continued with my upgrade to Fesity.
Phogy, on the ubuntu forums suggested this:
rm -rf ~/.gconf/
I did it, restarted, and it now works like a charm.
| Evgeny Kuznetsov (nekr0z) wrote : | #53 |
Upgraded to Feisty, so I cannot keep tracking this bug in Edgy any longer, sorry. And yes, I used the default udev on Edgy.
I have a Canon Powershot A430 with Ubuntu 7.04 and I have the import problem.
I have tried both
SUBSYSTEM!
and
SUBSYSTEM!
but nothing changes
| Josh Burdick (jburdick-gradient) wrote : | #55 |
I'm using 6.10, with no backports enabled that I know of.
Like, it appears, several other people, gthumb pops something up, but the.n complains about not being able to access the device. Running "sudo gphoto" works swimmingly well.
I too tried the 'SUBSYSTEM!
I am in the "plugdev" group; however, the device is created as owned by root, as shown by ls -l in /proc/bus/usb/003
total 0
crw-rw-r-- 1 root root 189, 256 2007-05-12 18:48 001
crw-rw-r-- 1 root root 189, 259 2007-05-13 19:43 004
After I "chgrp plugdev 004", it reads:
...
crw-rw-r-- 1 root plugdev 189, 259 2007-05-13 19:46 004
and I can run gphoto from the menu and it works fine.
The workaround of running sudo gphoto / photo-app-of-choice is slightly painful, but not a showstopper. It would be nice to know why it's being created as the wrong group, though. (That seems to be the issue, and not users accidentally being left out of the "plugdev" group.)
| Neil Woolford (neil-neilwoolford) wrote : | #56 |
Regression problem with my Nikon Coolpix 990, which works under Dapper (with a long wait for the camera driver to load).
Now doesn't work at all under 7.04/Feisty release.
Camera Import starts as soon as the camera is plugged in to the USB port but I get an error message in the Import Photos window. It is
" An error occurred in the io-library ('Error updating the port settings'): Could not release interface 0 (Invalid argument)."
I appear to have the up to date udev rules, the first four lines are;
# udev rules file for libgphoto2 devices (udev >= 0.98)
#
SUBSYSTEM!="usb*", GOTO="libgphoto
ACTION!="add", GOTO="libgphoto
Running "sudo gthumb" appeared to succeed once, but once only. Subsequent attempts have not worked, giving either the error above or attempting to look for the camera at incorrect addresses on the USB bus.
| Martin Stechert (martin-stechert) wrote : | #57 |
similar bug is #67532
The BUS to SUBSYSTEM change solved my permission problem with a Nikon D70, too.
By the way: allthough accessing my camera as normal user now works files in
/sys/bus/
/sys/devices/
are still owned by root.
Confusing.
Regards,
Martin.
| Marcus Meissner (meissner) wrote : | #58 |
The devices that are opened live in /dev/bus/
| PeteJ (vendors07) wrote : | #59 |
On edgy, 6.10, with Nikon Coolpix 4600 (E4600 4600a), I got the error
Could not claim the USB device
lsusb showed my Nikon info, but that info was already in
/etc/udev/
This worked for me:
replaced
BUS!="usb*", GOTO="libgphoto
in
/etc/udev/
with
SUBSYSTEM!
| Josh Burdick (jburdick-gradient) wrote : | #60 |
I upgraded to Feisty (7.04), and it works.
| Martin Pitt (pitti) wrote : | #61 |
Edgy goes out of support in a month, and we could never quite figure out this confusing bug, which seems to work for some people and fail for others. Given that it pretty consistently works in newer releases, we won't invest effort into this any more.
| Changed in libgphoto2: | |
| status: | Incomplete → Won't Fix |


U rocks!, it works fine for me. thanks!