Elementary-Os

Elementary OS Luna 上的 Calibre(E 書管理)問題

  • December 18, 2014

我已經安裝 Calibre 一段時間了,它一直執行良好。現在我試圖從 Calibre 圖書館向我的 Kindle 發送一本書,但我不斷收到這條消息:

calibre, version 0.8.38
ERROR: Error: Error communicating with device

The reader has no storage card in this slot.

Traceback (most recent call last):
 File "/usr/lib/calibre/calibre/gui2/device.py", line 81, in run
   self.result = self.func(*self.args, **self.kwargs)
 File "/usr/lib/calibre/calibre/gui2/device.py", line 411, in _upload_books
   metadata=metadata, end_session=False)
 File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 252, in upload_books
   path = self._sanity_check(on_card, files)
 File "/usr/lib/calibre/calibre/devices/usbms/device.py", line 978, in _sanity_check
   raise ValueError(_('The reader has no storage card in this slot.'))
ValueError: The reader has no storage card in this slot.

無法將圖書發送到設備。我試圖刪除 Calibre 並重新安裝它,但它不起作用。

編輯 1) 在插入 kindle 並執行 lsusb 後立即我得到:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID 04f2:b307 Chicony Electronics Co., Ltd 
Bus 001 Device 007: ID 1949:0004 Lab126 Amazon Kindle 3

在執行 dmesg | 之後 我得到的尾巴:

[ 7202.714177] usb 1-1.2: new high-speed USB device number 7 using ehci_hcd 
[ 7202.829763] scsi8 : usb-storage 1-1.2:1.0
[ 7203.831695] scsi 8:0:0:0: Direct-Access     Kindle   Internal Storage 0100     PQ: 0 ANSI: 2
[ 7203.832255] sd 8:0:0:0: Attached scsi generic sg2 type 0
[ 7203.837580] sd 8:0:0:0: [sdb] 2846720 512-byte logical blocks: (1.45    GB/1.35 GiB)
[ 7203.942275] sd 8:0:0:0: [sdb] Write Protect is off
[ 7203.942287] sd 8:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[ 7204.052235] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled,  doesn't support DPO or FUA
[ 7204.323058]  sdb: sdb1
[ 7204.551835] sd 8:0:0:0: [sdb] Attached SCSI removable disk

除了文件管理器之外,lsusb 和 dmesg 消息還顯示 Kindle 安裝正確。實際的錯誤消息來自 Calibre 本身。我建議更新 Calibre。我從 Wheezy repos 安裝了我的,得到了​​ 0.8.51 - 目前版本是 2.12.0。您可以通過執行直接安裝它

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

引用自:https://unix.stackexchange.com/questions/174569