How to install dpkg-reconfigure?

76,045

Solution 1

dpkg-reconfigure is provided by the debconf package, which should always be installed in any Ubuntu 12.04 install. If it's not, use:

sudo apt-get install debconf

In your case, you are running Amazon's AMI Linux which is based on CentOS, not Ubuntu. That's why apt-get or dpkg-reconfgure, which are native to Debian/Ubuntu, are not available on your EC2 instance.

Solution 2

Normally it's already installed in Ubuntu. But if you are using some customized version without dpkg, you should be able to install using the command

sudo apt-get install dpkg
Share:
76,045

Related videos on Youtube

Gaurav Agarwal
Author by

Gaurav Agarwal

Updated on September 18, 2022

Comments

  • Gaurav Agarwal
    Gaurav Agarwal over 1 year

    I want to install dpkg-reconfigure in Ubuntu 12.04 LTS install on Amazon EC2? How to go about it?

    • Admin
      Admin about 7 years
      I needed to know that dpkg-reconfigure needs to be ran as root otherwise the command is not found
  • Gaurav Agarwal
    Gaurav Agarwal almost 12 years
    It is not installed and when I run your suggested I am getting the response sudo: apt-get: command not found
  • ish
    ish almost 12 years
    If apt-get is not available on an Ubuntu EC2 instance, you should open a ticket with Amazon Support...
  • Gaurav Agarwal
    Gaurav Agarwal almost 12 years
    I have asked a related question here askubuntu.com/questions/175325/…
  • ish
    ish almost 12 years
    Answered that and edited this one. You need to install an official Ubuntu AMI; Amazons is based on CentOS which is quite different as you're finding out.
  • nanofarad
    nanofarad almost 12 years
    You cannot do that; dpkg is needed for apt-get to work.
  • svinkeaerinde
    svinkeaerinde over 11 years
    Oops, this is actually an answer for this Q: askubuntu.com/questions/204312/citrix-receiver-on-ubuntu-12-‌​10 ... I am unable to post it over there, because it requires site karma (reputation points) that I do not have. Could someone move the above answer to the correct question, so that Kubuntu users may also have their cup of Citrix Receiver?