3

Anytime I install a new package i get the following error:

WARNING: The following packages cannot be authenticated!

I can still install the package despite this error, but is there a way to get rid of it?

1 Answers1

5

As you clearly mentioned that you dont want to see that error in future , you can use --allow-unauthenticated flag.

--allow-unauthenticated

       Ignore if packages can't be authenticated and don't prompt about
       it. This is useful for tools like pbuilder. Configuration Item:
       APT::Get::AllowUnauthenticated.

usage:

apt-get --allow-unauthenticated install <package_name>

Hope it helps.

Credit : Ubuntu : apt-get

Raja G
  • 102,391
  • 106
  • 255
  • 328