ubuntu解决无法获取debconf的版本的问题以及dpkg: error processing package *** (--configure)

本文记录了在尝试编译内核代码时遇到protobuf缺失问题的解决过程,包括安装protobuf-dev和protobuf-compiler所需的debconf配置,以及创建缺失的目录和文件。同时,还解决了后续安装其他软件如git时出现的dpkg错误。

        今天要编译内核代码,结果报错说找不到protobuf,于是我就开始装protobuf-dev和protobuf-compiler这俩包,结果又报错找不到debconf版本。

        从网上找解决方案,很多都是误删了/var目录或者/var/dpkg包等造成的,但是解决方案一般都很复杂,要吗就是重装。

        我看了一下我的目录,/var/lib/dpkg/都存在,里面也有几个目录。但是还缺不少。 

         于是我硬着头皮装Protobuf,开始报错,说无法扫描某些目录,或者找不到某些文件,比如updates这个目录(上图是我事后截的,很多文件是我已经创建过的)。

于是我就自己创建了这个目录,同时也创建了一些文件,比如diverions。少啥就创建啥。

 上图是我创建的文件或者目录的过程。我就装debconf,缺了就创建,直到安装成功(下图也是事后运行的,前面已经装成功了)。

 现在回过头来装prot

修复操作流程1 Welcome to AidLux! Work with AidLux packages using tool ‘aid-pkg’: Update list of available packages: aid-pkg update List packages: aid-pkg list Install packages: aid-pkg install <package-name> Remove packages: aid-pkg remove <package-name> Search packages: aid-pkg search <pattern> Install AidLux Web Desktop using command: aid-pkg install aid-desktop aidlux@localhost:~$ sudo dpkg --configure -a # 强制完成未完成的安装配置 Setting up docbook-xml (4.5-9) … Setting up libfprint-2-2:arm64 (1:1.90.2+tod1-0ubuntu1~20.04.10) … Failed to scan devices: Permission denied dpkg: error processing package libfprint-2-2:arm64 (configure): installed libfprint-2-2:arm64 package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of fprintd: fprintd depends on libfprint-2-2 (>= 1:1.90.1); however: Package libfprint-2-2:arm64 is not configured yet. dpkg: error processing package fprintd (configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libpam-fprintd:arm64: libpam-fprintd:arm64 depends on fprintd (= 1.90.9-1~ubuntu20.04.1); however: Package fprintd is not configured yet. dpkg: error processing package libpam-fprintd:arm64 (configure): dependency problems - leaving unconfigured Processing triggers for rygel (0.38.3-1ubuntu1)Processing triggers for libgdk-pixbuf2.0-0:arm64 (2.40.0+dfsg-3ubuntu0.5)Processing triggers for dbus (1.12.16-2ubuntu2.3)Processing triggers for sgml-base (1.29.1)Processing triggers for dictionaries-common (1.28.1)debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.) debconf: falling back to frontend: Readline aspell-autobuildhash: processing: en [en-common]. aspell-autobuildhash: processing: en [en-variant_0]. aspell-autobuildhash: processing: en [en-variant_1]. aspell-autobuildhash: processing: en [en-variant_2]. aspell-autobuildhash: processing: en [en-w_accents-only]. aspell-autobuildhash: processing: en [en-wo_accents-only]. aspell-autobuildhash: processing: en [en_AU-variant_0]. aspell-autobuildhash: processing: en [en_AU-variant_1]. aspell-autobuildhash: processing: en [en_AU-w_accents-only]. aspell-autobuildhash: processing: en [en_AU-wo_accents-only]. aspell-autobuildhash: processing: en [en_CA-variant_0]. aspell-autobuildhash: processing: en [en_CA-variant_1]. aspell-autobuildhash: processing: en [en_CA-w_accents-only]. aspell-autobuildhash: processing: en [en_CA-wo_accents-only]. aspell-autobuildhash: processing: en [en_GB-ise-w_accents-only]. aspell-autobuildhash: processing: en [en_GB-ise-wo_accents-only]. aspell-autobuildhash: processing: en [en_GB-ize-w_accents-only]. aspell-autobuildhash: processing: en [en_GB-ize-wo_accents-only]. aspell-autobuildhash: processing: en [en_GB-variant_0]. aspell-autobuildhash: processing: en [en_GB-variant_1]. aspell-autobuildhash: processing: en [en_US-w_accents-only]. aspell-autobuildhash: processing: en [en_US-wo_accents-only]. Processing triggers for libc-bin (2.31-0ubuntu9.2)Errors were encountered while processing: libfprint-2-2:arm64 fprintd libpam-fprintd:arm64 aidlux@localhost:~ParseError: KaTeX parse error: Expected 'EOF', got '#' at position 39: …lock-frontend #̲ 清除锁定文件 aidlux@… sudo rm /var/lib/dpkg/lock sudo rm /va
04-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值