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 f

cat /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-server

apt-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

==

最近更新

  1. TCP协议是安全的吗?

    2024-04-15 05:08:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-15 05:08:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-15 05:08:01       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-15 05:08:01       20 阅读

热门阅读

  1. 门票问题(c++题解)

    2024-04-15 05:08:01       15 阅读
  2. 2024.04.01校招 实习 内推 面经

    2024-04-15 05:08:01       15 阅读
  3. RTC实时显示时间(备份电源 备份域的作用)

    2024-04-15 05:08:01       17 阅读
  4. 负载均衡算法

    2024-04-15 05:08:01       18 阅读
  5. 列举和介绍Mysql中各种日志

    2024-04-15 05:08:01       18 阅读
  6. canvas图上绘制边框,可放大缩小,可拖动

    2024-04-15 05:08:01       16 阅读
  7. 匿名内部类

    2024-04-15 05:08:01       14 阅读
  8. C++ 泛型编程 模板

    2024-04-15 05:08:01       19 阅读
  9. rust实现双向队列

    2024-04-15 05:08:01       49 阅读
  10. es6对于Promise 对象的详解(2024-04-11)

    2024-04-15 05:08:01       22 阅读