Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

404 on Release when Configuring local repo for CM6

Highlighted

404 on Release when Configuring local repo for CM6

New Contributor

All,

For ubuntu 18.04 bionic 64 bit, I am following :

https://docs.cloudera.com/documentation/enterprise/6/latest/topics/cm_ig_create_local_package_repo.h...

 

I could see the repo for cm6/cdh6.3.2 when browsing the server on port 80.

 

I have two problems:

Problem 1) I could not access the key server so could not follow the section for (a) Cloudera Navigator Key Trustee Server, and (b) Cloudera Navigator Key Trustee KMS and HSM KMS. I ignored for time being.

 

Problem 2) When trying to run apt-get update I have following error.

cdha01# apt-get update

Ign:1 http://192.168.233.90/cm  bionic-cm6.3.1 InRelease
Err:2 http://192.168.233.90/cm  bionic-cm6.3.1 Release
404 Not Found [IP: 192.168.233.90 80]
E: The repository 'http://192.168.233.90/cm  bionic-cm6.3.1 Release' does not have a Release file.

 

Setup

 

CM host: cdha01 192.168.233.81
CM/CDH repo host: cdharepo 192.168.233.90



root@cdha01:~# cat /etc/apt/sources.list.d/cloudera-repo.list
deb http://192.168.233.90/cm bionic-cm6.3.1 contrib



cdha01# apt-get update 

Ign:1 http://192.168.233.90/cm bionic-cm6.3.1 InRelease
Err:2 http://192.168.233.90/cm bionic-cm6.3.1 Release
404 Not Found [IP: 192.168.233.90 80]
E: The repository 'http://192.168.233.90/cm bionic-cm6.3.1 Release' does not have a Release file.

root@cdhrepo:~# ls -lrt /var/www/html/cloudera-repos
total 16
-rw-r--r-- 1 root root 836 Mar 6 2018 robots.txt
drwxr-xr-x 6 root root 4096 May 20 06:47 cm6
drwxr-xr-x 3 root root 4096 May 20 06:58 cdh6
drwxr-xr-x 3 root root 4096 May 20 07:02 accumulo-c5
root@cdhrepo:~#
root@cdhrepo:~# ls -lrt /var/www/html/cloudera-repos/cm6
total 20
drwxrwxr-x 2 2001 2001 4096 Sep 25 2019 conf
drwxrwxr-x 3 2001 2001 4096 Sep 25 2019 pool
drwxrwxr-x 5 2001 2001 4096 Sep 25 2019 dists
drwxrwxr-x 2 2001 2001 4096 Sep 25 2019 db
-rw-rw-r-- 1 2001 2001 1718 Sep 25 2019 archive.key
root@cdhrepo:~# ls -lrt /var/www/html/cloudera-repos/cdh6
total 4
drwxr-xr-x 3 root root 4096 May 20 06:58 6.3.2
root@cdhrepo:~#


 

 

Modifying gets me further only to fail on missing gpg key file.

 

root@cdha01:~# cat  /etc/apt/sources.list.d/cloudera-repo.list
deb http://192.168.233.90/cloudera-repos/cm6 bionic-cm6.3.1 contrib
deb http://192.168.233.90/cloudera-repos/cdh6/6.3.2/ubuntu1804/apt bionic-cdh6.3.2 contrib


root@cdha01:~# apt-get update
Get:1 http://192.168.233.90/cloudera-repos/cm6 bionic-cm6.3.1 InRelease [2,155 B]
Get:2 http://192.168.233.90/cloudera-repos/cdh6/6.3.2/ubuntu1804/apt bionic-cdh6.3.2 InRelease [2,540 B]
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:6 http://192.168.233.90/cloudera-repos/cm6 bionic-cm6.3.1/contrib amd64 Packages [1,750 B]
Hit:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:8 http://security.ubuntu.com/ubuntu bionic-security InRelease
Err:2 http://192.168.233.90/cloudera-repos/cdh6/6.3.2/ubuntu1804/apt bionic-cdh6.3.2 InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2279662784415700
Hit:4 https://archive.cloudera.com/cm6/6.3.1/ubuntu1804/apt bionic-cm6.3.1 InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://192.168.233.90/cloudera-repos/cm6 bionic-cm6.3.1 InRelease' doesn't support architecture 'i386'
W: GPG error: http://192.168.233.90/cloudera-repos/cdh6/6.3.2/ubuntu1804/apt bionic-cdh6.3.2 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2279662784415700
E: The repository 'http://192.168.233.90/cloudera-repos/cdh6/6.3.2/ubuntu1804/apt bionic-cdh6.3.2 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@cdha01:~#

 

 

What am I doing wrong in following this local repo setup?

 

Thanks!

1 REPLY 1
Highlighted

Re: 404 on Release when Configuring local repo for CM6

Cloudera Employee

Hello @CloudEraLong 

 

I see that we don't have the following folder created:

/var/www/html/cloudera-repos/gplextras6

Could you please try executing the steps mentioned for CDH 6.3.2 or lower here?

 

You would have to update the wget command to include the correct version.

 

Let me know if this helps.

Tarun

 

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs up button.

Don't have an account?
Coming from Hortonworks? Activate your account here