2 月 16 2005
portupgrade
手邊某台機器升級 perl 以後爛掉, 其實主要原因是因為 portupgrade 有點問題.
在機器上面裝了一堆 ports 軟體以後, 現在用 portupgrade 時有時會跳出這個:
/usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:61:in `push”: failed to allocate memory (NoMemoryError)
from /usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:61:in `shellwords”
from /usr/local/sbin/portupgrade:1162:in `get_pkgname”
from /usr/local/sbin/portupgrade:1147:in `check_pkgname”
from /usr/local/sbin/portupgrade:933:in `upgrade_pkg”
from /usr/local/sbin/portupgrade:756:in `do_upgrade”
from /usr/local/sbin/portupgrade:691:in `main”
from /usr/local/sbin/portupgrade:688:in `each”
from /usr/local/sbin/portupgrade:688:in `main”
from /usr/local/sbin/portupgrade:207:in `initialize”
from /usr/local/sbin/portupgrade:207:in `new”
from /usr/local/sbin/portupgrade:207:in `main”
from /usr/local/sbin/portupgrade:1869
目前還找不到解法, 所以我得想辦法一個一個慢慢找 dependency, 然後一個一個重新安裝.
我也不知道該不該 report 回去給 core team. orz
很悲慘啊…
ijliao
2005-03-22 @ 11:16
最有可能的情況是 ruby 爛掉 :p
把 ruby 和 portupgrade 給 pkg_delete 掉重裝一次應該就 ok 了
JoeHorn
2005-03-22 @ 17:36
看那個 error mesg , 感覺是記憶體不夠.
之前做過類似這樣的指令了:
portupgrade -Ofv ruby-1.8.2_3
portupgrade -Ofv ruby18-bdb1-0.2.2
portupgrade -Ofv portupgrade-20041226_1
還是沒用….orz
ERICJ
2005-04-02 @ 04:57
要不要試著把/var/db/pkg/pkgdb.db移除掉
再重建一次呢?
記得有一次和學長兩個人同時在用portsupgrade升級ports結果就爛掉了
JoeHorn
2005-04-02 @ 19:48
這招也沒用….:-(
ERICJ
2005-04-03 @ 01:21
How about follow these steps?
cd /usr/ports/;make update
make fetchindex
rm /var/db/pkg/pkgdb.db
pkgdb -uF
pkg_version -vl ‘
ERICJ
2005-04-03 @ 01:23
pkg_version -vl ‘