Debian package update dependencies

I am updating the Debian package through artifacts. Debian package has some dependencies but those are not installing is there any configuration do we need to apply to install those dependencies

Hi @kishan ,
Are you installing the debian packages using the dpkg -i command?
Thanks,
Prashanth

I am using artifacts to update debian package. artifact.aikaan.io and then i am choosing debian package. then upload deb file and download mender file.

Hi @kishan ,
That basically does a dpkg -i xxx.deb where xxx.deb is the file you updated . the dpkg -i command does not install dependencies and if there are any other dependencies they need to be installed separately.
It does not function like apt-get install which also takes care of dependencies.
Thanks,
Prashanth

Hi @kishan and @prashanth

When you deploy a debian package, this is what happens under the hood

a. The package (mypackage.deb) is pushed to the device
b. On the device, the agent runs a command dpkg -i mypackage.deb

If the dpkg -i fails, due to dependency failures, agent does not know how to handle it.

However, there is way out
We understand the needs of admins/dev-ops. Hence we created a programmable interface for all the installations.

a. Create a script that can install your packages along with dependency, like below. Call it as inst-deb.sh

#!/bin/bash

dpkg -i /tmp/mypackage.deb || apt-get --fix-broken install

b. Go to artifact.aikaan.io → Select Artifact type as Application → update artifact name and device type -->Destination directory as /tmp → upload file as mypackage.deb → upload script file as inst-deb.sh

c. Deploy this artifact on your device.

Thanks
C