Added missing **kwargs
Added right check and improved error message
Merge pull request #8155 from malinoff/fix-gpgkey-fail

Fix apt-key silently fails