Masalah debconf di Ubuntu

Masalah debconf di Ubuntu

Permasalahan:
setiap kali menjalankan ‘apt’, muncul pesan error

debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::Log module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux /usr/local/perl-5.36.0/lib/5.36.0) at (eval 1) line 4.

Kemungkinan tampilan kesalahan lain yang serupa

Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version (6.14.4+ds-1ubuntu2).
The following packages were automatically installed and are no longer required:
  libgnat-10 libgnat-8 libgnat-9 libgnat-util10 libgnatvsn8 libgnatvsn9
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::Log module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
Sedang menata tzdata (2023c-0ubuntu0.20.04.0) ...
Can't locate Debconf/Db.pm in @INC (you may need to install the Debconf::Db module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing package tzdata (--configure):
 installed tzdata package post-installation script subprocess returned error exit status 2
Sedang menata pkg-config (0.29.1-0ubuntu4) ...
Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at /usr/share/pkg-config-dpkghook line 14.
BEGIN failed--compilation aborted at /usr/share/pkg-config-dpkghook line 14.
dpkg: error processing package pkg-config (--configure):
 installed pkg-config package post-installation script subprocess returned error exit status 2
Ada kesalahan saat memproses:
 tzdata
 pkg-config

Penyebab: ada masalah di file-file debconf, sehingga apt tidak dapat berfungsi baik

Solusi: install ulang perl-base dengan perintah berikut:

sudo apt reinstall perl-base

Referensi: https://unix.stackexchange.com/questions/690048/debconf-broken-cant-update-install-or-fix-any-package-anymore

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *