我使用的是 Debian 8(稳定)(Linux zenbook 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux)并昨天尝试过apt-get update && apt-get upgrade
。mysql-server-5.5
to进行了升级5.5.44-0+deb8u1
,apt-get
从那时起就出现了问题。程序挂起Setting up mysql-server-5.5
。
然后我尝试清除软件包并再次安装它,但结果相同。我不知道我还能尝试什么。建议?
$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca
The following NEW packages will be installed:
mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,088 kB of archives.
After this operation, 32.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 308703 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.44-0+deb8u1_amd64.deb ...
Unpacking mysql-server-5.5 (5.5.44-0+deb8u1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.44-0+deb8u1_all.deb ...
Unpacking mysql-server (5.5.44-0+deb8u1) ...
Processing triggers for systemd (215-17+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up mysql-server-5.5 (5.5.44-0+deb8u1) ...
答案1
这很奇怪。两个小时前,我的电脑apt-get
仍然在运行。我刚回来发现设置终于完成了。之前我大概等了15-30分钟,所以这肯定不正常。但现在我可以清除软件包并在几秒钟内重新安装它。
所以,解决这个问题的办法似乎就是“等待”。它最终会自行解决。
答案2
有一个错误“无法安装 mysql 服务器,apt-卡在“设置”处。。
请参考上面的链接获取解决方案,看看它是否对您有帮助,尽管它是一个 diff 版本