安装mysql失败解决方案
【代码】安装mysql失败解决方案。
·
root@cyberlab:/tmp# apt install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
initscripts libcgi-pm-perl libhtml-template-perl mysql-server-5.7
Suggested packages:
libipc-sharedcache-perl mailx tinyca
Recommended packages:
libcgi-fast-perl
The following NEW packages will be installed:
initscripts libcgi-pm-perl libhtml-template-perl mysql-server mysql-server-5.7
0 upgraded, 5 newly installed, 0 to remove and 8 not upgraded.
5 not fully installed or removed.
Need to get 24.4 kB/2,704 kB of archives.
After this operation, 48.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 initscripts amd64 2.88dsf-59.3ubuntu2 [24.4 kB]
Fetched 24.4 kB in 1s (35.0 kB/s)
Preconfiguring packages ...
(Reading database ... 198441 files and directories currently installed.)
Preparing to unpack .../initscripts_2.88dsf-59.3ubuntu2_amd64.deb ...
Unpacking initscripts (2.88dsf-59.3ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/initscripts_2.88dsf-59.3ubuntu2_amd64.deb (--unpack):
trying to overwrite '/lib/init/vars.sh', which is also in package sysvinit-utils 3.07-1ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/initscripts_2.88dsf-59.3ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方法:
dpkg -i --force-overwrite /var/cache/apt/archives/initscripts_2.88dsf-59.3ubuntu2_amd64.deb
更多推荐
所有评论(0)