ubuntu下make无法安装的问题
在帮同学服务器安装环境过程中,发现,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无法安装的问题相关推荐
- Ubuntu下使用Anaconda安装opencv 解决无法读取视频
Ubuntu下使用Anaconda安装opencv 最近在Ubuntu16.04下使用Anaconda安装opencv,碰到很多坑,记录备忘. cv2.VideoCapture(filename) 返 ...
- 【区块链-以太坊】5 Ubuntu下truffle ganache安装及使用
[区块链-以太坊]5 Ubuntu下truffle & ganache安装及使用 1 truffle安装 1)输入sudo npm install -g truffle 2)将truffle复 ...
- ubuntu下MySQL的安装
为什么80%的码农都做不了架构师?>>> 一.ubuntu下MySQL的安装 1. 在ubuntu命令行下输入 sudo apt-get install mysql-serve ...
- Ubuntu下mongodb的安装与配置
MongoDB 是一个跨平台的,面向文档的数据库,提供高性能,高可用性和可扩展性方便.这里介绍在Ubuntu下mongodb的安装与配置. 1.下载 mongodb可以在官网上下载,地址,选择Ubun ...
- [Linux]Ubuntu下用apt-get安装的应用程序位置
Ubuntu下用apt-get安装的应用程序的可执行文件默认放到/usr/bin目录下. 比如: 运行eclipse命令,如果出现:"程序eclipse未安装",这样我们可以执行: ...
- ubuntu下ffmpeg编译安装
ubuntu下ffmpeg编译安装 解决库链接不上的问题 ubuntu下ffmpeg编译安装 1.ffmpeg是什么东西?相信很多人第一次接触这个东西,我先在这里做个简单的介绍. FFmpeg是一 ...
- 在Ubuntu下rtorrent编译安装笔记
为什么80%的码农都做不了架构师?>>> rtorrent是一个Bittorrent软件,基于终端的BT客户端,高性能.低资源,另外有不少人给rtorrent开发了Web GU ...
- 在Ubuntu下使用Apt-Get安装Google Chrome
在Ubuntu下使用Apt-Get安装Google Chrome 给初次接触linux的人总结,希望有帮助 步骤如下: 终端输入 wget -q -O - https://dl-ssl.google. ...
- ubuntu 下 Graphviz 的安装及神经网络的绘图
ubuntu 下 Graphviz 的安装 sudo apt-get install graphviz 神经网络的绘图 touch nn.dot vim nn.dot 编辑如下内容: digraph ...
- CentOS/Ubuntu 下 MySQL 的安装
0. Ubuntu 下 MySQL 的安装 Linux(Ubuntu)下MySQL的安装与配置 检查系统中是否已安装 MySQL $ sudo netstat -tap | grep mysql# 输 ...
最新文章
- Ansible — ansible.cfg 配置文件解析
- 稀疏编码(Sparse Coding)(二)
- 【Paper】2013_An efficient model predictive control scheme for an unmanned quadrotor helicopter
- 图像无损、有损压缩方法调研
- TESTb需要向至少十几家应用商店提交上线审核,且每个应用商店要求的资料可能都不一样,异常繁琐
- Solr的安装和使用
- cd1101d 树形dp
- Python实现HTTP服务器(三)线程、进程、协程实现多任务
- 启动报错 classnofoundexception org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
- 那个清华哈佛双料女学霸, 辞职了
- QT绘制同心扇形(Paintevent实现)
- 单片机C52系列之(DA)TLC5615
- 无法安装冰点还原_新的苹果电脑还原系统提示:安装错误的Apple Silicon M1 Mac
- N张图片合成一个最终图片(像素图片)
- 【谷歌浏览器】谷歌浏览器SameSite
- 黑马程序员——集合框架
- python实现阿列金分类法
- 智行火车票免费加速到VIP最高速抢票(不用朋友积攒或者购买加速包)
- 关于vs2010(C++ 工程)的异常问题(this is not a valid c/c++ file .CPP)的解决(C++ 初学者)
- springboot构建RESTful 风格应用