AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 785431
Accepted
Vlastimil Burián
Vlastimil Burián
Asked: 2024-10-22 04:06:31 +0800 CST2024-10-22 04:06:31 +0800 CST 2024-10-22 04:06:31 +0800 CST

Flatpak 安装的 Calibre:找不到电子书转换命令

  • 772

在我的基于 Ubuntu 24.04 LTS(Noble)的 Linux Mint 22 Cinnamon(Wilma)上。

尽管我最初不喜欢 Calibre,但我最终还是通过 Flatpak 安装了它:

$ flatpak install flathub com.calibre_ebook.calibre

安装成功,但是shell找不到ebook-convert命令(官方手册页链接)。


选择 Flatpak 版本的理由:

此时,请在此处阅读变更日志: https: //calibre-ebook.com/whats-new

很明显,开发人员非常活跃。打包版本是 Release: 7.6 [01 Mar, 2024],而 Flatpak 版本是最新可用版本(Release: 7.20 [18 Oct, 2024])。

尽管我原本以为我只会使用电子书转换命令,但这个软件可能会让我感到惊讶,...

conversion
  • 1 1 个回答
  • 68 Views

1 个回答

  • Voted
  1. Best Answer
    Vlastimil Burián
    2024-10-22T04:06:31+08:002024-10-22T04:06:31+08:00

    解决此问题的一种方法是:

    $ sudo updatedb
    [sudo] password for vlastimil:
    
    # - No output means it is still running.
    # - Once it is finished, your prompt re-appears.
    # - It can take much time if not running fast SSDs.
    

    $ locate ebook-convert
    
    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/bin/ebook-convert
    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre/ebook-convert
    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre/bin/ebook-convert
    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre/resources/ebook-convert-complete.calibre_msgpack
    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/share/bash-completion/completions/ebook-convert
    

    您可以看到两个选项。如果您尝试这个,您会得到一个错误,但第二个可以工作:

    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre /bin/ ebook-convert:加载共享库时出错:libcalibre-launcher.so:无法打开共享对象文件:没有此文件或目录

    由于我使用的是 Bash,因此我可以简单地为正确的文件创建一个别名(即,/bin/之前没有ebook-convert像这样:

    alias ebook-convert='/var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre/ebook-convert'
    

    工作命令:

    $ ebook-convert
    
    Usage: ebook-convert input_file output_file [options]
    
    Convert an e-book from one format to another.
    
    input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command.
    
    The output e-book format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived from the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a folder and an "open e-book" (OEB) consisting of HTML files is written to that folder. These files are the files that would normally have been passed to the output plugin.
    
    After specifying the input and output file you can customize the conversion by specifying various options. The available options depend on the input and output file types. To get help on them specify the input and output file and then use the -h option.
    
    For full documentation of the conversion system see
    https://manual.calibre-ebook.com/conversion.html
    
    Whenever you pass arguments to ebook-convert that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"
    
    Options:
      --version       show program's version number and exit
    
      -h, --help      show this help message and exit
    
      --list-recipes  List builtin recipe names. You can create an e-book from a
                      builtin recipe like this: ebook-convert "Recipe Name.recipe"
                      output.epub
    
    
    Created by Kovid Goyal <[email protected]>
    

    如果您有更好的解决方案,请发布,谢谢。

    • 4

相关问题

  • 如何将矢量数字 5 位数字转换为日期格式

  • 将 PDF 转换为 1920x1080 的图像

  • 在 shell 脚本中将变量传递给日期命令时出错

  • 转换具有不常见纵横比的图像而不拉伸图像

  • 如何将子目录中的所有 .wav 文件转换为 .flac?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve