我有一个 VPS,上面安装有 Ubuntu 16.04,我将其用作 Web 服务器和 Nextcloud 服务器。我想将我的 VPS 升级到 Ubuntu 18.04。正如我所料
do-release-upgrade
它告诉我,如果我同意继续,它将完全删除 MariaDB(服务器和客户端)。输出如下所示:
不再支持:cpp-5 fonts-nanum gcc-5-base gcc-6-base gucharmap libasan2 libgcc-5-dev libgtk2-perl libstdc++-5-dev ntp openjdk-8-jre subversion wvdial
Remove: mariadb-server-10.0 mytop php7.0-curl
python3-aptdaemon.pkcompat
Remove (was auto installed) adwaita-icon-theme-full
gnome-themes-standard-data libcurl3 libdfu1 libdouble-conversion1v5
libgsl2 libguvcview-1.1-1 libjpeg-progs libmagickcore-6.q16-2
libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libmailutils4
libnss3-nssdb libobrender32 libobt2 libperl5.22 libsane
mariadb-client-10.0 mariadb-client-core-10.0
mariadb-server-core-10.0 mplayer2 perl-modules-5.22
pulseaudio-module-x11 unity-control-center-faces
xserver-xorg-input-vmmouse
另外,在Upgrade
部分中,我可以看到
mariadb-common mariadb-server
这些是我安装的 MariaDB 软件包:
root@vmi117654:~# dpkg -l mariadb*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-===================-===============================================================
ii mariadb-client-10.0 10.0.38-0ubuntu0.16 amd64 MariaDB database client binaries
un mariadb-client-5.5 <none> <none> (no description available)
ii mariadb-client-core-10.0 10.0.38-0ubuntu0.16 amd64 MariaDB database core client binaries
un mariadb-client-core-5.5 <none> <none> (no description available)
ii mariadb-common 10.0.38-0ubuntu0.16 all MariaDB common metapackage
un mariadb-galera-server <none> <none> (no description available)
un mariadb-galera-server-5.5 <none> <none> (no description available)
ii mariadb-server 10.0.38-0ubuntu0.16 all MariaDB database server (metapackage depending on the latest ve
ii mariadb-server-10.0 10.0.38-0ubuntu0.16 amd64 MariaDB database server binaries
un mariadb-server-5.5 <none> <none> (no description available)
ii mariadb-server-core-10.0 10.0.38-0ubuntu0.16 amd64 MariaDB database core server files
un mariadb-server-core-5.5 <none> <none> (no description available)
un mariadb-test <none> <none> (no description available)
un mariadb-tokudb-engine-10.0 <none> <none> (no description available)
un mariadb-tokudb-engine-5.5 <none> <none> (no description available)
如何在保留已安装的 MariaDB 的同时升级 Ubuntu?
答案1
这并不是完全放弃 MariaDB。只是从 10.0 升级到 10.1。升级的一部分意味着删除旧的 10.0 软件包。
让它继续下去。
如果真的摆脱 MariaDB 后,您会在要删除的软件包列表中看到软件包mariadb-server
和(没有版本号)。mariadb-client
另一个线索是输出中的短语(was auto installed)
。这意味着这些不是您(人类)指定的包。相反,这些只是您指定的其他东西的依赖项……例如mariadb-server
和mariadb-client