You are not logged in.

#1 2019-10-05 16:36:33

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Gdebi and dpkg won't install non-free packages in Debian 10

Hi. I've just installed Debian 10.1 and to be honest I had a couple of problems with the installation, although they're mostly sorted now and are probably to do with using a 2006 computer (it wouldn't pick up my network card automatically, for a start).

One thing I did find though was that, unlike in earlier versions of Debian Stable such as Jessie and Stretch, gdebi and dpkg won't install non-free packages in Buster. You have to use "apt install <path to file>" for that.

Anyone else had the same issue, and found a solution for it?

Thanks in advance,

CP .

Last edited by Colonel Panic (2019-10-05 16:41:59)

Online

#2 2019-10-05 16:38:10

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

I've found a discussion here on the Debian forums which shows that I'm not alone in having had this issue;

http://forums.debian.net/viewtopic.php?f=10&t=143249

Last edited by Colonel Panic (2019-10-05 16:39:41)

Online

#3 2019-10-07 08:40:45

ohnonot
...again
Registered: 2015-09-29
Posts: 3,998
Website

Re: Gdebi and dpkg won't install non-free packages in Debian 10

^ according to that it's nothing to do with non-free packages, but with wayland/gnome?

Offline

#4 2019-10-08 10:00:47

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

ohnonot wrote:

^ according to that it's nothing to do with non-free packages, but with wayland/gnome?

Thanks for replying ohnonot. You could be right; I'll try downloading some open source debian (FSF-approved) packages and see if they're any better.

Debian 10 didn't set up a sources.list file in /etc/apt when I installed it (difficulties in recognising my network card) and so I've had to try to figure it all out myself. I just noticed that the non-free ones weren't installing and assumed they weren't installing because they weren't free.

BTW, the version of Buster I've installed has cinnamon as its window manager rather than Gnome.

Last edited by Colonel Panic (2019-10-08 10:10:03)

Online

#5 2019-10-09 06:58:56

ohnonot
...again
Registered: 2015-09-29
Posts: 3,998
Website

Re: Gdebi and dpkg won't install non-free packages in Debian 10

^ well, are you running it on wayland?

Offline

#6 2019-10-09 08:18:42

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

It might be, I don't know. I didn't realise that Buster came with Wayland until you mentioned it; I thought it was just a Ubuntu thing.

Last edited by Colonel Panic (2019-10-09 09:04:13)

Online

#7 2019-10-09 11:12:35

ceeslans
Member
Registered: 2015-09-30
Posts: 33

Re: Gdebi and dpkg won't install non-free packages in Debian 10

I noticed similar behaviour where gdebi was closing before asking root password.
A solution was offered on debian-based SolydXK forum: https://forums.solydxk.com/viewtopic.php?t=7531
Replaced gdebi and gdebi-core with SolyXK's updated version - and was able to install oceanaudio and its required dependencies for debian 10.

scrot_cl_20191009.th.png

Offline

#8 2019-10-09 17:44:15

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

ceeslans wrote:

I noticed similar behaviour where gdebi was closing before asking root password.
A solution was offered on debian-based SolydXK forum: https://forums.solydxk.com/viewtopic.php?t=7531
Replaced gdebi and gdebi-core with SolyXK's updated version - and was able to install oceanaudio and its required dependencies for debian 10.

https://cdn.scrot.moe/images/2019/10/09/scrot_cl_20191009.th.png

Thanks! I'll have a look at that suggestion. I used an earlier version of SolydX (based on Stretch, I think) and it worked very well but the colour scheme, which used a lot of orange, wasn't really to my taste. That having been said, it's definitely one of the better Debian-based distros out there.

Last edited by Colonel Panic (2019-10-09 17:44:42)

Online

#9 2019-10-15 19:49:23

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

Sorry, I have to admit defeat here. I downloaded the three biggest files in the SolydX directory; 
                                     -   
[   ] gdebi-core_0.9.5.7+nmu3xk2_all.deb 2019-05-28 21:09  127K 
[   ] gdebi_0.9.5.7+nmu3xk2.dsc          2019-05-28 21:09  810   
[   ] gdebi_0.9.5.7+nmu3xk2.tar.xz       2019-05-28 21:09  198K 
[   ] gdebi_0.9.5.7+nmu3xk2_all.deb 

but I couldn't install the two .deb files without first installing gdebi_0.9.5.7+nmu3xk2.tar.xz, and the last one doesn't have a file that I can build a makefile from, so I've had to draw a blank. 

Since apt install works to install any deb files I need (or has done so far anyway), I think my best bet is to just leave it until Debian issues an official update of gdebi, which it probably will soon, and then just update it as part of a general system update (which I should be doing regularly in any case).

Thanks for your help anyway,

CP .

Last edited by Colonel Panic (2019-10-15 20:01:57)

Online

#10 2019-10-16 07:07:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: Gdebi and dpkg won't install non-free packages in Debian 10

TL:DR See bottom of post for a fix.

I hit this same (I think) issue with gdebi. Working from Thunar, it opens a .deb file fine, but when you click the "install" button, instead of putting up a pkexec password window it crashes, leaving a creepy error message in ~/.xsession-errors:

Refusing to render service to dead parents.

There is this Debian bug, but with no response so far.

Googling on the dead parents message only brings a few results eg this, but the message is that when pkexec is invoked it checks the PID of its parent process, and if it's 1 (ie init) then it (correctly) errors out. The bug is in whatever is invoking pkexec. Gdebi starts up with normal user permissions, then invokes pkexec when needed to do system work. (This is much more secure than running the whole app as root, as some people seemed to be advocating.)

To check the parent thing: in a terminal, run:

gdebi-gtk your_deb_file.deb

and it works fine because the terminal is providing the parent process. Gparted and synaptic avoid the issue by providing wrapper scripts. Gdebi could do the same, but in fact all that is needed is to add an extra sh process as parent.

QUICK FIX:

cp /usr/share/applications/gdebi.desktop ~/.local/share/applications

Now find the Exec= line in your local copy of gdebi.desktop (around #155) and edit it to

Exec=sh -c "gdebi-gtk %f"

It Worked For Me™.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#11 2019-10-16 18:21:28

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

Thanks John. Sadly it didn't work for me; I got this error message;

dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

Last edited by Colonel Panic (2019-10-16 18:21:51)

Online

#12 Yesterday 06:49:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: Gdebi and dpkg won't install non-free packages in Debian 10

What exactly did you do to see those error messages, and where did you see them? Also, have you removed all those non-Debian packages and gone back to the standard debian gdebi?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#13 Yesterday 08:03:38

Colonel Panic
Member
Registered: 2018-11-13
Posts: 108

Re: Gdebi and dpkg won't install non-free packages in Debian 10

Hi John,

I did what you told me to do, but unfortunately with the same result.

cp /usr/share/applications/gdebi.desktop ~/.local/share/applications

and changed the line in gdebi.desktop to

Exec=sh -c "gdebi-gtk %f"

I uininstalled the SolydX gdebi packages, and reinstalled the originall, debian ones.

I saw the error messages in the terminal where I ran

gdebi-gtk your_deb_file.deb

Thunar is not installed in my system.

Many thanks for your help but it might be better to wait until the bug in Debian's gdebi package is fixed before trying to tackle this again. Particularly since I've now discovered another problem with Debian 10.1 - I've also tried and failed to install gparted in it.

Regards,

CP .

Last edited by Colonel Panic (Yesterday 18:30:27)

Online

#14 Today 03:29:11

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,834
Website

Re: Gdebi and dpkg won't install non-free packages in Debian 10

gdebi-gtk works fine for me in Debian 10.
gparted is installed in BL Lithium (Debian 10) by default, and works fine for me.

I think you have damaged your system.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

Board footer

Powered by FluxBB