Elements Vulnerability Management scan node agent installation fails on Ubuntu 18.04 LTS due to errors "The following packages have unmet dependencies" and "E: Unable to correct problems, you have held broken packages" - WithSecure Community
<main>
<article class="userContent">
<h3 data-version="8" data-article="000028153" data-id="issue">Issue:</h3>
<p>I am unable to install the Elements Vulnerability Management scan node agent on Ubuntu 18.04 LTS<br></p><p>Error message:<br><br>user@host:~$ sudo apt install ./f-secure-radar-scannodeagent-installer_1.0.0-1_amd64.deb<br>Reading package lists... Done<br>Building dependency tree<br>Reading state information... Done<br>Note, selecting 'f-secure-radar-scannodeagent-installer' instead of './f-secure-radar-scannodeagent-installer_1.0.0-1_amd64.deb'<br>Some packages could not be installed. This may mean that you have<br>requested an impossible situation or if you are using the unstable<br>distribution that some required packages have not yet been created<br>or been moved out of Incoming.<br>The following information may help to resolve the situation:<br>The following packages have unmet dependencies:<br>f-secure-radar-scannodeagent-installer : Depends: aspnetcore-runtime-2.2 but it is not going to be installed<br>Depends: powershell but it is not going to be installed<br>Depends: dialog but it is not installable<br>Recommends: libx11-xcb1 but it is not going to be installed<br>Recommends: libxrandr2 but it is not going to be installed<br>Recommends: libasound2 but it is not going to be installed<br>Recommends: libpangocairo-1.0-0 but it is not going to be installed<br>Recommends: libatk1.0-0 but it is not going to be installed<br>Recommends: libatk-bridge2.0-0 but it is not going to be installed<br>Recommends: libgtk-3-0 but it is not going to be installed<br>Recommends: libnss3 but it is not going to be installed<br>Recommends: libxss1 but it is not going to be installed<br>E: Unable to correct problems, you have held broken packages.</p>
<p>Following installation sources were configured for Ubuntu via /etc/apt/sources.list:</p>
<p>deb <a rel="nofollow" href="http://archive.ubuntu.com/ubuntu" title="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> bionic main<br>deb <a rel="nofollow" href="http://archive.ubuntu.com/ubuntu" title="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> bionic-security main<br>deb <a rel="nofollow" href="http://archive.ubuntu.com/ubuntu" title="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> bionic-updates main</p>
<h3 data-id="resolution">Resolution:</h3>
<p></p><p>One of the packages required by the scan node (dotnet-runtime-deps-2.2) requires liblttng-ust0 which is only available in the <b>universe</b> ATP-repository. You can execute the following commands resolved the issue:</p>
<ul><li>$ sudo add-apt-repository universe</li><li>$ sudo apt-get update</li></ul><p>If the step above does not resolve the issue, proceed to run the following command:</p>
<ol><li>Install Powershell:</li></ol><ul><li># Update the list of packages</li></ul><div>sudo apt-get update</div>
<ul><li># Install pre-requisite packages.</li></ul><div>sudo apt-get install -y wget apt-transport-https software-properties-common</div>
<ul><li># Download the Microsoft repository GPG keys</li></ul><div>wget -q <a href="https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb" rel="nofollow">https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb</a></div>
<ul><li># Register the Microsoft repository GPG keys</li></ul><div>sudo dpkg -i packages-microsoft-prod.deb</div>
<ul><li># Update the list of products</li></ul><div>sudo apt-get update</div>
<ul><li># Enable the "universe" repositories</li></ul><div>sudo add-apt-repository universe</div>
<ul><li># Install PowerShell</li></ul><div>sudo apt-get install -y powershell</div>
<ul><li># Start PowerShell</li></ul><div>pwsh</div>
<ol start="2"><li>Install .net:</li></ol><ul><li> wget -qO- <a href="https://packages.microsoft.com/keys/microsoft.asc" rel="nofollow">https://packages.microsoft.com/keys/microsoft.asc</a> | gpg --dearmor > microsoft.asc.gpg</li><li>sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/</li><li>wget -q <a href="https://packages.microsoft.com/config/ubuntu/18.04/prod.list" rel="nofollow">https://packages.microsoft.com/config/ubuntu/18.04/prod.list</a></li><li>sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list</li><li>sudo apt-get install apt-transport-https</li><li>sudo apt-get update</li><li>sudo apt-get install aspnetcore-runtime-2.2</li></ul><p>Article no: 000028153</p>
</article>
</main>