colorful

zc qq:1337220912

 

Linux新手入门:Unable to locate package错误解决办法

最近刚开始接触Linux,在虚拟机中装了个Ubuntu,当前的版本是Ubuntu 11.10,装好后自然少不了安装一些软件,在设置了软件的源后,就开始了 sudo apt-get install,结果出现了下面的Unable to locate package错误:
  1. letuknowit@ubuntu:~$ sudo apt-get install mysql-server mysql-client
  2. [sudo] password for letuknowit:
  3. Reading package lists… Done
  4. Building dependency tree    
  5. Reading state information… Done
  6. E: Unable to locate package mysql-server
  7. E: Unable to locate package mysql-client
  8. letuknowit@ubuntu:~$

  这叫一个郁闷啊,出师不利,不带这么吓唬刚玩Ubuntu的小朋友吧~于是赶紧找资料,又回顾下前面的操作,最后发现问题出在执行sudo apt-get install之前更换了软件源,但是却忘了update下了,于是执行下面的命令:

  1. sudo apt-get update

等上面命令执行完后,再执行sudo apt-get install就可以了!其实错误信息已经很明确了,Unable to locate packet就是无法找到包嘛,那还不赶紧sudo apt-get update下!

posted on 2012-04-29 07:34 多彩人生 阅读(152562) 评论(5)  编辑 收藏 引用 所属分类: ubuntu

评论

# re: Linux新手入门:Unable to locate package错误解决办法 2012-05-28 17:47 lose weight fast

Linux runs on embedded systems devices where the operating system is typically built into the firmware and highly tailored to the system televisions and video game consoles the Android system in wide use on mobile devices is built on the Linux kernel. Thanks.
  回复  更多评论   

# re: Linux新手入门:Unable to locate package错误解决办法 2012-05-30 12:49 write my essay hong-kong

The development of Linux is one of the most prominent examples of free and open source software collaboration the underlying source code may be used, modified, and distributed commercially or non commercially by anyone under licenses such as the GNU General Public License. Thanks.
  回复  更多评论   

# re: Linux新手入门:Unable to locate package错误解决办法 2013-08-27 16:59

您好 我执行了update 后还是unable to locate package dfu-until是什么原因呢?谢谢了 困扰了我好几天了
我邮箱wenshu30@163.com   回复  更多评论   

# re: Linux新手入门:Unable to locate package错误解决办法 2014-10-18 17:06 shuaiagain

有用啊!  回复  更多评论   

# re: Linux新手入门:Unable to locate package错误解决办法 2015-09-29 14:18 zhu zhi xiang

如上 如果不行,说明没有配DNS,(注意外网要通,虚拟机桥接模式,虚拟网络编辑里面,网卡桥街到选择你正在用的网卡)  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

统计

常用链接

留言簿(3)

随笔分类

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