Netdata Community

Unmet dependencies on some servers

Hi,
I’m trying to install netadata and on some servers the installation stops because of unmet dependencies.
The following packages have unmet dependencies:

 g++ : Depends: g++-9 (>= 9.3.0-3~) but it is not going to be installed
 libtool : Depends: libc6-dev but it is not going to be installed or
                    libc-dev
 uuid-dev : Depends: libc6-dev but it is not going to be installed or
                     libc-dev
 zlib1g-dev : Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Unable to correct problems, you have held broken packages.

It’s strange because it works on other servers with the same Ubuntu version. And both packages are installed:

root@localhost:~# apt list libc6-dev
Listing... Done
libc6-dev/focal-updates 2.31-0ubuntu9.2 amd64
libc6-dev/focal-updates 2.31-0ubuntu9.2 i386
root@localhost:~# apt list g++-9
Listing... Done
g++-9/focal-updates,focal-security 9.3.0-17ubuntu1~20.04 amd64
g++-9/focal-updates,focal-security 9.3.0-17ubuntu1~20.04 i386

Hi @finalwebsites and welcome to our community! Sorry for the belated response.
Do you still encounter the same problem?
Could you please share with me the following:

  • the installation method you use to install Netdata
  • the Ubuntu version of your servers
  • the entire error log grep -i /var/log/netdata/error.log

Thanks!

Hi Georgia,

Yes I have still the problem with some servers.

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

Ubuntu 20.04.3 LTS

The error log file doesn’t exists because the installation stops before (because of the missing dependencies).

Could you please manually install build-essentials and retry?
sudo apt install build-essential

Hi,

I did this and that is the result:

root@localhost:~# sudo apt install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:9.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Compare the melding with my notes in the initial post :frowning:

It seems for the result that you have a broken package system on some servers.

There’s a number of such reports across the Net, as well as suggestions on how to solve them. For example:

Let me know if that helps and if you are able to install Netdata after this fix.

Hi,

thank you, adding this source was the solution:

deb http://archive.ubuntu.com/ubuntu/ focal-proposed main

Really strange because the sources.list file was absolutely the same on both servers.

Happy to hear it worked.
Let me know if you have any further questions :smiley: