You are not logged in.

#1 2016-10-23 02:44:54

MW2K
Member
From: NSW, Australia
Registered: 2016-10-23
Posts: 22

[SOLVED] Problems installing a .deb program

Let me preface this post by saying thank you for an excellent distro. I've migrated to BL from Mint 18, and I like the fact BL boots in a third of the time. As much as I liked Mint Cinnamon, it was becoming slower and slower with each update.

I'm getting all my apps back that I had installed in LM with one exception, Mediahuman's Youtube to MP3 app. I get an error installing it. I've tried the solutions found here --> https://forums.linuxmint.com/viewtopic.php?t=179306 but to no avail.

(Reading database ... 117164 files and directories currently installed.)
Preparing to unpack .../YouTubeToMP3.amd64.deb ...
Unpacking youtube-to-mp3 (3.8.4) over (3.8.4) ...
Setting up youtube-to-mp3 (3.8.4) ...
ootync.deb: supersh.deb script '/var/lib/dpkg/info/youtube-to-mp3.postinst' error code 127 (line 19: 'gtk-update-icon-cache /usr/share/icons/hicolor > /dev/null 2>&1')
dpkg: error processing package youtube-to-mp3 (--install):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Errors were encountered while processing:
 youtube-to-mp3

Opening /var/lib/dpkg/info/youtube-to-mp3.postinst I get:

#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as errors

# ======[ Trap Errors ]======#
set -E # let shell functions inherit ERR trap

# Trap non-normal exit signals:
# 1/HUP, 2/INT, 3/QUIT, 15/TERM, ERR
trap err_handler 1 2 3 15 ERR
function err_handler {
local exit_status=${1:-$?}
logger -s -p "syslog.err" -t "ootync.deb" "supersh.deb script '$0' error code $exit_status (line $BASH_LINENO: '$BASH_COMMAND')"
exit $exit_status
}

case "$1" in
    configure)
    	gtk-update-icon-cache /usr/share/icons/hicolor > /dev/null 2>&1
esac

exit 0

Not 100% sure what's going on here. All dependencies are good and have been met.

I appreciate that this isn't BL's problem but any help would be marvellous.

Thanks in advance.

Last edited by MW2K (2016-10-23 03:31:44)

Offline

#2 2016-10-23 02:57:33

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Problems installing a .deb program

I'm just taking a shot in the dark, but this package is *probably* going to be backported.

I'm not at my B.L box right now...What's the output of

apt-cache policy youtube-dl  

or

apt-cache policy youtube-to-mp3

Not sure what name it's using for the package.  If it's available in jessie-backports, you'll have to add the backports repo to your sources, update them, then install it.


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#3 2016-10-23 03:26:04

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Problems installing a .deb program

It looks like the package you want is youtube-dl... and you may have to install dependencies such as ffmpeg and or avconv ?

https://github.com/rg3/youtube-dl


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#4 2016-10-23 03:31:02

MW2K
Member
From: NSW, Australia
Registered: 2016-10-23
Posts: 22

Re: [SOLVED] Problems installing a .deb program

I went through the welcome script to enable backports.

apt-cache policy youtube-dl says:

peter@laptop:~$ apt-cache policy youtube-dl  
youtube-dl:
  Installed: (none)
  Candidate: 2014.08.05-1+deb8u1
  Version table:
     2016.06.25-2~bpo8+1 0
        100 http://httpredir.debian.org/debian/ jessie-backports/main amd64 Packages
     2014.08.05-1+deb8u1 0
        500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages

Second one says:

peter@laptop:~$ apt-cache policy youtube-to-mp3
youtube-to-mp3:
  Installed: 3.8.4
  Candidate: 3.8.4
  Version table:
 *** 3.8.4 0
        100 /var/lib/dpkg/status

Seeing that this said it's installed, I did some searching and found it's living in /opt/youtube-to-mp3. And it works. It was the gdebi installer that wasn't exiting cleanly, not sure what was up with that. Sorry to have led you on a chase. I've marked the thread as solved.

Last edited by MW2K (2016-10-23 03:32:11)

Offline

#5 2016-10-23 04:08:39

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] Problems installing a .deb program

No worries mate. Any work done is knowledge shared for myself and many others.


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

Board footer

Powered by FluxBB