Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

.deb file doesnt run

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Feromi
Posts: 18
Joined: 2020-10-03 20:01
Has thanked: 1 time

.deb file doesnt run

#1 Post by Feromi »

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.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: .deb file doesnt run

#2 Post by arochester »

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

Feromi
Posts: 18
Joined: 2020-10-03 20:01
Has thanked: 1 time

Re: .deb file doesnt run

#3 Post by Feromi »

Thank you, that worked!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: .deb file doesnt run

#4 Post by Head_on_a_Stick »

Note that apt(8) can install .deb packages by itself:

Code: Select all

# apt install /full/path/to/example.deb
deadbang

User avatar
metreo
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

#5 Post by metreo »

That's interesting, is there any difference to using apt instead of dpkg?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: .deb file doesnt run

#6 Post by Head_on_a_Stick »

metreo wrote:is there any difference to using apt instead of dpkg?
Any dependencies will be automatically installed with apt(8).
deadbang

User avatar
metreo
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

#7 Post by metreo »

Oh well, that is quite a hassle with dkpg sometimes!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: .deb file doesnt run

#8 Post by Head_on_a_Stick »

Not really:

Code: Select all

# apt install -f
deadbang

User avatar
metreo
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

#9 Post by metreo »

Not really about what?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: .deb file doesnt run

#10 Post by Head_on_a_Stick »

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.
deadbang

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: .deb file doesnt run

#11 Post by stevepusser »

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
metreo
Posts: 20
Joined: 2020-10-08 19:15

Re: .deb file doesnt run

#12 Post by metreo »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: .deb file doesnt run

#13 Post by Head_on_a_Stick »

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
deadbang

Post Reply