我无法使用 apt 或 apt-get 安装任何东西

我无法使用 apt 或 apt-get 安装任何东西

每当我尝试在 ubuntu 22.4 上安装某些东西时,它都会返回此错误

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)

但是 /usr/sbin/dpkg-preconfigure 和 /usr/share/debconf/frontend 在那里.. 可能是因为没有安装 perl 吗?(如果没有 make,我就无法安装它,因为我没有 make)提前谢谢!

相关内容