Package xxx has no installation candidate on Raspberry Pi

When the newly flashed Raspberry Pi image is enabled,Chances are you're getting weird apt errors:

of course,more than this,Installing any package would be Package xxx has no installation candidate

Solution

Check out your first /etc/apt/sources.list ,See if the source address inside is commented out,Here mine is normal。

That should be a problem with apt cache,to directory /where/lib/apt Excuting an order sudo rm -r lists

delete all cache,then execute sudo apt update

At this point apt should be able to install various packages correctly。

Original article written by Gerber drop-off:R0uter's Blog » Package xxx has no installation candidate on Raspberry Pi

Reproduced Please keep the source and description link:https://www.logcg.com/archives/3800.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Leave a Reply

Your email address will not be published. Required fields are marked *