Add a comment. There are several workarounds: Use su - instead; this launches a login shell, which forces PATH to be changed, but also changes everything else including the working directory. Use sudo instead. Michael Hampton Michael Hampton k 39 39 gold badges silver badges bronze badges. Packages with priority "required" are installed by default and cannot be removed without getting the warning "You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say! In the specific case of debconf , removing it would also remove other dependent packages. If debconf is not installed on your system, then you or someone have not only removed it, but jumped through a few hoops to do so. It's a vm. Log as root using: su - root Instead of: su. This helped me on debian 11 : — Christian. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. Simply provide the name s of package s to reconfigure, and it will ask a number of configuration questions, in the same way when the package was initially installed on your system.
It can allow you to retrieve the settings of an installed package, as well as change the current settings of that package as recorded in decconf. A common category of packages you can reconfigure are those whose configurations are determined by questions in the package installation script, usually shown via a graphical interface during the package installation process, for example phpmyadmin.
If you have already installed a package, for instance phpmyadmin , you can reconfigure it by passing the package name to dpkg-reconfigure as shown. Once you have run the command above, you should be able to start reconfiguring phpmyadmin as shown in the following screenshot.
You will be asked a series of questions, select the settings you want and complete the process. When the phpmyadmin reconfiguration process is done, you will see the some useful information concerning the new package settings as shown in the following screenshot. There are some useful options which allow you to change its default behavior, we will explain some of the practically useful ones, as follows.
The -f flag is used to choose the frontend such as dailog, readline, Gnome, Kde, Editor or noninteractive to use. You can permanently change the default frontend via the debconf , by running the following command. Also choose which questions to ignore according to priority level, as shown in the screenshot and press Enter. To specify the minimum priority of questions that will be displayed, directly from the command line, use the -p option. Some packages may be in an inconsistent or broken state, in such a case, you can use the -f flag to force dpkg-reconfigure to reconfigure a package.
How to install dpkg-reconfigure? Ask Question. Asked 9 years, 5 months ago. Active 2 years, 8 months ago. Viewed 74k times. Improve this question. Gaurav Agarwal. Gaurav Agarwal Gaurav Agarwal I needed to know that dpkg-reconfigure needs to be ran as root otherwise the command is not found — gloomy.
Add a comment. Active Oldest Votes. Improve this answer. It is not installed and when I run your suggested I am getting the response sudo: apt-get: command not found — Gaurav Agarwal.
I have asked a related question here askubuntu. Answered that and edited this one. But if you are using some customized version without dpkg, you should be able to install using the command sudo apt-get install dpkg. Thiago Harry Thiago Harry 81 2 2 bronze badges. You cannot do that; dpkg is needed for apt-get to work.
On a fresh Kubuntu
0コメント