Como pré-configurar o pacote usando o debconf-set-selections?

5

Eu estou tentando pré-configurar a instalação do redmine e fiquei com

debconf-set-selections pkg.selections

Resultando em muitas mensagens de erro

error: Cannot find a question for redmine/instances/default/password-confirm
error: Cannot find a question for redmine/instances/default/pgsql/admin-pass
error: Cannot find a question for redmine/instances/default/mysql/admin-pass
error: Cannot find a question for redmine/instances/default/app-password-confirm
error: Cannot find a question for redmine/instances/default/mysql/app-pass
error: Cannot find a question for redmine/instances/default/pgsql/app-pass
error: Cannot find a question for redmine/instances/default/db/app-user
error: Cannot find a question for redmine/instances/default/default-language
error: Cannot find a question for redmine/instances/default/remote/newhost
error: Cannot find a question for redmine/instances/default/db/basepath
error: Cannot find a question for redmine/instances/default/upgrade-error
error: Cannot find a question for redmine/instances/default/pgsql/changeconf
error: Cannot find a question for redmine/instances/default/missing-db-package-error
error: Cannot find a question for redmine/instances/default/db/dbname
error: Cannot find a question for redmine/instances/default/purge
error: Cannot find a question for redmine/instances/default/remote/host
error: Cannot find a question for redmine/instances/default/dbconfig-upgrade
error: Cannot find a question for redmine/instances/default/internal/reconfiguring
error: Cannot find a question for redmine/instances/default/upgrade-backup
error: Cannot find a question for redmine/instances/default/pgsql/method
error: Cannot find a question for redmine/instances/default/install-error
error: Cannot find a question for redmine/instances/default/mysql/admin-user
error: Cannot find a question for redmine/instances/default/database-type
error: Cannot find a question for redmine/instances/default/pgsql/manualconf
error: Cannot find a question for redmine/instances/default/pgsql/authmethod-admin
error: Cannot find a question for redmine/instances/default/mysql/method
error: Cannot find a question for redmine/instances/default/internal/skip-preseed
error: Cannot find a question for redmine/instances/default/pgsql/admin-user
error: Cannot find a question for redmine/instances/default/remove-error
error: Cannot find a question for redmine/instances/default/dbconfig-remove
error: Cannot find a question for redmine/instances/default/remote/port
error: Cannot find a question for redmine/instances/default/pgsql/authmethod-user
error: Cannot find a question for redmine/instances/default/dbconfig-install
error: Cannot find a question for redmine/instances/default/dbconfig-reinstall

Se eu executar debconf-set-selections depois que o pacote foi instalado, ele funciona, no entanto, preciso reconfigurar o pacote.

Alguém poderia me explicar, por favor, a maneira correta de fazer isso?

    
por Samuel Hapak 14.09.2013 / 14:53

2 respostas

4

Às vezes, o banco de dados debconf é deixado em estado inconsistente após a remoção do pacote. Abra o arquivo /var/cache/debconf/templates.dat e tente localizar modelos mencionando seu pacote. Remova-os e tente novamente com o debconf-set-selections .

    
por 15.09.2013 / 09:59
2

Experimente /usr/share/debconf/fix_db.pl

    
por 18.07.2017 / 17:54

Tags