Sometimes when installing packages on Ubuntu Linux, you'll get a warning like this:
sudo apt-get install foo bar
...
WARNING: The following packages cannot be authenticated!
foo bar
Install these packages without verification [y/N]?
The fix is trivial...
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get install foo bar
The key thing is to clean APT's cache of downloaded packages. But while we're there, we also autoremove any orphaned dependency packages, and update the APT database, before attempting to install the packages you asked for.
Wednesday, 5 December 2012
Fix for "packages cannot be authenticated" warning on Ubuntu
Labels:
apt,
authenticated,
ubuntu,
verification
Subscribe to:
Post Comments (Atom)
I like when it's a good solution, thanks
ReplyDeleteworked like a charm :)
ReplyDeletethank you,
Manu
hi, thank you so much, i fixed it
ReplyDelete~Thank you very much !!!!!!!!
ReplyDeleteMartin is there another possibility? That did not work for me even though it looks like the exact problem I am having.
ReplyDeleteThat ought to work - assuming your Ubuntu system is still in support. I wonder if you need to fetch updating signing keys? See https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/
ReplyDelete