Ubuntu 16.04 MariaDB 10.1 逆行安裝 :D

Ubuntu 16.04 MariaDB 10.1 逆行安裝 :D

有人知道如何閱讀這個場景嗎?我升級了10.1,它變成了10.0,並且資料庫無法存取。 (我有目錄的檔案備份)

我清理了它,最終使用apt-get purge,重命名為/var/lib/MySQL 和/etc/MySQL,(mysql,...該死的自動更正!)再次嘗試,它想要轉到5.7,即使當repos 和 mariadb pgp 金鑰已更新。

這裡是 ...

$ sudo apt-get update
Hit:1 http ://sfo1 .mirrors .digitalocean .com/mariadb/repo/10.1/ubuntu xenial InRelease
Hit:2 http ://mirrors .easynews .com/linux/ubuntu xenial InRelease
Hit:3 http ://mirrors .easynews .com/linux/ubuntu xenial-updates InRelease
Hit:4 http ://mirrors .easynews .com/linux/ubuntu xenial-security InRelease
Hit:5 http ://archive .ubuntu .com/ubuntu xenial InRelease
Reading package lists... Done

$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libaio1 libevent-core-2.0-5 mysql-client-5.7 mysql-client-core-5.7
  mysql-common mysql-server-5.7 mysql-server-core-5.7
Suggested packages:
  mailx tinyca
The following NEW packages will be installed:
  libaio1 libevent-core-2.0-5 mysql-client-5.7 mysql-client-core-5.7
  mysql-common mysql-server mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 8 newly installed, 0 to remove and 12 not upgraded.
Need to get 18.2 MB of archives.
After this operation, 160 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

(在鏡子中添加空格是因為askubuntu認為我正在發布連結。)

知道怎麼回事嗎?我缺什麼?

我的朋友說這是因為水星逆行到8號。
很有趣,但是……我想嘗試看看。

感謝您的時間/同情

答案1

在經歷了這麼多混亂之後,本文幫助 mariadb 10.1.20 啟動並在 16.04.1 上運行。

https://www.linuxbabe.com/mariadb/install-mariadb-10-1-ubuntu14-04-15-10

我仍然不知道如何解讀陰暗的逆行:D以及如何在未來避免它。

也許現在我可以使用 tarball 中的舊資料庫檔案...有人提示嗎?

具體來說,從本文中,我沒有使用該sudo apt-key adv...行,因為我已經這樣做了,而且重要的是我嘗試過在使用肖國安的步驟之前先使用aptitude刪除未使用的檔案。看來我還沒有天賦:)。

好吧,有些遇到這個問題的人顯然比我更新,...考慮在它之後立即運行 mysqyl_secure_installation 。

See https://mariadb.com/kb/en/mariadb/mysql_secure_installation/

我仍然不知道如何解讀逆行是如何發生的:)。

謝謝...尤其是如果您有任何提示

相關內容