当新刷好的树莓派镜像启用时,你有可能会遇到奇怪的 apt 错误:
1 2 3 4 5 6 7 8 9 |
root@raspberrypi:/home/pi# apt install default-jre Reading package lists... Done Building dependency tree... Done Reading state information... Done Package default-jre is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'default-jre' has no installation candidate |
当然,不止这一个,安装任何包都会是 Package xxx has no installation candidate
解决办法
首先查看你的 [crayon-6756e37[……]