本文主要是介绍Linux(Ubuntu) 查看并删除使用【dpkg】安装的软件【mysql 8.3安装失败---原因调查】,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
目录
■前言
■查看安装的软件
■删除安装的软件
正常删除(dpkg -r xxxxName)
问题解决:use --purge to remove them too
■其他调查信息
命令
图片1
图片2
图片3
图片4
==========
■前言
安装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
===
图片1
图片2
图片3
===
图片4
==
这篇关于Linux(Ubuntu) 查看并删除使用【dpkg】安装的软件【mysql 8.3安装失败---原因调查】的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!