Trouble installing OS Agent

I’m trying to install OS Agent to remove the error message in supervisor. I’m following the guide on this page and using SSH & Web Terminal to issue the commands. But it won’t let me use the “dpkg” command, I just get “command not found”

➜  ~ sudo wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_x86_64.deb                                                          
--2021-11-09 00:19:16--  https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_x86_64.deb
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/346652840/8e31ee90-e53f-4d5c-bd07-e967851edfb8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211109T061916Z&X-Amz-Expires=300&X-Amz-Signature=1182acee22f02a70566e3c865de4cfeb500522dc8363602c4c645262cf69b2a6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=346652840&response-content-disposition=attachment%3B%20filename%3Dos-agent_1.2.2_linux_x86_64.deb&response-content-type=application%2Foctet-stream [following]
--2021-11-09 00:19:16--  https://github-releases.githubusercontent.com/346652840/8e31ee90-e53f-4d5c-bd07-e967851edfb8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211109T061916Z&X-Amz-Expires=300&X-Amz-Signature=1182acee22f02a70566e3c865de4cfeb500522dc8363602c4c645262cf69b2a6&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=346652840&response-content-disposition=attachment%3B%20filename%3Dos-agent_1.2.2_linux_x86_64.deb&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.110.154, 185.199.111.154, 185.199.108.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.110.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2610480 (2.5M) [application/octet-stream]
Saving to: 'os-agent_1.2.2_linux_x86_64.deb'

os-agent_1.2.2_linux_x86_64.deb                           100%[===================================================================================================================================>]   2.49M  --.-KB/s    in 0.1s    

2021-11-09 00:19:16 (24.0 MB/s) - 'os-agent_1.2.2_linux_x86_64.deb' saved [2610480/2610480]

➜  ~ sudo dpkg -i os-agent_1.2.2_linux_x86_64.deb                                                             
sudo: dpkg: command not found

Any idea how to fix this?

What OS are you using?

Operating System
Debian GNU/Linux 10 (buster)

Docker version
19.03.13

Debian will require for you to install sudo in some cases. Since you dont have sudo, dpkg will also did not work. If you are running as root try removing sudo or better yet install sudo apt install sudo

Sudo appears to be present. But I don’t think dpkg is available in ssh & web terminal.

Either

  1. use your keyboard & monitor; or
  2. Use the ssh you set up in debian (if you did).

The installation occurs on the host OS, not inside HA.
Bottom-line: If you have a “dpkg” not found on Debian, you’re not a the right place :wink:

Oh and update to debian 11 :slight_smile:

Thanks for the help guys. I didn’t have OpenSSH installed on my server like I thought. That’s why I couldn’t get in using Secure Shell. I got OpenSSH installed, got in, and add OS-Agent. Now working on upgrade to Debain 11.

1 Like