Download the Ambari repository on Ubuntu 16
To install Ambari agents, first download the Ambari repository to a host in your cluster.
- Log in to your host as root.
Download the Ambari repository file to a directory on your installation host.
wget -O /etc/apt/sources.list.d/ambari.list https://archive.cloudera.com/p/ambari/2.x/126.96.36.199/ubuntu16/ambari.list apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD apt-get updateNoteDo not modify the ambari.list file name. This file is expected to be available on the Ambari Server host during Agent registration.
Confirm that Ambari packages downloaded successfully by checking the package name
apt-cache showpkg ambari-server apt-cache showpkg ambari-agent apt-cache showpkg ambari-metrics-assemblyYou should see the Ambari packages in the list.