.deb file doesnt run

New to Debian (Or Linux in general)? Ask your questions here!

.deb file doesnt run

Postby Feromi » 2020-10-15 09:07

I downloaded an executable .deb app. Instead of running it, Archive manager opens it so it wont install.
I'm using MATE
in Virtualbox, I tried it in 3 different 'buntu flavors and it ran normally once I double clicked it.
Feromi
 
Posts: 16
Joined: 2020-10-03 20:01

Re: .deb file doesnt run

Postby arochester » 2020-10-15 09:21

Perhaps the easiest way to install a .deb is to first install gdebi

As Root
Code: Select all
apt install gdebi


Then RIGHT click on the downloaded file and choose Install with Gdebi

You might look at 8.7 Installing external “.deb” packages on https://lescahiersdudebutant.arpinux.or ... b-packages
arochester
 
Posts: 1750
Joined: 2010-12-07 19:55

Re: .deb file doesnt run

Postby Feromi » 2020-10-15 09:29

Thank you, that worked!
Feromi
 
Posts: 16
Joined: 2020-10-03 20:01

Re: .deb file doesnt run

Postby Head_on_a_Stick » 2020-10-15 14:54

Note that apt(8) can install .deb packages by itself:
Code: Select all
# apt install /full/path/to/example.deb
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: .deb file doesnt run

Postby metreo » 2020-10-16 13:09

That's interesting, is there any difference to using apt instead of dpkg?
User avatar
metreo
 
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

Postby Head_on_a_Stick » 2020-10-16 14:25

metreo wrote:is there any difference to using apt instead of dpkg?

Any dependencies will be automatically installed with apt(8).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: .deb file doesnt run

Postby metreo » 2020-10-16 16:08

Oh well, that is quite a hassle with dkpg sometimes!
User avatar
metreo
 
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

Postby Head_on_a_Stick » 2020-10-16 19:38

Not really:
Code: Select all
# apt install -f
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: .deb file doesnt run

Postby metreo » 2020-10-17 12:41

Not really about what?
User avatar
metreo
 
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

Postby Head_on_a_Stick » 2020-10-17 13:15

If any dependencies are unsatisfied after installing a .deb with dpkg then all that is needed to install them is the command I posted above.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: .deb file doesnt run

Postby stevepusser » 2020-10-17 17:43

BIG BIG difference is that apt checks if dependencies can be satisfied first, and will stop if they can't. Gdebi and other GUI installers work pretty much the same.

Dpkg doesn't check at all, and will happily try to install incompatible debs, such as those from unstable or Ubuntu, and get halfway before failing, leaving you to manually clean up the mess. Not my cuppa.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 12083
Joined: 2009-10-06 05:53

Re: .deb file doesnt run

Postby metreo » 2020-10-17 17:58

I think dpkg is better for doing system analysis regarding dependencies and how to modify them though?
User avatar
metreo
 
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

Postby Head_on_a_Stick » 2020-10-18 09:00

stevepusser wrote:Dpkg doesn't check at all, and will happily try to install incompatible debs, such as those from unstable or Ubuntu, and get halfway before failing, leaving you to manually clean up the mess.

Running 'apt install -f' will "clean up the mess" and remove the incompatible package.

metreo wrote:I think dpkg is better for doing system analysis regarding dependencies and how to modify them though?

dpkg(1) can be useful when the dependency chain is b0rked because it's a lower-level tool than APT: https://www.debian.org/doc/manuals/debi ... kg_command
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable