Configurando mysql-common (5.7.16-0ubuntu0.16.04.1) ...
update-alternatives: error: la ruta alternativa /etc/mysql/my.cnf.fallback no existe
dpkg: error al procesar el paquete mysql-common (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 2
dpk
我不知道是什么问题,但我很确定在我的MySQL安装中出现了严重的问题。我已经在以下链接中尝试了几乎所有的解决方案:如何修复损坏的包安装(mysql)、如何完全删除MySQL以进行清洁安装、如何完全卸载MySQL?。但不幸的是,什么也没起作用。在尝试每种解决方案时,都会产生一个常见错误,如下所示:
The following packages have unmet dependencies:
libmysqlclient20 : Depends: mysql-common (>= 5.7.20-1ubuntu16.04)
Breaks: libmy
root@administrator-desktop:/etc/mysql# sudo apt-get remove php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-mysql is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
2 not fully instal
我在安装mariadb-server之前安装了mysql-server (我不应该这么做),所以我清除了mariadb*,并将其从repos中删除。但是,我不能安装mysql-server。
在sudo apt-get install mysql-server之后,我得到:
Setting up mysql-server-5.7 (5.7.19-0ubuntu0.16.04.1) ...
invoke-rc.d: could not determine current runlevel
* Stopping MySQL database server mysqld
我多次尝试将MySQL从我的系统中完全删除,但没有成功。我知道这些错误:
📷
📷
我也尝试过其他命令,但没有成功。我该怎么办?
下面是apt list --installed | grep mysql的输出:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
default-libmysqlclient-dev/focal,now 1.0.5ubuntu2 amd64 [installed]
libmysqlclient-dev/focal-updates,focal-securit
我对纯ftpd-mysql有问题。当我尝试删除纯-时,我遇到了同样的问题:
root@vps438255:/var/lib/dpkg/info# apt-get remove --purge pure-ftpd-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
pure-ftpd-mysql*
0 upgraded, 0 newly installed, 1
我在处理mysql安装,并试图用mariadb-服务器安装来替换它。在使用了用于完全删除mysql的典型命令之后,我无法删除一个旧的配置。因此,在沮丧的时刻,我犯了一个错误,我只做了/etc/中的mysql文件夹sudo rm -r。现在,我的问题是,每当我试图安装任何其他软件或mysql时,都会从dpkg获得以下错误:
aniqui@Lenobuntu-Z50-60:/$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information
试图修复一个损坏的mysql安装,这是在从Debian6.0升级到7.0之后发生的。我在我的/etc/apt/sources.list.列表中有dotdeb.org包。
root@ginger:/var/log/mysql# apt-get install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
我的MySql不工作了。当我想在linux服务器上重新安装MySql时,它会显示以下消息。
sudo apt install mysql-server mysql-client --fix-broken
电文:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mysql-server-5.7 needs to be reinstalled, but I can't find an archive for it.
当我apt upgrade时,我得到错误处理包错误:
我试过网上提到的常见解决方案。但它被困在了一个循环中。
❯ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
mysql-server
我在焦点Fossa,我已经安装mysql。我试图删除它并安装mariadb。我试过sudo apt-get remove mysql,但是当我做mysql -V的时候,我得到了mysql Ver 8.0.20-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))。然后我尝试了sudo apt-get purge mysql*,它给了no matches found
我尝试了下面的操作,并得到了相同的错误
sudo apt-get remove mysql-server
Setting up mysql-server-8.0 (8.0.20-0ubun
我正在安装freeradius-mysql。
只是给了我一个错误。
Errors were encountered while processing:
freeradius-mysql
我试过这么多文章,但他们帮不了我。重新安装它很多次,但没有运气。
全输出
sudo apt-get install freeradius-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
freeradius-mysql is already the n
我正在尝试在新安装的Wheezy上安装php5-mysqlnd (/etc/debian_version将其称为wheezy/sid),我遇到了一个问题:
root@debian:/var/www/lottery1# apt-get install php5-mysqlnd
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-mysqlnd is already the newest version.
0 upgraded, 0 newly in
加载/安装mysql时遇到问题
以下是安装时的输出:
mysql-server-5.1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,258 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.1.
我需要完全删除关于MySQL的所有内容。它没有启动,所以我决定删除它。但是,在安装过程中发生了这样的情况:
sta@daPC:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.6 my
我安装了一个32位的MySQL工作台包。但我遇到了很多问题并试图在这里找到答案..。我知道我的Ubuntu是64位.下载了64位的MySQL版本。
当我打字时:
sudo dpkg -i mysql_64_bit.deb
系统要求我删除最老的,所以我输入了:
teeba@ubuntu:~/Downloads$ sudo dpkg -r mysql-workbench-community-6.0.9-1ubu1204-i386.deb
我得到了以下信息:
dpkg: error: you must specify packages by their own names, not by quot
我想在Ubuntu16.04中重新安装mysql。
mysql-server is already the newest version (5.7.21-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet
我必须为我的项目安装mysql服务器。但是当我用sudo apt install mysql-server安装时,它说是E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)和E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?。我试着去寻找解决方法,但没有什么变化。谢谢你的帮助
(编辑)
我也得到了这个错误The following packages h
很长一段时间后,我试图更新Ubuntu20.04,但由于一些MySQL错误,它失败了。我搜索了网页,建议的答案是rm mysql目录。我这样做了,但仍然没有解决问题。
我试过dpkg --remove --force-all mysql-server-8.0,但上面写着:
Unit mysql.service could not be found. dpkg: error while cleaning up:
...post-installation script subprocess returned error
apt清除/升级/删除失败
The package mysql-serve
出于各种原因,我试图对mySQL进行干净的重新安装。我在这里跟踪了几个帖子,在堆栈交换上,尤其是在这是问的帖子上,但是,每次我以相同的结果结束步骤时。
Setting up mysql-client (5.7.20-0ubuntu0.16.04.1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dp
最近,我尝试使用Ubuntu20.04在我的计算机上安装mysql-server-8.0软件包。我有一些问题,并决定完全取消和重新安装mysql再次。
因此,如果我试图通过sudo apt-get remove mysql-server-8.0卸载它,我将得到以下输出:
sudo apt-get remove mysql-server-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were aut
在设置root密码时,我意外地停止了mysql的安装,现在我不能打开应用程序,也不能卸载它。
sudo apt-get remove --purge mysql*
返回
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10071 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lo