[FUG-BR] Problemas com o portupgrade
Thiago J. Ruiz
thiagojruiz em gmail.com
Sexta Setembro 14 08:28:48 BRT 2007
talvez ajude:
http://thiagoruiz.blogspot.com/2006/09/solucionando-problemas-com-portupgrade.html
abraço
Em 13/09/07, Ari Arantes <ariarantes em gmail.com> escreveu:
>
> Pessoal,
>
> Tenho 2 servidores com o FreeBSD 6.2 que estão com os mesmos problemas
> para rodar o "portupgrade -a".
>
> # portupgrade -a [missing key: categories] [Updating
> the portsdb <format:bdb_btree> in /usr/ports ... - 17632 port entries
> found
> .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.........17000......
> ..... done]
> missing key: categories: Cannot read the portsdb!
> /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567:in `open_db':
> database file error (PortsDB::DBError)
> from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:736:in `port'
> from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:924:in
> `all_depends_list'
> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in
> `tsort_build'
> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each'
> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in
> `tsort_build'
> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in
> `sort_build'
> from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in
> `sort_build!'
> from /usr/local/sbin/portupgrade:694:in `main'
> from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
> from /usr/local/sbin/portupgrade:210:in `new'
> from /usr/local/sbin/portupgrade:210:in `main'
> from /usr/local/sbin/portupgrade:1981
>
>
> Procurando no google, achei essa dica, que não adiantou:
>
> rm -f /usr/ports/INDEX*.db /var/db/pkg/pkgdb.db
> pkgdb -fu
>
> Depois tentei remover o portupgrade, ruby e rubydb e instalar tudo
> novamente pelos ports, atualizado pelo portsnap. Mas o problema
> continua.
>
> O que pode ser?
>
> Obrigado,
>
> Ari
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
--
Thiago J. Ruiz
http://thiagoruiz.blogspot.com
Mais detalhes sobre a lista de discussão freebsd