Similar problems to https://unix.stackexchange.com/questions/235795/use-dpkg-in-busybox
Hi! I was excited to find that dpkg came with newer versions of busybox, so I set to work installing a package. I collected all the dependencies for apt, and ran:
dpkg -i *.deb
Unfortunately, there was an error!
dpkg: Unable to open /var/lib/dpkg/status: no such file or directory
Ok, I dealt with that, creating directories /var/lib/dpkg, then making empty file /var/lib/dpkg/status. Then I tried again:
dpkg -i *.deb dpkg: package libtasn1-6 pre-depends on multiarch-support, which is not installed or flagged to be installed
So I tried to install multiarch-support, but it depends on libc6, which depends on libgcc, which depends on multiarch-support. I also tried to install them all on the same line, but same dependency error happened.
So I tried to install libgcc with --force-depends
, but now it complains about not having /var/lib/dpkg/info/libgcc1.md5sums, so I create info directory, it gets a little farther, but then:
sh: /var/lib/dpkg/info/libgcc1.postinst: No such file or directory dpkg: postinst failed, error code 256
What am I missing? Is there some way to set up busybox's dpkg so that it can actually install packages?
dpkg
running on Android? What device, android version and ROM? – ddnomad Mar 31 '17 at 18:57dpkg
andrpm
are included with busybox, but device is Samsung Galaxy Tab 2, Unlegacy Android 6.01(Marshmallow) – Panda0nEarth Mar 31 '17 at 18:59dpkg
to behave correctly. It misses some libs which probably means that it was either broken installation or the structure of directories of Android simply is not compatible with it. – ddnomad Mar 31 '17 at 19:13