unifios-utilities icon indicating copy to clipboard operation
unifios-utilities copied to clipboard

Unable to install package on non UDM machine

Open hugokernel opened this issue 2 years ago • 1 comments

Describe the bug Running dpkg command to install the udm-boot generates error on latest unifi os.

To Reproduce

# unifi-os shell
root@ubnt:~# curl -Lo udm-boot_latest.deb https://github.com/unifi-utilities/unifios-utilities/releases/download/1.0.5-fix/udm-boot_1.0.5_all.deb
root@ubnt:~# dpkg -i udm-boot_1.0.5_all.deb

Expected behavior Successful installation

Screenshots N/A

UDM Information

  • Dream Machine
  • Firmware Version: 1.12.33

Additional context

Related to #343 (See https://github.com/unifi-utilities/unifios-utilities/issues/343#issuecomment-1090015291 and https://github.com/unifi-utilities/unifios-utilities/issues/343#issuecomment-1242559306)

# ubnt-device-info firmware
1.12.33#
root@ubnt:~# md5sum udm-boot_latest.deb
cf074321756a464ee6d0fa4d47eb9714  udm-boot_latest.deb
root@ubnt:~# dpkg -i udm-boot_latest.deb
(Reading database ... 29961 files and directories currently installed.)
Preparing to unpack udm-boot_latest.deb ...
dpkg: error processing archive udm-boot_latest.deb (--install):
 subprocess new pre-installation script returned error exit status 255
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 255
#-> ubnt-dpkg-cache install
removing /data/dpkg-cache/stretch/packages/udm-boot_1.0.5_all.deb ... done
udm-boot: action=install, package=/data/dpkg-cache/stretch/packages/udm-boot_1.0.5_all.deb mark=manual
<-# ubnt-dpkg-cache install
Errors were encountered while processing:
 udm-boot_latest.deb

hugokernel avatar Jan 30 '23 15:01 hugokernel

This is what i get when trying to install/upgrade the deb package (Version 1.0.6) on a UDM Pro.

root@ubnt:/# dpkg -i udm-boot_1.0.6_all.deb
dpkg-deb: error: archive 'udm-boot_1.0.6_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive udm-boot_1.0.6_all.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
#-> ubnt-dpkg-cache install
<-# ubnt-dpkg-cache install
Errors were encountered while processing:
 udm-boot_1.0.6_all.deb
root@ubnt:/# md5sum udm-boot_1.0.6_all.deb
7060c0c7e6e897943bfc702c54208a6d  udm-boot_1.0.6_all.deb
root@ubnt:/# sha256sum udm-boot_1.0.6_all.deb
5d15ddec4fee824a5f9d18bbedbcedfc23816f4e78d467d3416045a6e733b49b  udm-boot_1.0.6_all.deb

(Also: the certificate for https://udm-boot.boostchicken.dev is expired, so I downloaded the deb from github.)

Edit: this comments seems to fit better in the context of the recent issue #472

p-schneider avatar Jan 31 '23 11:01 p-schneider