![无法安装 Android Studio 所需的库](https://linux22.com/image/1019286/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20Android%20Studio%20%E6%89%80%E9%9C%80%E7%9A%84%E5%BA%93.png)
dr_insult@futcap:~$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
[sudo] password for dr_insult:
Reading package lists... Done
Building dependency tree
Reading state information... Done
lib32z1 is already the newest version (1:1.2.11.dfsg-2ubuntu1).
libbz2-1.0:i386 is already the newest version (1.0.8-2).
libstdc++6:i386 is already the newest version (10-20200411-0ubuntu1).
libncurses5:i386 is already the newest version (6.2-0ubuntu2).
Suggested packages:
glibc-doc:i386 locales:i386
The following NEW packages will be installed:
libc6:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
Need to get 0 B/2,570 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 199059 files and directories currently installed.)
Preparing to unpack .../libc6_2.31-0ubuntu9_i386.deb ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.31-0ubuntu9_i386.deb (--unpack):
new libc6:i386 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.31-0ubuntu9_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我正在尝试安装 Android Studio。因此,我按照其网站上的说明进行操作。那里给出了以下命令,但 dpkg 一直返回错误。我在更新时也遇到过类似的错误。我的系统有问题吗?请帮忙。
我已经尝试过命令
sudo fuser -v /var/cache/debconf/config.dat
然后终止该进程。
这种方法暂时有效。但问题不断出现。请提出一个永久解决方案。