在使用 Installfest 的第一步時,我不斷收到此錯誤。
該行是:
sudo apt-get install autoconf automake bison build-essential curl git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev
我收到:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘git’ instead of ‘git-core’
Note, selecting ‘libreadline-dev’ instead of ‘libreadline6-dev’
Note, selecting ‘libxslt1-dev’ instead of ‘libxslt-dev’
Note, selecting ‘libncurses5-dev’ instead of ‘ncurses-dev’
Package libreadline6 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 ‘libreadline6’ has no installation candidate
在那條訊息之後我輸入:
dpkg --list|grep libreadline (at the suggestion of someone online)
我被退回了:
ii libreadline7:amd64 7.0-3 amd64 GNU readline and history libraries, run-time libraries
網站的連結如下,問題出現在步驟 1 中的程式碼中。謝謝大家!
答案1
我建議libreadline
從命令中刪除版本apt-get
並使用通用一 - libreadline-dev
。
所以完整的命令是
sudo apt-get install autoconf automake bison build-essential curl git-core \
libapr1 libaprutil1 libc6-dev libltdl-dev libreadline-dev libsqlite3-0 \
libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev \
libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev
然後跟隨安裝節指南。
但我建議使用2.4.4
Ruby步驟4(因為它是標記的穩定的在官方網站上)。