Score:0

I cannot install anything with apt or apt-get

sd flag

Whenever I try to install something on my ubuntu 22.4, it returns this error

root@lucie-Precision-Tower-3620:/home/lucie/Programs/perl-5.38.0# sudo apt install make
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  make-doc
The following NEW packages will be installed:
  make
0 upgraded, 1 newly installed, 0 to remove and 37 not upgraded.
3 not fully installed or removed.
Need to get 180 kB of archives.
After this operation, 426 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu jammy/main amd64 make amd64 4.3-4.1build1 [180 kB]
Fetched 180 kB in 0s (989 kB/s)
/bin/sh: 1: /usr/sbin/dpkg-preconfigure: not found
Setting up debconf (1.5.79ubuntu1) ...
/var/lib/dpkg/info/debconf.postinst: 17: exec: /usr/share/debconf/frontend: not found
dpkg: error processing package debconf (--configure):
 installed debconf package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

but /usr/sbin/dpkg-preconfigure and /usr/share/debconf/frontend are there.. Could it be that perl is not installed ? (I cannot manage to install it without make, that I don't have) Thanks in advance!

hr flag
It looks like you have somehow removed the `debconf` package
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.