Debian

Apt-get 掛起“設置 mysql-server-5.5 (5.5.44-0+deb8u1)”

  • May 17, 2017

我在 Debian 8 (stable) (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.5to進行了升級5.5.44-0+deb8u1apt-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) ...

這很奇怪。兩個小時前,我的電腦apt-get仍在執行。我剛回來看到設置終於完成了。之前,我大概等了 15-30 分鐘,所以這肯定不正常。但現在我可以在幾秒鐘內清除軟體包並重新安裝它。

因此,對此的解決方案似乎只是“等待”。它最終會自行解決。

有一個錯誤“無法安裝 mysql-server,apt-get 卡在“設置”。.

請參閱上面的連結以獲取解決方案,看看它是否對您有幫助,儘管它是在一個 diff 版本上

引用自:https://unix.stackexchange.com/questions/222129