我不是 Linux 的高级用户,我尝试安装数据库,因此我安装了 Mysql 服务器,我认为我做错了同样的事情,所以我遇到了麻烦,现在我无法安装任何东西,这是我使用时得到的结果apt-get -f install
:
root@me:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
mysql-server mysql-server-5.5
Suggested packages:
tinyca mailx
The following packages will be upgraded:
mysql-server mysql-server-5.5
2 upgraded, 0 newly installed, 0 to remove and 194 not upgraded.
2 not fully installed or removed.
Need to get 0 B/8,737 kB of archives.
After this operation, 15.4 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of mysql-server-5.5:
mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); however:
Version of mysql-server-core-5.5 on system is 5.5.28-0ubuntu0.12.04.3.
dpkg: error processing mysql-server-5.5 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试删除 mysql-server,但什么也没发生。
答案1
你可能不正确地将第三方存储库或 PPA 添加到了系统中。如果我是你,我只会使用软件中心、Synaptic 或 来安装来自官方 Ubuntu 存储库的软件包apt-get
。
要删除第三方存储库和 PPA,请按照以下说明操作,或查看这个问题
- 打开 Ubuntu 软件中心。
- 单击编辑、软件源...
- 单击“其他软件”选项卡。
- 取消勾选列表中的所有软件源。
确定问题已解决后,您可以逐个重新启用每个存储库,直到缩小有问题的存储库的范围。在命令行上,您需要sudo apt-get update
在修改软件源列表后运行。
你可能想看看ppa-purge
。它还有一个额外的好处,那就是它也会卸载来自 PPA 的软件包。
对于您来说,您至少需要卸载以下软件包:
sudo apt-get -f remove mysql-server-core-5.5 mysql-server-5.5 mysql-server-5.5 mysql-server
如果你觉得这一切令人困惑,我建议你去Ubuntu IRC 频道或者UbuntuForums 绝对初学者部分AskUbuntu 的设计目标是每次询问一个特定的问题并给出一个特定的答案,但在这种情况下可能并不完全符合您的要求。