无法从软件中心安装、删除或更新任何内容

无法从软件中心安装、删除或更新任何内容

我想我的日子过得不好。每天我都面临新问题。我现在的问题是 - 我无法从软件中心安装、删除或更新任何东西。

在此处输入图片描述

此外,sudo apt-get install -f也会引发错误。

Unpacking mysql-client-core-5.6 (5.6.19-1~exp1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/mysql-client-core-5.6_5.6.19-1~exp1ubuntu2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/mysql', which is also in package mysql-client 5.6.22-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../mysql-client-5.6_5.6.19-1~exp1ubuntu2_amd64.deb ...
Unpacking mysql-client-5.6 (5.6.19-1~exp1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/mysql-client-5.6_5.6.19-1~exp1ubuntu2_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/mysqlslap', which is also in package mysql-client 5.6.22-2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-client-core-5.6_5.6.19-1~exp1ubuntu2_amd64.deb
 /var/cache/apt/archives/mysql-client-5.6_5.6.19-1~exp1ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

MYSQL 客户端出了点问题。但我不知道该怎么解决。请帮帮我。

[更新]

我也无法删除 Mysql 工作台 -

在此处输入图片描述

在此处输入图片描述

“sudo dpkg --configure -a”抛出:dpkg:错误处理包 mysql-workbench(--configure):依赖性问题 - 未配置

答案1

输入以下命令:

  1. sudo apt-get autoclean
  2. sudo apt-get clean
  3. sudo dpkg --configure -a
  4. sudo apt-get update
  5. sudo apt-get dist-upgrade

我希望它能对你有所帮助。

答案2

使用sudo apt-get install -fsudo apt-get -f install。两者非常相似。不要忘记使用sudoasapt-get需要 root 权限。

相关内容