E: package ‘gcc’ has no installation candidate
问题描述
第一次使用gcc编译c语言代码时出现command ‘gcc’ not found , but can be installed with : sudo apt install gcc
command ‘gcc’ not found , but can be installed with : sudo apt install gcc
在输入sudo apt install gcc
之后又出现E: package 'gcc' has no installation candidate
问题解决
输入sudo apt-get update
等升级完成后在尝试sudo apt-get install gcc