nginxinc/nginx-amplify-doc

Ubuntu 20.04 support

pyprism opened this issue ยท 31 comments

Please add release support for Ubuntu 20.04 . Currently we can't install amplify agent in Ubuntu 20.04

# error.log
Get:11 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]     
Ign:12 https://packages.amplify.nginx.com/ubuntu focal InRelease               
Get:13 https://packages.amplify.nginx.com/ubuntu focal Release [3,278 B]       
Ign:14 https://packages.amplify.nginx.com/ubuntu focal Release.gpg
Reading package lists... Done
E: The repository 'https://packages.amplify.nginx.com/ubuntu focal Release' 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.

  8. Updating repository ... failed.

 Please check the list of the supported systems here https://git.io/vKkev

+1
(Good to know it isn't just me)

@pyprism @Malacarne @WarpWing @rodrigogmartins could you please check this one? https://github.com/nginxinc/nginx-amplify-agent/issues/181#issuecomment-662107703

(We do have nginx-amplify-agent package built for Ubuntu 20.04 but it is currently not advertised in install.sh and docs - appreciate any feedback if you will be able to test this though.)

I'm also facing the same issue.

kroko commented

+1

+1

Please support Ubuntu 20.04. This version is released on April 23, 2020. It's been almost a year, but there's still no support yet.

Still facing this issue...

Gentlemen, sorry for not being responsive enough - there is an agent package for Ubuntu 20.04, installation instructions are here: https://github.com/nginxinc/nginx-amplify-agent/issues/181#issuecomment-662107703

Appreciate any feedback once you're able to test that one.

Gentlemen, sorry for not being responsive enough - there is an agent package for Ubuntu 20.04, installation instructions are here: nginxinc/nginx-amplify-agent#181 (comment)

Appreciate any feedback once you're able to test that one.

Any chance for an arm64 package to test?

Any chance for an arm64 package to test?

@danijelk will try to submit arm64 version to the same repo later this week.

thank you @defanator . That would be awesome if you could

when to support ubuntu 20.04?

@danijelk @nathanmillar16 arm64 version of the latest nginx-amplify-agent package for Ubuntu 20.04 is now available via the same repository described here - https://github.com/nginxinc/nginx-amplify-agent/issues/181#issuecomment-662107703

@danijelk @nathanmillar16 arm64 version of the latest nginx-amplify-agent package for Ubuntu 20.04 is now available via the same repository described here - nginxinc/nginx-amplify-agent#181 (comment)

Thanks works great


 Launching amplify-agent ...
 All done.

Will write if there are any issues.

@danijelk @nathanmillar16 arm64 version of the latest nginx-amplify-agent package for Ubuntu 20.04 is now available via the same repository described here - nginxinc/nginx-amplify-agent#181 (comment)

Was this tested in 20.04.2? I tried running the install in 20.04.1 and it worked fine. I tried it in 20.04.2 and I get this error:

  9. Installing nginx-amplify-agent package ...

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:
 nginx-amplify-agent : Depends: libffi6 (>= 3.2) but it is not installable
E: Unable to correct problems, you have held broken packages.

  9. Installing nginx-amplify-agent package ... failed.

Thanks,
Chris

@chrisc0 are you observing this with amd64 or aarch64 package?

The arm64 package

@danijelk @nathanmillar16 arm64 version of the latest nginx-amplify-agent package for Ubuntu 20.04 is now available via the same repository described here - nginxinc/nginx-amplify-agent#181 (comment)

Was this tested in 20.04.2? I tried running the install in 20.04.1 and it worked fine. I tried it in 20.04.2 and I get this error:

  9. Installing nginx-amplify-agent package ...

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:
 nginx-amplify-agent : Depends: libffi6 (>= 3.2) but it is not installable
E: Unable to correct problems, you have held broken packages.

  9. Installing nginx-amplify-agent package ... failed.

Thanks,
Chris

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

I went through all the steps again and it's working now. Thanks. Hopefully we can get a real release soon so we don't have do these temporary workarounds.

Legends. Thank you @defanator

Gentlemen, sorry for not being responsive enough - there is an agent package for Ubuntu 20.04, installation instructions are here: nginxinc/nginx-amplify-agent#181 (comment)

Appreciate any feedback once you're able to test that one.

thanks. how to setup API key after installation of the agent from the deb file?
thank you in advance

Still no official release...?

@cetm-rj unfortunately. Hope there will be some news on the topic soon.

For anyone wondering how to get this working right now without waiting on an official release, here's how I did it:

  1. sudo nano /etc/apt/sources.list.d/nginx-amplify-py3.list
    add this:
    deb [arch=amd64] https://packages.amplify.nginx.com/py3/ubuntu focal amplify-agent
  2. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62
  3. sudo apt update && sudo apt install nginx-amplify-agent -y
  4. sudo cp /etc/amplify-agent/agent.conf.default /etc/amplify-agent/agent.conf
  5. sudo chown nginx /etc/amplify-agent/agent.conf
  6. sudo nano /etc/amplify-agent/agent.conf -> add your own api key from the website after "API_KEY = "
  7. sudo service amplify-agent start

Latest agent version (1.8.0) now officially supports Ubuntu 20.04 for both amd64 and arm64:

https://amplify.nginx.com/docs/faq-2-nginx-amplify-agent.html#21-what-operating-systems-are-supported

Please follow the docs in order to upgrade from previous versions:

https://amplify.nginx.com/docs/guide-installing-and-managing-nginx-amplify-agent.html#updating-the-agent

combs commented
# cat /etc/apt/sources.list.d/nginx-amplify.list
deb http://packages.amplify.nginx.com/ubuntu/ focal amplify-agent
# apt-get update
...
Err:5 http://packages.amplify.nginx.com/ubuntu focal Release
  404  Not Found [IP: 52.24.43.197 80]
Reading package lists... Done                            
E: The repository 'http://packages.amplify.nginx.com/ubuntu focal Release' does not have a Release file.
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.
# apt-get install nginx-amplify-agent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nginx-amplify-agent

please help with this

@veris-developer please follow this doc:

https://amplify.nginx.com/docs/guide-installing-and-managing-nginx-amplify-agent.html#updating-the-agent

Correct apt repository listing for 20.04 "focal" should be:

deb https://packages.amplify.nginx.com/py3/ubuntu/ focal amplify-agent