0
我试图在我的ubuntu16.04上安装mysql以用于django项目。安装有一些问题,一些现有的文件,得到错误:错误!以下软件包具有未满足的依赖关系:mysql-server
mysql-server is already the newest version (5.7.19-0ubuntu0.16.04.1).
You might want to run 'apt-get -f 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
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
我试过了,sudo易于得到-f安装的提示错误:
Preparing to unpack .../mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb ...
grep: /etc/mysql/: No such file or directory
Aborting downgrade from (at least) 10.2 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我曾试图安装步骤也,但得到第一个错误。
由于这是软件包安装问题,因此https://askubuntu.com/可能是更好的选择。 –