[DEB] Debian package

Support for Ubuntu and other Desktop Linux distributions
User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 09 Feb 2019, 15:35

Maybe just a temporary issue of some kind? The repository files are all there as far as I can see, and fetch works for the URLs that seem to have an issue in your log:
https://get.filebot.net/deb/dists/
:idea: Please read the FAQ and How to Request Help.

mrpengy
Posts: 1
Joined: 11 Feb 2019, 18:36

Re: [DEB] Debian package

Post by mrpengy » 11 Feb 2019, 18:40

Just curious, will you put an arm package in the Deb repo? Would make upgrading much easier.

Thanks!

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 12 Feb 2019, 04:36

Yes, there will be a noarch package:
viewtopic.php?f=6&t=9535
:idea: Please read the FAQ and How to Request Help.

b2un0
Posts: 10
Joined: 09 Jun 2014, 10:41

Re: [DEB] Debian package

Post by b2un0 » 10 May 2019, 14:14

the apt repo is still broken

Code: Select all

W: GPG error: https://get.filebot.net/deb universal Release: Detached signature file '/var/lib/apt/lists/partial/get.filebot.net_deb_dists_universal_Release.gpg' is in unsupported binary format
tested on debian stretch and buster, nothing works.

Failed > deb https://get.filebot.net/deb/ universal main
Failed > deb [arch=amd64] https://get.filebot.net/deb/ stable main

they key is installed

Code: Select all

[email protected]:/etc/apt# apt-key adv --fetch-keys https://get.filebot.net/filebot/KEYS
Executing: /tmp/apt-key-gpghome.3sjEk5Kz9e/gpg.1.sh --fetch-keys https://get.filebot.net/filebot/KEYS
gpg: requesting key from 'https://get.filebot.net/filebot/KEYS'
gpg: key 4E402EBF7C3C6A71: 4 signatures not checked due to missing keys
gpg: key 4E402EBF7C3C6A71: "Reinhard Pointner <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 10 May 2019, 18:09

Works for me:

Code: Select all

Hit:4 https://get.filebot.net/deb stable Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
Tested on Ubuntu. Not sure if there's something significantly different on Debian.


EDIT:

There seems to be a recent change that requires ascii-armoured signature files.
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 11 Nov 2019, 10:57

Hello Reinhard,

I am currently on...

Code: Select all

FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-02-26 (r552)
Groovy: 2.5.1
JRE: OpenJDK Runtime Environment 1.8.0_222
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 18 MB Used Memory
OS: Linux (amd64) Ubuntu 16.04.6 LTS
HW: Linux nas 4.15.0-15-generic #16~16.04.1-Ubuntu SMP Thu Apr 5 12:19:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/paully/Downloads/filebot/data/paully
Package: TAR
License: FileBot License P8xxxxx3 (Valid-Until: 2020-07-31)
------------------- UPDATE AVAILABLE: FileBot 4.8.5 (r6224) --------------------
Done ヾ(@⌒ー⌒@)ノ
...what's my best option for upgrading to 4.8.5 and Java 11?

Thanks,

Paully

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 11 Nov 2019, 16:41

rednoah wrote:
13 Jul 2018, 12:00
The installer/deb.sh will add the repository and install FileBot for you:

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
Have you tried this yet?


:idea: Presumably, on Ubuntu 16.04, this will install Java 8 and and the Java 8 build of FileBot 4.8.5, since Java 11 / JavaFX 11 is only available for newer platforms.
:idea: Please read the FAQ and How to Request Help.

nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker » 18 Nov 2019, 11:09

Hello everyone, I have a quick question : I'm using Filebot on a Ubuntu headless server (16.04) and the 4.7.9 was working fine with openjdk-8-jre-headless. The latest .deb (4.8.5) required though the full openjdk-8-jre and pulled over 200MB of libs.
Is there any good reason behind it or is it just a package error?
Regards

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 18 Nov 2019, 12:47

