軟體套件「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

您不必對 resources.list 執行任何操作

首先,apt-cache search ruby1.8 它會列出所有包。記下要安裝的所需軟體包的名稱,然後使用該軟體包名稱執行 sudo install 。

相關內容