-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
enrollmentEnrollment related issueEnrollment related issue🐛 bugSomething isn't workingSomething isn't working
Description
root@ubuntuvm:/home/testuser# curl -sk https://tls.dc0.osctrl.com/e11633cd-77b5-455e-8ebf-9fbcf3a37b73/27CpAjwj7wNfIM2QBEBeas8jWxI/enroll.sh | sh
sh: 25: dpkg-architecture: not found
[+] OS=linux
[+] _SECRET_FILE=/etc/osquery/osctrl-dev.secret
[+] _FLAGS=/etc/osquery/osquery.flags
[+] _CERT=/etc/osquery/certs/osctrl-dev.crt
[+] IMPORTANT! If osquery is not installed, it will be installed.
[+] [+] osctrl-dev needs osquery
[+] Installing osquery for linux
[+] Installing osquery in Linux
[+] DEB based system detected
##O=# #
dpkg-deb: error: '/tmp/osquery_5.2.2-1.linux_.deb' is not a Debian format archive
dpkg: error processing archive /tmp/osquery_5.2.2-1.linux_.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/tmp/osquery_5.2.2-1.linux_.deb
[+] Stopping osqueryd
Failed to stop osqueryd.service: Unit osqueryd.service not loaded.
[!] Fail to enroll osctrl-dev node
root@ubuntuvm:/home/testuser#
Solution use dpkg
command:
dpkg --print-architecture
root@ubuntuvm:/home/testuser# dpkg --print-architecture
amd64
enroll.sh
FROM:
_DEB_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)
TO:
_DEB_ARCH=$(dpkg --print-architecture)
Metadata
Metadata
Assignees
Labels
enrollmentEnrollment related issueEnrollment related issue🐛 bugSomething isn't workingSomething isn't working