Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Unable to locate package ambari-server Ubuntu

avatar

I am getting an error as

Unable to locate package ambari-server.

Following are the steps i followed to setup ambari/HDP:

1) downloaded the tar's(ambari,HDP,HDP-UTILS). Untared in /var/www/html/ path

2) registered the repo path's

wget -nv http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.0.0/hdp.list

wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.1.0/ambari.list

3)wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.1.0/ambari.list -O /etc/apt/sources.list.d/ambari.list

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

apt-get update

4) apt-get install ambari-server Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ambari-server

I am unable to solve this issue. I am new to ubuntu/hadoop and this is the first time i am installing hdp in my system. Please guide me on how to solve this issue.

Thanks

Jugal

6 REPLIES 6

avatar
Super Collaborator

Make sure you check if your ambari package is downloaded successfully with below commands

apt-cache showpkg ambari-server

apt-cache showpkg ambari-agent

apt-cache showpkg ambari-metrics-assembly

You can refer to the installation guide here - http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Installing_HDP_AMB/content/_download_the_...

avatar

Hi Durai,

I am getting the same message as Unable to locate the packages.

avatar

When i check the /etc/apt/sources.list.d/

I see ambari and hdp are registered in sources.list.d

But when i dpkg -L ambari* i am not able to find the packages.

Whereas i had wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.1.0/ambari.list -O /etc/apt/sources.list.d/ambari.list

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD

apt-get update

Please Guide me.

3887-screenshot-from-2016-05-01-121329.png

Thanks

Jugal

avatar
Super Collaborator

There is a similar issue discussed on this thread - https://community.hortonworks.com/questions/18736/2210-ambari-ubuntu-repo-404.html

can you please check if this helps?

avatar

Hi Durai,

Thanks for replying. Still no help. still getting the same issue.

🙂

avatar
Contributor

Hi @Jugal Bhatt

I have the same mistake as yours, you have the answer?