![软件包‘ruby1.8-dev’没有安装候选项](https://linux22.com/image/1083245/%E8%BD%AF%E4%BB%B6%E5%8C%85%E2%80%98ruby1.8-dev%E2%80%99%E6%B2%A1%E6%9C%89%E5%AE%89%E8%A3%85%E5%80%99%E9%80%89%E9%A1%B9.png)
我该如何解决这个错误?
sudo apt-get update
sudo apt-get install ruby1.8-dev
sudo apt-get install mysql-server
sudo apt-get install libgemplugin-ruby
目前我收到此错误:
sudo apt-get install ruby1.8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ruby1.8-dev 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 'ruby1.8-dev' has no installation candidate
答案1
你不需要对 sources.list 做任何事情
首先,apt-cache search ruby1.8
它会列出所有软件包。记下您想要安装的软件包的名称,然后使用该软件包名称执行 sudo install。