无法在ubuntu 16.04上安装mysql-server

weixin_38066019 weixin_38066019 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
当我尝试使用命令安装mysql-server时,这是终端输出 – sudo apt-get install mysql-server 终端o / p Setting up mysql-community-server (5.7.18-1ubuntu16.04) ... update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 7: Could not open 'abstractions/mysql' Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. invoke-rc.d: initscript mysql, action "start" failed. ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-06-12 14:23:11 IST; 7ms ago Process: 26677 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE) Process: 26612 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Main PID: 23756 (code=exited, status=1/FAILURE) Jun 12 14:23:06 prat14k systemd[1]: Starting MySQL Community Server... Jun 12 14:23:07 prat14k mysql-systemd-start[26612]: AppArmor parser error for... Jun 12 14:23:07 prat14k mysqld[26677]: Initialization of mysqld failed: 0 Jun 12 14:23:07 prat14k systemd[1]: mysql.service: Control process exited, ...=1 Jun 12 14:23:11 prat14k systemd[1]: Failed to start MySQL Community Server. Jun 12 14:23:11 prat14k systemd[1]: mysql.service: Unit entered failed state. Jun 12 14:23:11 prat14k systemd[1]: mysql.service: Failed with result 'exit...'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package mysql-community-server (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-community-server (= 5.7.18-1ubuntu16.04); however: Package mysql-community-server is not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.23-0ubuntu7) ... No apport report written because the error message indicates its a followup error from a previous failure. Processing triggers for systemd (229-4ubuntu17) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing: mysql-community-server mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) 我已经尝试了大约5次删除,清除和所有其他命令,但无法完成它. 也, systemctl mysql status 正在显示 AppArmor parser error for /etc 请帮忙
...全文

相关推荐

Ubuntu16.04离线安装软件-离线安装包mysql5.7.33

有时候会遇到客户是内网环境的,无法在线通过apt install mysql-server进行安装,本文将提供mysql5.7.33所需的离线安装包和依赖。

yjDjg

Ubuntu 安装MySQL(国内镜像源).pdf

Ubuntu 通过国内的镜像源安装 MySQL ,可以安装 MySQL 5.7 和 MySQL8.0 ,以及更新到最新版本。

Bright Xu

Ubuntu安装MySQL及错误解决[代码]

本文详细介绍了在Ubuntu 16.04系统中安装MySQL时可能遇到的错误及其解决方案。主要内容包括安装过程中出现的错误提示,如控制进程退出、依赖关系问题等,并提供了具体的解决步骤,如删除相关文件和软件包、重新安装MySQL等。此外,文章还介绍了如何检查MySQL是否已启动以及手动启动的方法,确保MySQL服务正常运行。通过本文的指导,用户可以顺利完成MySQL的安装和配置,解决安装过程中可能遇到的问题。

饼干CSS

Ubuntu安装MySQL5.7图文详解[代码]

本文详细介绍了在Ubuntu系统中安装MySQL 5.7的完整步骤,包括安装mysql-server和libmysqlclient-dev开发包、查看MySQL服务运行状态、修改root用户密码为123456、测试登录以及修改字符集为utf-8以支持中文操作。首先通过apt-get命令安装MySQL服务及开发包,然后使用systemctl status mysql检查服务是否正常运行。针对Ubuntu默认安装最新版MySQL且初始密码自动生成的问题,文章提供了通过编辑/etc/mysql/debian.cnf文件获取初始用户名和密码,登录后使用SQL语句更新root用户密码并刷新权限的方法。最后,通过设置character_set_server=utf8、修改表和字段的字符编码,确保数据库支持中文数据存储。整个过程图文结合,适合初学者快速上手。

404Lover

Debian中完全卸载MySQL的方法

之前服务器上配置测试用的服务环境,我偷懒顺手用网上现成的脚本进行安装,结果MySQL启动不了,于是我只有老老实实的重新安装MySQL Server,原本以为apt-get –purge这类命令可以很好的帮我解决这个问题,于是我通过下面的命令重新安装: 代码如下:sudo apt-get –purge remove mysql-serversudo apt-get install mysql-server然后再一次的启动MySQL,仍然失败报错,搜索网络依旧是提示重新安装MySQL服务程序,看样子是上面卸载命令不能很好的清理安装残余,最后找到这么一篇文章《MySQL Problems – a c

weixin_38581992
评论 1
收藏 已收藏
分享
返回顶部