AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / unix / Perguntas / 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

Calibre instalado no Flatpak: não é possível encontrar o comando ebook-convert

  • 772

No meu Linux Mint 22 Cinnamon (Wilma) baseado no Ubuntu 24.04 LTS (Noble).

Acabei instalando o Calibre apesar da minha antipatia inicial, via Flatpak:

$ flatpak install flathub com.calibre_ebook.calibre

A instalação foi bem-sucedida, mas o shell não consegue encontrar o ebook-convertcomando ( link da página do manual oficial ).


Motivo da escolha da versão Flatpak:

Neste momento, lendo o changelog aqui: https://calibre-ebook.com/whats-new

É óbvio que o(s) desenvolvedor(es) são muito ativos. A versão empacotada é Release: 7.6 [01 Mar, 2024], enquanto a versão Flatpak é a mais recente disponível (Release: 7.20 [18 Out, 2024]).

Apesar de eu ter pensado inicialmente que usaria apenas o comando de conversão de e-books, este software pode me surpreender .

conversion
  • 1 1 respostas
  • 68 Views

1 respostas

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

    Uma maneira de fazer isso:

    $ 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
    

    Lá você pode ver duas opções. Se você tentar esta, você obtém um erro, mas a segunda funciona:

    /var/lib/flatpak/app/com.calibre_ebook.calibre/x86_64/stable/3ffcc2f6b264f6549554e88892c32eb48cd83386b8629e839bb693d2010aeaa6/files/lib/calibre /bin/ ebook-convert: erro ao carregar bibliotecas compartilhadas: libcalibre-launcher.so: não é possível abrir o arquivo de objeto compartilhado : Nenhum arquivo ou diretório desse tipo

    Como estou usando Bash, posso simplesmente criar um alias para o arquivo correto (ou seja, sem /bin/antes ebook-convert) assim:

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

    Comando de trabalho:

    $ 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]>
    

    Se você tiver alguma solução melhor, por favor poste, obrigado.

    • 4

relate perguntas

  • Como converter o número de 5 dígitos do número do vetor em formato de data

  • Converter PDF em imagens em 1920x1080

  • Erro ao passar uma variável para o comando de data em um script de shell

  • Converter imagem com proporção incomum sem esticar a imagem

  • Como converter todos os arquivos .wav em subdiretórios para .flac?

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

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

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve