在 64 位 Ubuntu 上连接相机时出现“未指定错误”

Ebo*_*ike 8 64-bit camera ptp

我有一台佳能 40D,从 10.04 到 12.04,它一直在 32 位 Ubuntu 上运行良好。但是,我不久前切换到 64 位 12.04,从那时起,连接相机只会出现一个简单的对话框:

Unable to mount Canon Digital Camera
Error initializing camera: -1: Unspecified error
Run Code Online (Sandbox Code Playgroud)

此问题在 12.10 和最新的 13.04 版本中仍然存在。

系统日志除了

kernel: [12089.871412] usb 3-1: new high-speed USB device number 3 using xhci_hcd
mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
mtp-probe: bus: 3, device: 3 was not an MTP device
kernel: [12453.142322] usb 3-1: USB disconnect, device number 3
Run Code Online (Sandbox Code Playgroud)

我在启动板上看到了一些关于此的随机错误,但没有与它直接相关的错误。这似乎是一个如此明显的问题,以至于我认为我做错了什么。让相机在 64 位 Ubuntu 上工作的正确方法是什么?

小智 6

我在使用佳能 EOS 400D 的 Ubuntu 12.10(64 位)上遇到了同样的问题。我发现有关这种情况的报告仅在通过 USB3.0 端口连接相机时发生,但在将电缆插入 USB2.0 端口时不会发生;但是,此解决方法不适用于使用 Asus N76VM 笔记本电脑的我。也许它对你有用。


Ebo*_*ike 2

Blizzara 的回答让我找到了一个正确的解决方案 - gvfs-gphoto2-volume-monitor 正在干扰。我尝试杀死它,但它总是回来。

于是我拿起大锤,像这样敲打他的头:

sudo chmod 644 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor 
Run Code Online (Sandbox Code Playgroud)

就这样完成了!(当然,我确实必须执行ps ax | grep gvfs-gphoto一次并终止已经在运行的进程。) Shotwell 现在可以像魅力一样下载我的照片!我确信这个问题有更好的解决方案,更不用说我们一开始就不应该遇到这个问题,但我现在就先解决这个问题。

顺便说一句,既然暴雪引导我做到了这一点,B 的回答值得投票。