我想我的日子过得不好。每天我都面临新问题。我现在的问题是 - 我无法从软件中心安装、删除或更新任何东西。
此外,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
输入以下命令:
sudo apt-get autoclean
sudo apt-get clean
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade
我希望它能对你有所帮助。
答案2
使用sudo apt-get install -f
或sudo apt-get -f install
。两者非常相似。不要忘记使用sudo
asapt-get
需要 root 权限。