我在 VirtualBox 中安装了 Ubuntu 18.04.1 LTS。我想在其中使用 gcc 但它没有预装版本,当我尝试安装它时显示以下消息:
sudo apt-get install gcc
package gcc 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
在尝试安装gcc
新安装中的任何程序或其他任何程序之前,应首先更新软件包列表:
sudo apt update
然后以通常的方式安装您想要的程序。( sudo apt install <package-name>
)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句