目录
■前言
■查看安装的软件
■删除安装的软件
正常删除(dpkg -r xxxxName)
问题解决:use --purge to remove them too
■其他调查信息
命令
图片1
图片2
图片3
图片4
图片5(和镜像库有关)
图片6
==========
■前言
安装Mysql8.3失败
我的服务器-CSDN博客
■查看安装的软件
dpkg -l
===
■删除安装的软件
删除时使用先后顺序的,根据提示删除即可
正常删除(dpkg -r xxxxName)
dpkg -r xxxxName
问题解决:use --purge to remove them too
dpkg: warning: ignoring request to remove mysql-community-client, only the config
files of which are on the system; use --purge to remove them too
===
apt-get purge mysql-community-client
==
■其他调查信息
命令
-------------------------
systemctl start mysql.service
systemctl status mysql.service
-------------------------ldd /usr/sbin/mysqld
-------------------------
libssl.so.3 => not found
libcrypto.so.3 => not found
-------------------------
apt-get install openssl-------------------------
find / -name "mysql.service" -type fcat /usr/lib/systemd/system/mysql.service | grep ExecStar
-----
ExecStartPre=+/usr/share/mysql-8.3/mysql-systemd-start pre
ExecStart=/usr/sbin/mysqld
------
==
apt-get install libc6:amd64
apt-get install libmecab2
apt-get install libstdc++6:amd6
apt-get install openssl
apt-get update
===mysql的安装包的安装顺序
dpkg -i mysql-common_8.3.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-server-core_8.3.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-server_8.3.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-server_8.3.0-1ubuntu22.04_amd64.deb
dpkg -l | grep mysql
dpkg -r mysql-community-serverapt-get purge mysql-community-server
---------------------------
root@ubuntu:/opt/mysql# systemctl start mysql.service
Failed to start mysql.service: Unit mysql.service is masked.
---------------------------
systemctl unmask mysql.service---
dpkg -l | grep libc6
=============
ii libc6:amd64 2.31-0ubuntu9.14
ii libc6-dev:amd64 2.31-0ubuntu9.14 amd64
===========================
apt-get install libc6
apt-get install libc6-dev
===
图片1
图片2
图片3
===
图片4
图片5(和镜像库有关)
=== 上面的代号(focal),必须和下面的镜像库相匹配
==
图片6
更新,但是更新时说,你的已经是最新的了,猜测,镜像库方面没有更新。。。
apt-get install libc6-dev
libc6 is already the newest version (2.31-0ubuntu9.14).
===