microsoft / omi

Open Management Infrastructure
Other
360 stars 114 forks source link

Unable to upgrade vulnerable omi package on Ubuntu 18.04 #725

Closed harshita01398 closed 1 year ago

harshita01398 commented 1 year ago

Unable to upgrade omi package on flagged VMs due to below error:

The following packages will be upgraded: omi 1 upgraded, 0 newly installed, 0 to remove and 95 not upgraded. Need to get 0 B/1882 kB of archives. After this operation, 16.4 kB disk space will be freed. (Reading database ... 408934 files and directories currently installed.) Preparing to unpack .../archives/omi_1.6.9.1_amd64.deb ... Expecting SSL version (compatible with): 1.0.0 SSL version found on system: 1.1.1

Incorrect version of OMI for your system, please check SSL version. dpkg: error processing archive /var/cache/apt/archives/omi_1.6.9.1_amd64.deb (--unpack): new omi package pre-installation script subprocess returned error exit status 3 Deleting omiusers group ... groupdel: cannot remove the primary group of user 'omsagent' Deleting omi service account ... userdel: user omi is currently used by process 4430 Deleting omi group ... groupdel: cannot remove the primary group of user 'omi'


JumpingYang001 commented 1 year ago

@harshita01398 can you check if your openssl version is openssl 1.1? The omi package on ubuntu 18.04 is for openssl 1.1. https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/o/omi/

harshita01398 commented 1 year ago

@JumpingYang001 The openssl version on the system is 1.1 only

:~$ openssl version OpenSSL 1.1.1 11 Sep 2018

However, while trying to upgrade omi it gives below- Expecting SSL version (compatible with): 1.0.0 SSL version found on system: 1.1.1

Incorrect version of OMI for your system, please check SSL version. dpkg: error processing archive /var/cache/apt/archives/omi_1.6.9.1_amd64.deb (--unpack): new omi package pre-installation script subprocess returned error exit status 3

JumpingYang001 commented 1 year ago

@harshita01398 it looks strange, we cannot repro the issue on our side, BTW, we have added 1.6.10-2 in https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/o/omi/, you can re-upgrade and see if it still repro. If it still occur, you can try to run wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/o/omi/omi-1.6.10-2.ssl_110.ulinux.x64.deb;dpkg -i omi-1.6.10-2.ssl_110.ulinux.x64.deb.

harshita01398 commented 1 year ago

@JumpingYang001 It worked via wget command.

Also, is there a remediation from vulnerable version for Ubuntu16.04 ?

JumpingYang001 commented 1 year ago

@harshita01398 openssl 1.0 on Ubuntu16.04 can use this: wget https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/o/omi/omi-1.6.10-2.ssl_100.ulinux.x64.deb;dpkg -i omi-1.6.10-2.ssl_100.ulinux.x64.deb