Where can I find the error codes returned by a failed
apt-get update command?
Can you please point me to the code, or specs, that calls out the error messages returned from an
apt-get update failure? Thanks.
Go ahead and ignore the rest of this question if you can answer the first one. Bonus points if you can add additional information.
What are the recommended solutions to resolve those problems?
Currently, I have three error codes that I have commonly encountered and I am wondering if there are more that I should be aware of.
- 403 Forbidden
- 404 Not Found
- Duplicate sources.list entry
Here are the workarounds for the errors that I am aware of:
Solution: add new public gpg key to my trusted chain by running the command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <insert pub_key_here>
Solution: re-add key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <insert key here>
404 Not found
Solution: Site is unavailable. Either wait until site returns, or remove repository from sources.list.
Duplicate sources.list entry
How many other error codes are there returned by
apt-get update that prevent users from updating their software? Is there documentation somewhere to identify similar issues?
I understand the risks involved when I am implicitly trusting third parties when I am adding their keys to my trusted chain. I am looking to identify the known errors generated by a failed
apt-get update and the solutions to allow me to continue to update my packages.