gpt4 book ai didi

mysql - Sub-process/usr/bin/dpkg returned an error code (1) While Installing mysql

转载 作者:行者123 更新时间:2023-11-29 03:27:09 37 4
gpt4 key购买 nike

我正在尝试通过 apt-get install mysql-server-5.5 安装 mysql-server-5.5,我看到了这个错误 - Sub-process/usr/bin/dpkg 返回错误代码 (1)

sudo dpkg --configure -a 的输出

dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not installed.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server

sudo apt-get -f install 的输出

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server-5.5
0 upgraded, 1 newly installed, 0 to remove and 60 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1981 kB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 95180 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.46-0ubuntu0.14.04.2_amd64.deb ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Aborting downgrade from (at least) 5.6 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.46-0ubuntu0.14.04.2_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.5_5.5.46-0ubuntu0.14.04.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

感谢您的帮助。

最佳答案

我遇到了同样的问题。我有一个带有 Mint 的 10.1 标志。找出您使用的标志:

sudo ls -al /var/lib/mysql/

然后删除文件sudo rm/var/lib/mysql/debian-5.6-flag然后尝试重新安装sudo apt-get -f install

希望对你有用

看这个superuser文章,可能与您的特定错误更相关

关于mysql - Sub-process/usr/bin/dpkg returned an error code (1) While Installing mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34587421/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com