【问题标题】:error occur during git installation on ubuntu 20.04在 ubuntu 20.04 上安装 git 时发生错误
【发布时间】:2022-01-23 11:19:44
【问题描述】:

当我尝试在 Ubuntu 20.04 上安装 git 时,出现错误。我使用了以下命令:

sudo apt-get install git

它产生了一个错误:

dpkg: warning: old mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb (--unpack):
 new mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error while cleaning up:
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

【问题讨论】:

    标签: git ubuntu installation sudo apt


    【解决方案1】:

    As shown here,表示 config.dat 文件被另一个进程使用,你需要杀死它。

    sudo fuser -v -k /var/cache/debconf/config.dat
    

    那会直接杀死所说的其他进程。

    然后你可以再试一次你的安装命令。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-11
    • 1970-01-01
    • 2020-11-08
    • 2022-11-28
    • 2020-08-31
    • 2021-07-03
    • 2021-08-23
    • 1970-01-01
    相关资源
    最近更新 更多