debconf: unable to initialize frontend: Dialog的解决方法

今天在ubuntu 的vps上安装软件的时候出现了这个问题,软件能正常安装不过可能会中断后续的操作,虽然如此,我们还是想解决一下,其返回的代码如下:

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based fronte
nd cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line
66, <line 4.)
debconf: falling back to frontend: Readline
Selecting previously deselected package libattr1.

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75, <> line 2.)
debconf: falling back to frontend: Readline

 

提示这些代码是因为系统中缺少 dialog-like 程序,一般出现在最小化安装的ubuntu系统或者debian系统上。

我们可以使用安装软件的方法解决(sudo权限):

apt-get install dialog 或 apt-get install whiptail

我们也可以修改debconf提示的方式,代码如下(sudo 权限)

dpkg-reconfigure debconf

root@191522:~# dpkg-reconfigure debconf
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
Configuring debconf
-------------------

Packages that use debconf for configuration share a common look and feel. You
can select the type of user interface they use.

The dialog frontend is a full-screen, character based interface, while the
readline frontend uses a more traditional plain text interface, and both the
gnome and kde frontends are modern X interfaces, fitting the respective desktops
(but may be used in any X environment). The editor frontend lets you configure
things using your favorite text editor. The noninteractive frontend never asks
you any questions.

  1. Dialog  2. Readline  3. Gnome  4. Kde  5. Editor  6. Noninteractive

Interface to use: 6

我选择6,选择哪种提示信息,1是log文件记录,2是shell文字显示,3是Gnome窗口提示,4是Kde窗口提示,5是一个编辑器提示,6是XXX(我没猜出意思来)

Debconf prioritizes the questions it asks you. Pick the lowest priority of
question you want to see:
  - 'critical' only prompts you if the system might break.
    Pick it if you are a newbie, or in a hurry.
  - 'high' is for rather important questions
  - 'medium' is for normal questions
  - 'low' is for control freaks who want to see everything

Note that no matter what level you pick here, you will be able to see every
question if you reconfigure a package with dpkg-reconfigure.

  1. critical  2. high  3. medium  4. low

Ignore questions with a priority less than: 2

然后低于哪一个级别的提示会被忽略,我选择2high,就是高

后来,我又选择了readline

这是的界面?

www.5169.info_debconf_21_17

版权声明:
作者:xinyu2ru
链接:https://www.rxx0.com/software/ubuntu/debconf-unable-to-initialize-frontend-dialog-solution.html
来源:RUBLOG-分享我的生活
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>