Mysql安装错误(未满足的依赖项)

时间:2018-05-19 22:44:06

标签: mysql linux ubuntu

我只是想从我的ubuntu重新安装mysql。所以我已经清除了mysql,但是当我尝试安装它时。它显示依赖关系未满足错误。

var sum = factm.add(factn.toString())

当我尝试更新时,显示: -

    sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.22-0ubuntu0.17.10.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
 mysql-testsuite-5.7 : Depends: mysql-server-5.7 (= 5.7.22-0ubuntu0.17.10.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

当我尝试修复依赖时,我们得到的问题仍然是相同的: -

     sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu artful InRelease
Hit:3 http://security.ubuntu.com/ubuntu artful-security InRelease
Err:4 http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu artful InRelease
  403  Forbidden
Ign:5 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:6 http://de.archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu trusty Release
Hit:8 http://de.archive.ubuntu.com/ubuntu artful-backports InRelease
Hit:9 http://ppa.launchpad.net/mutlaqja/ppa/ubuntu artful InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/canonical-kernel-team/pti/ubuntu/dists/artful/InRelease  403  Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

没有一个修复程序适合我。

提前致谢:) 快乐的编码

1 个答案:

答案 0 :(得分:-1)

似乎你的系统陷入了mysql的过程中。重新启动系统并运行以下代码。

sudo apt-get update
sudo apt-get -f install
sudo apt purge -y mysql-server
sudo apt install -y mysql-server

然后,mysql安装程序会提示您提供密码,它应该可以正常工作。

相关问题