libjna is the only required package dependency:

Code: Select all

Depends: libjna-java
Recommends: default-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, unrar | unrar-free
Enhances: nautilus-actions

The deb.sh installer script will however install all recommended dependencies, to make sure everything works out of the box regardless of your specific use case:

Code: Select all

sudo apt-get install --install-recommends -y filebot
:idea: Please read the FAQ and How to Request Help.

nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker » 18 Nov 2019, 13:12

Hmm that's strange, I swear the openjdk-jre8 (and the libs) were listed as a dependency... Any possible mistake on my side?

PS : I didn't use any script, just downloaded the .deb and dpkg -i

PPS : the libjna is the problem, it recommends the default-jre (but not headless)

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 18 Nov 2019, 13:26

You should be able to install everything like so:

Code: Select all

sudo apt-get install --no-install-recommends -y filebot
That should only install the lib-jna and filebot packages with bare minimum dependencies.
:idea: Please read the FAQ and How to Request Help.

nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker » 23 Nov 2019, 01:09

So I gave the repo a try, but failed :

Code: Select all

[email protected]:~# apt-key adv --fetch-keys "https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub"
Executing: /tmp/tmp.kuHJZvQopu/gpg.1.sh --fetch-keys
https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
gpgkeys: protocol `https' not supported
gpg: no handler for keyserver scheme `https'
gpg: WARNING: unable to fetch URI https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub: keyserver error

Code: Select all

[email protected]:~# wget https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
--2019-11-23 02:03:01--  https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4650 (4.5K) [text/plain]
Saving to: ‘maintainer.pub’

maintainer.pub           100%[===============================>]   4.54K  --.-KB/s    in 0s      

2019-11-23 02:03:01 (17.9 MB/s) - ‘maintainer.pub’ saved [4650/4650]

[email protected]:~# apt-key adv maintainer.pub 
Executing: /tmp/tmp.5dmHdLUYIf/gpg.1.sh maintainer.pub
pub  4096R/7C3C6A71 2017-04-13 Reinhard Pointner <[email protected]>

Hmmm looks like it worked. Next step, add the repo and apt update :

Code: Select all

[email protected]:~# apt update
Ign:9 https://get.filebot.net/deb universal-jdk8 InRelease
Get:10 https://get.filebot.net/deb universal-jdk8 Release [1,165 B]
Get:11 https://get.filebot.net/deb universal-jdk8 Release.gpg [862 B]
Ign:11 https://get.filebot.net/deb universal-jdk8 Release.gpg
Reading package lists... Done    
W: GPG error: https://get.filebot.net/deb universal-jdk8 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E402EBF7C3C6A71
E: The repository 'https://get.filebot.net/deb universal-jdk8 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Looks like I have a problem with the signature. What did I do wrong?
Regards

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 23 Nov 2019, 07:07

1.
What version of Ubuntu are you using?

2.
Did you use the install script which pre-installs the necessary dependencies, such as gnupg-curl?
https://github.com/filebot/plugins/blob ... deb.sh#L13

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 23 Nov 2019, 14:15

I am currently on FileBot 4.8.2 using the .deb package by hand (a long time ago.)

I've just seen this latest post and out of interest I went through the github script step-by-step with the --simulate option to see what would happen, because this is a headless server with no gui needed.

All was going well but then the last command WAS going to pull in 90 packages which I really don't need :-(

Code: Select all

sudo apt-get --simulate install --install-recommends filebot
So, I changed the install command line to...

Code: Select all

sudo apt-get --simulate install --no-install-recommends filebot
...which was a little better at 45 packages, but those were still loads of X Server related packages.

Is there any way to stop it installing ANY of those?

