Apology is this sound stupid.
I have a previous installation of CDH5.5.1 which I have uninstalled and wanted to do a new fresh installation using a local repository.
I've created a local repository which can be accessed through browser. To do that I've created a file named /custom-repo.list inside /etc/apt/sources.list.d/ with the following content in it ..
deb [arch=amd64] http://xxx.xx.xx.xxx/cm5.5.1 trusty-cm5.5.1 contrib
deb-src [arch=amd64] http://xxx.xx.xx.xxx/cm5.5.1 trusty-cm5.5.1 contrib
after that when I do apt-get update it shows a error like:
W: GPG error: http://xxx.xx.xx.xxx trusty-cm5.5.1 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 327574EE02A818DD
I tried running
$ apt-get clean
$ rm -rf /var/cache/apt/*
$ rm -rf /var/lib/apt/lists/*
But I am keep getting the same error as above, commenting the repository entry from custom-repo.list seems to resolve this. But as soon as I bring that back the same error is thorwn.
What m I doing wromg here? could this happen due to improper uninstallation ?
I am stuck at this and not able to move forward with the installation. any help would be highly appreciated
I solved it by adding the same entry in a new file. not sure how but it worked.
Thanks a lot for your reply
The URL to the local repository was under /etc/apt/sources.list.d . I just copy and pasted the same content in a new file and removed the Old one. And then run apt-get update . That resolve this, but I am not sure why
The key error is from the CDH apt signing key. I verified this by downloading the archive key and checking the fingerprint. So if you had added the key to apt keyring things would have worked. In sources.list.d there are 2 files, one signed and the other for unsigned. Second one is installed by cdh when it asks you to install the .deb that you downloaded.
Did you remove the signed sources list by any chance?
remove the unwanted list files using :$ sudo rm -f Unconfirmed <filename> in the location of /etc/apt/sources.list.d.Then run the update command. It works for me...
My solution is runing this command at the server to install cloudera manager:
curl -s http://xxx.xxx.xxx.xxx:8900/cm/archive.key | sudo apt-key add -
xxx.xxx.xxx.xxx is ip adress to store local resposity