发布时间:2015-10-30 10:51:30来源:linux网站作者:_莫欺少年穷

在帮同学服务器安装环境过程中,发现,make 命令不能使用,提示:

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

尝试:sudo 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

网络是可以连通的,后来尝试: sudo apt-get update
最后提示[Waiting for headers] 说明系统的 源 无法使用;
 
更新ubuntu源:
1、首先备份Ubuntu源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)
2、修改更新源
sudo vim /etc/apt/sources.list (打开Ubuntu 12.04源列表文件)

3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)
4、通知ubuntu启用新的更新源   sudo apt-get update
5、之后运行 sudo apt-get install build-essential

完成后就可以使用make 命令了。

Make命令教程详解:http://www.linuxdiyf.com/linux/12391.html

阮一峰:Make命令教程:http://www.linuxdiyf.com/linux/8713.html

Ubuntu 12.10 gmake命令找不到:http://www.linuxdiyf.com/linux/1404.html

Linux命令make报错总结:http://www.linuxdiyf.com/linux/5191.html

http://www.linuxdiyf.com/linux/15327.html

转载于:https://www.cnblogs.com/pengmn/p/9950583.html

ubuntu下make无法安装的问题相关推荐

  1. Ubuntu下使用Anaconda安装opencv 解决无法读取视频

    Ubuntu下使用Anaconda安装opencv 最近在Ubuntu16.04下使用Anaconda安装opencv,碰到很多坑,记录备忘. cv2.VideoCapture(filename) 返 ...

  2. 【区块链-以太坊】5 Ubuntu下truffle ganache安装及使用

    [区块链-以太坊]5 Ubuntu下truffle & ganache安装及使用 1 truffle安装 1)输入sudo npm install -g truffle 2)将truffle复 ...

  3. ubuntu下MySQL的安装

    为什么80%的码农都做不了架构师?>>>    一.ubuntu下MySQL的安装 1. 在ubuntu命令行下输入 sudo apt-get install mysql-serve ...

  4. Ubuntu下mongodb的安装与配置

    MongoDB 是一个跨平台的,面向文档的数据库,提供高性能,高可用性和可扩展性方便.这里介绍在Ubuntu下mongodb的安装与配置. 1.下载 mongodb可以在官网上下载,地址,选择Ubun ...

  5. [Linux]Ubuntu下用apt-get安装的应用程序位置

    Ubuntu下用apt-get安装的应用程序的可执行文件默认放到/usr/bin目录下. 比如: 运行eclipse命令,如果出现:"程序eclipse未安装",这样我们可以执行: ...

  6. ubuntu下ffmpeg编译安装

    ubuntu下ffmpeg编译安装 解决库链接不上的问题 ubuntu下ffmpeg编译安装   1.ffmpeg是什么东西?相信很多人第一次接触这个东西,我先在这里做个简单的介绍. FFmpeg是一 ...

  7. 在Ubuntu下rtorrent编译安装笔记

    为什么80%的码农都做不了架构师?>>>    rtorrent是一个Bittorrent软件,基于终端的BT客户端,高性能.低资源,另外有不少人给rtorrent开发了Web GU ...

  8. 在Ubuntu下使用Apt-Get安装Google Chrome

    在Ubuntu下使用Apt-Get安装Google Chrome 给初次接触linux的人总结,希望有帮助 步骤如下: 终端输入 wget -q -O - https://dl-ssl.google. ...

  9. ubuntu 下 Graphviz 的安装及神经网络的绘图

    ubuntu 下 Graphviz 的安装 sudo apt-get install graphviz 神经网络的绘图 touch nn.dot vim nn.dot 编辑如下内容: digraph ...

  10. CentOS/Ubuntu 下 MySQL 的安装

    0. Ubuntu 下 MySQL 的安装 Linux(Ubuntu)下MySQL的安装与配置 检查系统中是否已安装 MySQL $ sudo netstat -tap | grep mysql# 输 ...

最新文章

  1. Ansible — ansible.cfg 配置文件解析
  2. 稀疏编码(Sparse Coding)(二)
  3. 【Paper】2013_An efficient model predictive control scheme for an unmanned quadrotor helicopter
  4. 图像无损、有损压缩方法调研
  5. TESTb需要向至少十几家应用商店提交上线审核,且每个应用商店要求的资料可能都不一样,异常繁琐
  6. Solr的安装和使用
  7. cd1101d 树形dp
  8. Python实现HTTP服务器(三)线程、进程、协程实现多任务
  9. 启动报错 classnofoundexception org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  10. 那个清华哈佛双料女学霸, 辞职了
  11. QT绘制同心扇形(Paintevent实现)
  12. 单片机C52系列之(DA)TLC5615
  13. 无法安装冰点还原_新的苹果电脑还原系统提示:安装错误的Apple Silicon M1 Mac
  14. N张图片合成一个最终图片(像素图片)
  15. 【谷歌浏览器】谷歌浏览器SameSite
  16. 黑马程序员——集合框架
  17. python实现阿列金分类法
  18. 智行火车票免费加速到VIP最高速抢票(不用朋友积攒或者购买加速包)
  19. 关于vs2010(C++ 工程)的异常问题(this is not a valid c/c++ file .CPP)的解决(C++ 初学者)
  20. springboot构建RESTful 风格应用

热门文章

  1. php 设置 最大内存,修改PHP的memory_limit限制的方法分享
  2. 恢复误删的Windows文件
  3. 吴恩达团队新研究!用MRNet进行膝关节磁共振影像诊断 已媲美医生 | 论文
  4. 火爆GitHub:100天搞定机器学习编程(超赞信息图+代码+数据集)
  5. 谷歌开源了量子算法框架CIRQ,拥抱NISQ新时代
  6. 百度陆奇:AI是5G网络下最好的加速器,技术商业化还要更快
  7. Tile:一个崭新出炉的机器学习语言
  8. Mock Serverj
  9. 进击的融合,浪潮推出全新SAS Switch储存设备SF-S1
  10. PHP与JSP的比较