:-(

Thanks,

Paully

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 23 Nov 2019, 14:33

You can always use the portable and then figure out dependencies manually if disk space is an issue:
viewtopic.php?f=11&t=6057


That being said, according to the package metadata, libjna-java is the only hard dependency, and everything else is optional:

Code: Select all

Depends: libjna-java
Recommends: default-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, unrar | unrar-free
Enhances: nautilus-actions
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 23 Nov 2019, 14:53

Space is not a problem, I'm just trying to keep my system lean and mean with as few packages as possible installed and needing to be updated ;-)

OK, so the Beta 4.9.0 is an option with just that 1 dependency, and it seems to only install 2 packages when I simulate...

Code: Select all

$ sudo apt-get --simulate install libjna-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libjna-jni
Suggested packages:
  libjna-java-doc
The following NEW packages will be installed
  libjna-java libjna-jni
0 to upgrade, 2 to newly install, 0 to remove and 4 not to upgrade.
Inst libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Inst libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Conf libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Conf libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
...so are you saying that if I install the Beta 4.9.0 deb package, without the 75 recommended packages, my server will not start trying to install them at a later date?

Is there a way to test that?

I guess I could press CTRL+C if it kicks off :-)

Regards,

Paully

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 23 Nov 2019, 14:54

Also, is it best to remove 4.8.2 before I install the Beta 4.9.0 for cleanliness?

User avatar
rednoah
The Source
Posts: 16925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah » 23 Nov 2019, 15:54

IDK. If you don't want surprised, then you can just not use the apt repository and manage things manually. Regardless, new version will override the old version, apt takes care of that, so no need to worry about cleanliness.
:idea: Please read the FAQ and How to Request Help.

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 26 Nov 2019, 17:32

Ooooo, this could be the winning command line, which only installs 3 packages!

Code: Select all

$ sudo apt -s --no-install-recommends install /home/paully/Downloads/filebot/FileBot_4.9.0_universal-jdk8.deb

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'filebot' instead of '/home/paully/Downloads/filebot/FileBot_4.9.0_universal-jdk8.deb'
The following additional packages will be installed:
  libjna-java libjna-jni
Suggested packages:
  libjna-java-doc
Recommended packages:
  openjdk-8-jre openjfx libchromaprint-tools p7zip-full unrar | unrar-free
The following NEW packages will be installed
  filebot libjna-java libjna-jni
0 to upgrade, 3 to newly install, 0 to remove and 6 not to upgrade.
Inst libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Inst libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Inst filebot (4.9.0 local-deb [all])
Conf libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Conf libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Conf filebot (4.9.0 local-deb [all])
...will filebot work without all the recommended packages?!

Also, I am only running OpenJDK Java v8...

Code: Select all

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Am I good to go?!

:-)

Paully

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 26 Nov 2019, 17:54

OK, so I went for it.

Turns out my current filebot was just a symlink to the TAR version, which made things easier.

Here are my upgrade / install commands as root...

Code: Select all

$ apt install p7zip-full unrar
$ apt --no-install-recommends install FileBot_4.9.0_universal-jdk8.deb
So, I now have this...

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.9.0 (r6899)
JNA Native: 4.0.1
MediaInfo: 19.09
p7zip: p7zip Version 9.20 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-11-16 (r603)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 1.8.0_222
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 3.7 GB Max Memory / 33 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.15.0-15-generic #16~16.04.1-Ubuntu SMP Thu Apr 5 12:19:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 106 GB | fuse.sshfs [/home/paully/Downloads/seedbox2] @ 990 GB
DATA: /home/paully/.filebot
Package: DEB
License: FileBot License xxxxxxxx (Valid-Until: 2020-07-31)
Done ヾ(@⌒ー⌒@)ノ
...cannot wait to try it out!

Fingers crossed!

Thanks!

Regards,

Paully

plittlefield
Posts: 90
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield » 27 Nov 2019, 09:52

Yep, all good :-)

With 4.9.0 the process seems to be faster and better at matching titles.

Thanks for your help and keep up the great work on this time-saving gem.

Paully

Post Reply