ubuntu中提示找到make命令的解决方案

今天遇到一ubuntu,别人刚装的,我下载了ncftp,准备从其它地方把文件搬过来,把 ncftp下载回来解压缩,照原来的安装方式进行安装,执行:

    make install

提示我找不到make命令:

The program 'make' is currently not installed.  You can install it by typing:
apt-get install make

我尝试apt-get install make进行安装,可是提示:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package make 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 'make' has no installation candidate

尝试通过关键词:

The program 'make' is currently not installed

Package make is not available, but is referred to by another package

进行GOOGLE,基本上没有人碰到我这样的情况,找不到相应的答案,最终求助高手,通过以下的方式进行搞定:

1、先放入UBUNTU安装盘到光盘中;

2、再按顺序执行以下的命令:

sudo apt-cdrom add
sudo apt-get update
sudo apt-get install build-essential

就可以搞定了。

本文出自:冯立彬的博客


再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

原文地址:https://www.cnblogs.com/skiwdhwhssh/p/10340539.html