前端集合 - 关注前端技术和互联网免费资源

关注前端技术和互联网免费资源

分类儿

页面儿

搜索儿

前端集合 RSS订阅
Home » 经验记录 » Ubuntu [bash command not found] 和 [Unable to locate package]错误的解决办法

Ubuntu [bash command not found] 和 [Unable to locate package]错误的解决办法

发布者:前端集合 // 发布时间:2016-04-23 11:02:00 // 分类:经验记录 // 访问: 7,217 次 // 热度:

![Ubuntu [bash command not found] 和 [Unable to locate package]错误的解决办法][1]

bash command not found 错误

最近给其中一个vps安装了Ubuntu,然后使用curl命令安装时,却报如下错误:


bash curl command not found

好吧,我来安装curl:


apt-get install curl

Unable to locate package错误

可是又报错了:


Unable to locate package

好吧,我再找解决方案:

原来是系统刚安装的时候,资源列表还没有更新,需要手动更新下。

手动更新资源列表:


apt-get update

这个时候,再来执行curl命令,就不会有问题咯。

add-apt-repository: command not found错误


apt-get install python-software-properties

apt-get install software-properties-common

Tags: Ubuntu, bash command not found, Unable to locate package

nginx 403 forbidden 原来是因为这个!>>  << 如何解决Node.js npm ERR! Failed at xxx install script 'node-gyp rebuild'?
Top