E: package ‘gcc‘ has no installation candidate

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

上一篇:紫书 防线 UVa1471


下一篇:基础理论~raft协议的个人理解