简体   繁体   English

“sudo dpkg --force-confdef --force-confold --configure -a”显示对话框

[英]"sudo dpkg --force-confdef --force-confold --configure -a" shows dialog

I am trying to run this unattended but I keep getting presented with this dialog by unattended-upgrades:我试图在无人值守的情况下运行此程序,但无人值守升级不断向我展示此对话框:

debconf 对话框

I can see this in ps:我可以在ps中看到这个:

$ ps aux | grep -i frontend
root      348793  0.0  0.1  24992 19644 pts/2    S+   14:12   0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/unattended-upgrades.postinst configure 2.3ubuntu0.1

This is despite running this which should force the old config:这是尽管运行它应该强制旧配置:

$ dpkg --force-confdef --force-confold --configure -a

My versions are:我的版本是:

$ dpkg --version
Debian 'dpkg' package management program version 1.19.7 (amd64).
$ apt-get --version
apt 2.0.9 (amd64)
$ lsb_release -d
Description:    Ubuntu 20.04.5 LTS

Any ideas how to get the above to run unattended?任何想法如何让上述无人值守运行?

Oh, it seems I need to also pass an environment variable, the full command being:哦,看来我还需要传递一个环境变量,完整的命令是:

sudo DEBIAN_FRONTEND=noninteractive dpkg --force-confdef --force-confnew #{args}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 dpkg 被中断,您必须手动运行 'sudo dpkg --configure -a' mysql - dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' mysql E: dpkg 被中断,你必须手动运行 &#39;sudo dpkg --configure -a&#39; 来纠正 - E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct Linux gitian-builder 和“dpkg:错误处理包 sudo” - Linux gitian-builder and "dpkg: error processing package sudo" 在Ubuntu 12.04上安装Elasticsearch 1.0.1失败,并显示sudo dpkg -i elasticsearch-1.0.1.deb - Install Elasticsearch 1.0.1 on Ubuntu 12.04 fails with sudo dpkg -i elasticsearch-1.0.1.deb 无法在Ubuntu 16.04中使用“ sudo dpkg-reconfigure keyboard-configuration”设置正确的键盘布局 - Unable to set the right keyboard layout in Ubuntu 16.04 with “sudo dpkg-reconfigure keyboard-configuration” 如何配置/ var / lib / dpkg / info / <packagename> .shlibs - howto configure /var/lib/dpkg/info/<packagename>.shlibs dpkg:- 错误处理包 javascript-common (--configure):- 使用 apt-get 命令时 - dpkg:- error processing package javascript-common (--configure):- while using apt-get command 如何使用 Sudo 在生产服务器上配置 Django Email - How to configure Django Email on Production Server using Sudo “ sudo npm install -g ionic”什么都没有显示 - “sudo npm install -g ionic” shows nothing 在svn结帐时强制输入密码 - Force password on svn checkout
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM