软件包‘ruby1.8-dev’没有安装候选项

软件包‘ruby1.8-dev’没有安装候选项

我该如何解决这个错误?

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。

相关内容