我的工具栏上有一个红色的停止标志;其内容如下:
发生错误。从右键菜单或
apt-get
在终端中运行包管理器以查看错误所在。错误消息为: “错误。brokencount > 0 这通常意味着您有未满足的依赖关系。”
我尝试用以下方法解决问题:
sudo apt-get install -f
我收到此消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libmysqlclient18
The following packages will be upgraded:
libmysqlclient18
1 upgraded, 0 newly installed, 0 to remove and 572 not upgraded.
3 not fully installed or removed.
Need to get 0 B/2.892 B of archives.
After this operation, 3.471 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_10.1.18+maria-1~trusty_amd64.deb (--unpack):
libmysqlclient18:amd64 10.1.18+maria-1~trusty (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
打开终端并输入
sudo dpkg --configure -a
如果没有帮助,那么这样做
sudo apt autoremove <packagename>
如果这没有帮助,那么你需要互联网连接。输入终端
sudo apt-get autoclean
删除 sources.list 文件并创建新的 sources.list...
sudo rm /etc/apt/sources.list
然后输入
sudo software-properties-gtk
这将打开 software-properties-gtk 并自动创建一个 newsources.list。
然后将服务器更改为美国或您选择的任何其他服务器。您必须从新对话框中启用存储库才能创建新的 sources.list。
勾选所有框然后单击“恢复”,再单击“关闭”。
需要恢复默认存储库
sudo apt-get update && sudo apt-get dist-upgrade -y
(最好在安装之前备份此文件,以便在发生此类情况时进行恢复)
现在安装任何东西!
sudo apt-get install mysql-server